isGM: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) (Changed category.) |
Verisimilar (talk | contribs) m (Added version and corrected example.) |
||
Line 1: | Line 1: | ||
{{MacroFunction | {{MacroFunction | ||
|name=isGM | |name=isGM | ||
|version=1.3b48 | |||
|description= | |description= | ||
Returns | Returns {{true}} if the player is a GM or {{false}} if they are not. | ||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
isGM() | |||
</source> | </source> | ||
|example= | |example= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
I am a [r | I am a [r,if(isGM()): "GM"; "Player"] | ||
</source> | </source> | ||
}} | }} | ||
[[Category:Permission Function]] | [[Category:Permission Function]] |
Revision as of 00:12, 31 March 2009
isGM() Function
• Introduced in version 1.3b48
Returns
true
(1
) if the player is a GM or false
(0
) if they are not.Usage
isGM()
Example
I am a [r,if(isGM()): "GM"; "Player"]