IsPlayerAdmin
From SA-MP Wiki
Description:
Check if a player is logged in as an RCON admin.
(playerid)
playerid | The 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.
- SendRconCommand: Sends an RCON command via the script.
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnRconLoginAttempt: Called when an attempt to login to RCON is made.