IsPlayerAdmin
From SA-MP Wiki
(Difference between revisions)
Revision as of 17:05, 18 March 2010 Calgon (Talk | contribs) ← Previous diff |
Revision as of 21:51, 31 January 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 25: | Line 25: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | [[fr:IsPlayerAdmin]] | ||
[[nl:IsPlayerAdmin]] | [[nl:IsPlayerAdmin]] | ||
[[de:IsPlayerAdmin]] | [[de:IsPlayerAdmin]] | ||
[[ru:IsPlayerAdmin]] | [[ru:IsPlayerAdmin]] |
Revision as of 21:51, 31 January 2014
Description:
Check if a player is logged into RCON.
(playerid)
playerid | The ID of the player to check |
Return Values:
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.