03.12.2010, 20:23
try this
I never tested it xD but it should work
Код:
if(strcmp("/aheal", cmdtext, true, 10) == 0) { if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 101) { GetPlayerName(playerid, sendername, sizeof(sendername)); { SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,100); } } else { SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command !"); } return 1; }