isGM: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Changed category.)
m (Added version and corrected example.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=isGM
|name=isGM
|version=1.3b48
|description=
|description=
Returns 1 if the player is a GM or 0 if they are not.
Returns {{true}} if the player is a GM or {{false}} if they are not.


|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: gm = isGM()]
isGM()
</source>
</source>


|example=
|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: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"]