27.09.2009, 11:12
Heres an example
Код:
public OnPlayerCommandText(playerid,cmdtext[]) { if(strcmp("/selfheal",cmdtext,true,9) == 0)//The cmd if(GetPlayerScore(playerid) != 1) { SendClientMessage(playerid,0xFFFFFF,"ERROR: Your score is not 1!");//If hes score is not 1 return 1; } else { SetPlayerHealth(playerid,100); SendClientMessage(playerid,0xFFFFFF,"Your health has been set to 100");//If hes score is 1 he will have hes HP set to 100 return 1; } return 1; }