IsPlayerAdmin

From SA-MP Wiki

Revision as of 13:10, 21 April 2014; view current revision
←Older revision | Newer revision→
Jump to: navigation, search


Description:

Check if a player is logged in as an RCON admin.


Parameters:
(playerid)
playeridThe ID of the player to check.


Return Values:

  • 1: Player is an RCON admin.
  • 0: Player is NOT an RCON admin.


public OnPlayerSpawn(playerid)
{
    if(IsPlayerAdmin(playerid))
    {
        SendClientMessageToAll(0xDEEE20FF, "An admin spawned.");
    }
    return 1;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.