Remove Unknown Command from ZCMD? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Remove Unknown Command from ZCMD? (
/showthread.php?tid=220038)
Remove Unknown Command from ZCMD? -
SWEMike - 02.02.2011
Everytime I use a command that doesn't exist it says "SERVER: Unknown Command" but this might get kinda spammy.
I know how to turn it off for the old strcmp commands but if it's possible, how do I turn this off for ZCMD?
Re: Remove Unknown Command from ZCMD? -
Krx17 - 02.02.2011
You must return 1 at the end of it. It's the same for any statements or conditions you use inside OnPlayerCommandText. Whether it's dcmd, zcmd, or whatevercmd.
Re: Remove Unknown Command from ZCMD? -
xRyder - 02.02.2011
ZCMD has one implanted function called OnPlayerCommandPerformed.
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
return 1;//If player writes command wrong this will still return it as a true.
}
Re: Remove Unknown Command from ZCMD? -
SWEMike - 02.02.2011
Oh, wasn't sure whether those things would work. but now I feel stupid for not trying.

Thanks man!