IsPlayerAdmin
From SA-MP Wiki
Check if a player is logged into RCON.
(playerid)
| playerid | The ID of the player to check |
| Returns | 1 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.
- 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.
