Date d'inscription : 01/01/1970
| Sujet: [CMDS] Administration/Moderation Say Mar 20 Juil - 0:34 | |
| Yo'P jai fait une commande pour l'administration/moderation allant du Grade 1-1339 et 9999
Je vous citeré la commande ci-dessus
NB : La commande tous les joueurs personnes peuvent la voir cette commande serrt au debutant et autres personnes. Vous pouvez la modifiez selont votre goût.
<BLOCKQUOTE>Citation ://-----------------------------special admin command------------- if(strcmp(cmd,"/am",true)==0) { if (PlayerInfo[playerid][pAdmin] >= 1) {
GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/a)dmin(m)essage [message]"); return 1; } if(PlayerInfo[playerid][pAdmin] == 1) { format(string, sizeof(string), "Modo: %s", result); OOCOff(COLOR_LIGHTBLUE,string); } else if(PlayerInfo[playerid][pAdmin] == 2) { format(string, sizeof(string), "Super-Modo: %s", result); OOCOff(COLOR_LIGHTBLUE,string); } else if(PlayerInfo[playerid][pAdmin] == 3) { format(string, sizeof(string), "Admin: %s", result); OOCOff(TEAM_ORANGE_COLOR,string); } else if(PlayerInfo[playerid][pAdmin] == 4) { format(string, sizeof(string), "Admin: %s", result); OOCOff(TEAM_ORANGE_COLOR,string); } else if(PlayerInfo[playerid][pAdmin] == 1337) { format(string, sizeof(string), "Super-Admin: %s", result); OOCOff(COLOR_RED,string); } else if(PlayerInfo[playerid][pAdmin] == 1338) { format(string, sizeof(string), "Admin Général: %s", result); OOCOff(COLOR_RED,string); } else if(PlayerInfo[playerid][pAdmin] == 1339) { format(string, sizeof(string), "Fondateur: %s", result); OOCOff(COLOR_RED,string); printf("%s", string); } else if(PlayerInfo[playerid][pAdmin] == 9999) { format(string, sizeof(string), "DIEU: %s", result); OOCOff(COLOR_LIGHTBLUE,string); } } return 1; }</BLOCKQUOTE> Voila vous de jouez | |
|