Zcmd Question
#9

Quote:
Originally Posted by Libra_PL
Посмотреть сообщение
Yyy?

Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) return SendClientMessage(playerid,0xFFFF00FF,"Unknown command");
return 1;
}
Is that what you need?

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;
}
It's Saying "Unknown Command" && I'm Not Using Any Other Cmds
Reply


Messages In This Thread
Zcmd Question - by CSSI - 05.10.2011, 14:56
Re: Zcmd Question - by Wesley221 - 05.10.2011, 14:56
Re: Zcmd Question - by Jafet_Macario - 05.10.2011, 14:57
Re: Zcmd Question - by CSSI - 05.10.2011, 14:58
Re: Zcmd Question - by Jafet_Macario - 05.10.2011, 14:59
Re: Zcmd Question - by Libra_PL - 05.10.2011, 15:02
Re: Zcmd Question - by Max_Coldheart - 05.10.2011, 15:03
Re: Zcmd Question - by Jafet_Macario - 05.10.2011, 15:07
Re: Zcmd Question - by CSSI - 05.10.2011, 15:08
Re: Zcmd Question - by DRIFT_HUNTER - 05.10.2011, 16:30

Forum Jump:


Users browsing this thread: 2 Guest(s)