zcmd invalid command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: zcmd invalid command (
/showthread.php?tid=372824)
zcmd invalid command -
R4VER - 28.08.2012
hey guys there is a lil question. how to edit these 2 callbacks to send the message i want instead of default invalid command message?
Код:
OnPlayerCommandReceived(playerid, cmdtext[])
{
return 1;
}
OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
return 1;
}
Re: zcmd invalid command -
Ironboy - 28.08.2012
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(success == 0)
{
SendClientmessage(playerid,-1,"Message");
return 1;
}
return 1;
}
Re: zcmd invalid command -
R4VER - 28.08.2012
thx ^^