IsPlayerAdmin

From SA-MP Wiki

Jump to: navigation, search


Check if a player is logged into RCON.


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


Returns1 if the player is logged into RCON, otherwise 0


public OnPlayerSpawn(playerid)
{
    if(IsPlayerAdmin(playerid)) SendClientMessageToAll(0xDEEE20FF, "An admin spawned.");
    else SendClientMessageToAll(0xDEEE20FF, "A user 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.

Personal tools
In other languages