isGM

From RPTools Wiki
Jump to navigation Jump to search

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