Przejdź do głównej zawartości

IsPlayerAdmin

Description

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

NameDescription
playeridThe ID of the player to check.

Returns

true - Player is an RCON admin.

false - Player is NOT an RCON admin.

Examples

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