31.08.2009, 19:36
Код:
if(strcmp(cmdtext, "/aduty on", true) == 0) { if (AccountInfo[playerid][AdminLevel] > 1 || IsPlayerAdmin(playerid)) { GetPlayerName(playerid,sendername,24); format(string, sizeof(string), "-| Administrator %s is now on admin duty. |-", sendername); SendClientMessageToAll(ORANGE, string); SetPlayerHealth(playerid,999999999); // max HP SetPlayerSkin(playerid, 272); SetPlayerColor(playerid, 0xF97804FF); Drugs[playerid] = 1; SendClientMessage(playerid, GREEN, "Admin duty ENABLED"); } else SendClientMessage(playerid, RED, "Not for you, Sir"); return 1; }