I need help - 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: I need help (
/showthread.php?tid=138969)
I need help -
AdrianX9 - 03.04.2010
Hi I want to do a code that when a player enter a wrong command it says (SERVER) Wrong command.
Is simple but i cant do :S
Please help me
Re: I need help -
biltong - 03.04.2010
SA:MP does that already. Or do you mean you want a custom message there instead of "SERVER: Unknown command."
Re: I need help -
Carlton - 03.04.2010
It should be by default, if it still happens enter return 0; at the end of OnPlayerCommandText.
Re: I need help -
[MWR]Blood - 03.04.2010
pawn Код:
return 1;
}
else
SendClientMessage(playerid,COLOR_WHITE,"<!>ERROR: The command %s does not exist.Please try /help, /teles or /v to spawn a vehicle.",cmdtext);
return 1;
}
Put that at the finish of OnPlayerCommandText instead