- 0
Comanda /aod
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
ToX1c
Salut cum fac si eu comanda /aod cand un admin isi da aod sa nu ii mai scada deloc armura si healul..
//----------------------------------[Admin Aod]----------------------------------------------- if(strcmp(cmd, "/aod", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 1) { if(AdminDuty[playerid] == 1) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Admin %s is now off duty.", sendername,playerid); SendClientMessageToAll(COLOR_LIGHTGREEN,string); AdminDuty[playerid] = 0; SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,0); SetPlayerToTeamColor(playerid); } else { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Admin %s is now on duty.",sendername,playerid); SendClientMessageToAll(0x1B8EE4FF,string); AdminDuty[playerid] = 1; SetPlayerHealth(playerid,99999); SetPlayerArmour(playerid,99999); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { } } } } else { SendClientMessage(playerid,COLOR_GREY,"[GameSx]: Nu faci parte din staff GameSx !"); } return 1; }4 answers to this question
Recommended Posts