IsPlayerAdmin
Description:
Function IsPlayerAdmin check if a player is logged in as an RCON admin.
Parameters:
(playerid)
int | playerid | The ID of the player to check. |
Return Values:
- 1: Player is an RCON admin.
- 0: Player is NOT an RCON admin.
Examples:
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 well, as they are related to this callback in one way or another.
- OnRconLoginAttempt: Called when an attempt to login to RCON is made.