isGM: Difference between revisions
Jump to navigation
Jump to search
(New page: ==Function isGM== Returns 1 if the player is a GM or 0 if they are not. ===Usage=== <source lang="mtmacro" line> [h: gm = isGM()] </source> ===Examples=== <source lang="mtmacro" line> I...) |
Verisimilar (talk | contribs) (Applied Template:MacroFunction) |
||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
|name=isGM | |||
|description= | |||
Returns 1 if the player is a GM or 0 if they are not. | Returns 1 if the player is a GM or 0 if they are not. | ||
|usage= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: gm = isGM()] | [h: gm = isGM()] | ||
</source> | </source> | ||
|example= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
I am a [r: if(isGM(), "GM", "Player")] | I am a [r: if(isGM(), "GM", "Player")] | ||
</source> | </source> | ||
}} | |||
[[Category:Miscellaneous Function]] |
Revision as of 20:51, 8 March 2009
isGM() Function
Returns 1 if the player is a GM or 0 if they are not.
Usage
[h: gm = isGM()]
Example
I am a [r: if(isGM(), "GM", "Player")]