IsPlayerAdmin FR

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:53, 5 January 2013
Connor Mead (Talk | contribs)

← Previous diff
Revision as of 23:54, 5 January 2013
Connor Mead (Talk | contribs)

Next diff →
Line 21: Line 21:
{{RelatedCallbacksFunctionFR}} {{RelatedCallbacksFunctionFR}}
-*[[OnRconLoginAttempt_FR|OnRconLoginAttempt:]]+*[[OnRconLoginAttempt_FR|OnRconLoginAttempt:]] Quand un joueur se connecte en RCON
[[Category:Scripting Functions FR]] [[Category:Scripting Functions FR]]

Revision as of 23:54, 5 January 2013




Description:

Vérifie si un joueur est connecté en RCON.


Paramètres:
(playerid)
playeridL'ID du joueur dont on doit vérifié si il est connecté en RCON.


Retourne:

1 si le joueur est connecté en RCON, sinon 0


public OnPlayerSpawn(playerid)
{
    if(IsPlayerAdmin(playerid)) SendClientMessageToAll(0xDEEE20FF, "Un admin est apparu.");
    else SendClientMessageToAll(0xDEEE20FF, "Un joueur est apparu.");
    return 1;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

  • SendRconCommand: Exécute une commande comme si un joueur connecté en RCON l'exécutais

Callbacks Relatives

Les Callbacks suivantes peuvent être utiles car elles sont indirectement ou directement liées a cette fonction.