Unknow 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: Unknow command! (
/showthread.php?tid=512772)
[Solved]Unknow command! -
ossukoss - 12.05.2014
How i can add unknow command for this gamemode(
http://www.solidfiles.com/d/w5hW/).
Re: Unknow command! -
Nathan_Taylor - 12.05.2014
Change line 40300 to
Re: Unknow command! -
DiGiTaL_AnGeL - 12.05.2014
At the end of OnPlayerCommandText, use
pawn Код:
return SendClientMessage(playerid, 0xcolor, "SERVER: UNKNOWN COMMAND");
instead of
Re: Unknow command! -
Nathan_Taylor - 12.05.2014
Quote:
Originally Posted by DiGiTaL_AnGeL
At the end of OnPlayerCommandText, use
pawn Код:
return SendClientMessage(playerid, 0xcolor, "SERVER: UNKNOWN COMMAND");
instead of
|
https://sampwiki.blast.hk/wiki/OnPlayerCommandText
Quote:
// Returning 0 informs the server that the command hasn't been processed by this script.
// OnPlayerCommandText will be called in other scripts until one returns 1.
// If no scripts return 1, the 'SERVER: Unknown Command' message will be shown to the player.
|
You can do what you said, but there really is no point, it will do it automatically. Unless you want to do a custom message/textdraw/sound whatever.
Re: Unknow command! -
DiGiTaL_AnGeL - 12.05.2014
Quote:
Originally Posted by Nathan_Taylor
|
Yeah, totally forgot.
Re: Unknow command! -
ossukoss - 12.05.2014
Thanks guys!