My own message insted of SERVER:Uknown 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: My own message insted of SERVER:Uknown Command (
/showthread.php?tid=116300)
My own message insted of SERVER:Uknown Command -
JoeeeFm8 - 28.12.2009
How can i change that if you type a command that i havent got for example /blabla
you get my own message insted of SERVER:Uknown Command
Re: My own message insted of SERVER:Uknown Command -
Correlli - 28.12.2009
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// your command.
return 1;
}
// other commands.
return SendClientMessage(...); // your custom message.
}
Re: My own message insted of SERVER:Uknown Command -
JoeeeFm8 - 28.12.2009
but this will not work if you type in something else like /bla will it?
Re: My own message insted of SERVER:Uknown Command -
Correlli - 28.12.2009
This will work if you type a command which doesn't exist in your script.