Help me how to add a Message - 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: Help me how to add a Message (
/showthread.php?tid=270481)
Help me how to add a Message -
Harry_Sandhu - 20.07.2011
How to add a message if The Commands is wrong.
I want to show anything else instead of Server: Unkown Command.
Re: Help me how to add a Message -
JaTochNietDan - 20.07.2011
In OnPlayerCommandText it will send Unknown Command to the client by default if you return a 0. If you want to return a custom message, simply do something like:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
return SendClientMessage(playerid, 0xFFFFFF, "Wrong command");
}
I hope that information helps.
Re: Help me how to add a Message -
Harry_Sandhu - 20.07.2011
Ty it worxx