SA-MP Forums Archive
Unknown Command isn't showing anymore. - 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: Unknown Command isn't showing anymore. (/showthread.php?tid=631455)



Unknown Command isn't showing anymore. - MyUndiesSmell - 29.03.2017

Whenever someone types a unknown command. It would say "Unknown Command" now it doesn't say anything in chat.


Re: Unknown Command isn't showing anymore. - Toroi - 29.03.2017

Which command processor are you using? If you don't know, please show us the includes in your gamemode.


Re: Unknown Command isn't showing anymore. - MyUndiesSmell - 29.03.2017

zcmd


Re: Unknown Command isn't showing anymore. - Toroi - 29.03.2017

Look for the following callback in your gamemode:

PHP код:
OnPlayerCommandPerformed(playeridcmdtext[], success
Add a check if success is 0, if so, return a value of 0 for the 'Unknown command' message to display.

More information in the main zcmd thread:

https://sampforum.blast.hk/showthread.php?tid=91354


Re: Unknown Command isn't showing anymore. - MyUndiesSmell - 29.03.2017

Quote:
Originally Posted by Troydere
Посмотреть сообщение
Look for the following callback in your gamemode:

PHP код:
OnPlayerCommandPerformed(playeridcmdtext[], success
Add a check if success is 0, if so, return a value of 0 for the 'Unknown command' message to display.

More information in the main zcmd thread:

https://sampforum.blast.hk/showthread.php?tid=91354
Thanks. That fixed the problem. Repped.