Remove Unknown Command from ZCMD?
#1

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?
Reply
#2

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.
Reply
#3

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.
}
Reply
#4

Oh, wasn't sure whether those things would work. but now I feel stupid for not trying.
Thanks man!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)