isGM: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 29: Line 29:
Note: this macro does not make much sense, since it could be achieved just as well without using the parameter.  
Note: this macro does not make much sense, since it could be achieved just as well without using the parameter.  


|changes=
*  '''b90''' added player parameter
}}
}}
[[Category:Permission Function]]
[[Category:Permission Function]]

Revision as of 10:14, 7 July 2013

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()

b90+ allows to add a string parameter 'player' to check if the player is a GM or not.

isGM('player')

Example

I am a [r,if(isGM()): "GM"; "Player"]


b90+

[r: player = getPlayerName()] is a [r,if(isGM(player)): "GM"; "Player"]
Note: this macro does not make much sense, since it could be achieved just as well without using the parameter.


Version Changes

  • b90 added player parameter