IsPlayerAdmin FR
From SA-MP Wiki
(Difference between revisions)
Revision as of 04:03, 5 January 2013 Connor Mead (Talk | contribs) ← Previous diff |
Revision as of 23:53, 5 January 2013 Connor Mead (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
+ | {{ScriptingFR}} | ||
+ | {{Title}} | ||
+ | |||
+ | {{Description|Vérifie si un joueur est connecté en RCON.}} | ||
+ | |||
+ | |||
+ | {{ParametersFR|playerid}} | ||
+ | {{Param|playerid|L'ID du joueur dont on doit vérifié si il est connecté en RCON.}} | ||
+ | |||
+ | {{ReturnsFR|'''1''' si le joueur est connecté en RCON, sinon '''0'''}} | ||
+ | |||
+ | <pawn>public OnPlayerSpawn(playerid) | ||
+ | { | ||
+ | if(IsPlayerAdmin(playerid)) SendClientMessageToAll(0xDEEE20FF, "Un admin est apparu."); | ||
+ | else SendClientMessageToAll(0xDEEE20FF, "Un joueur est apparu."); | ||
+ | return 1; | ||
+ | }</pawn> | ||
+ | |||
+ | {{RelatedFunctions}} | ||
+ | *[[SendRconCommand_FR|SendRconCommand:]] Exécute une commande comme si un joueur connecté en RCON l'exécutais | ||
+ | |||
+ | {{RelatedCallbacksFunctionFR}} | ||
+ | *[[OnRconLoginAttempt_FR|OnRconLoginAttempt:]] | ||
+ | |||
[[Category:Scripting Functions FR]] | [[Category:Scripting Functions FR]] |
Revision as of 23:53, 5 January 2013
Page d'Accueil | Les Fonctions | Les Callbacks | Les bases du Scripting | Plugins de Serveur | Tutoriaux
Ne prenez pas en compte les FR dans les noms
Description:
Vérifie si un joueur est connecté en RCON.
(playerid)
playerid | L'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.