31.08.2009, 19:14
Hey
Thats my command for now, but the administratorґs name doesnt want to show up.. whereґs the problem?
Код:
if(strcmp(cmd, "/aduty on", true) == 0) { if (AccountInfo[playerid][AdminLevel] > 1 || IsPlayerAdmin(playerid)) { 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; }