note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
IsPlayerAdmin
Description
Check if a player is logged in as an RCON admin.
Name | Description |
---|---|
playerid | The 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;
}
Related Functions
- SetPlayerAdmin: Sets the player as an RCON admin.
- SendRconCommand: Sends an RCON command via the script.
Related Callbacks
- OnRconLoginAttempt: Called when an attempt to login to RCON is made.