warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for 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.