05.10.2011, 15:08
Quote:
Yyy?
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(!success) return SendClientMessage(playerid,0xFFFF00FF,"Unknown command"); return 1; } And I'd change the command to: Код:
CMD:Slap(playerid,params[]) { new id; if(!sscanf(params,"u",id)) { if(IsPlayerConnected(id)) { SetPlayerHealth(id,0.0); PlayerPlaySound(id,1149,0,0,0); } else return Msg(playerid,0,"Player Not FOund"); } else return Msg(playerid,1,"Usage: /slap [id] "); return 1; } |