IsPlayerAdmin

From SA-MP Wiki

Jump to: navigation, search

IsPlayerAdmin


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 might be useful as well, as they're 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