incorrect 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: incorrect command (
/showthread.php?tid=362715)
incorrect command -
thefatshizms - 25.07.2012
Hello, ive seen it on some servers that if you type a cmd wrong or just an unkown cmd it will say a custom error message like "Server does know /kfc do /commands for a list of cmds" how would i do that?
Re: incorrect command -
Kindred - 25.07.2012
Like this (If correct)
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
return SendClientMessage(playerid, -1, "Incorrect command - Custom message");
}
Re: incorrect command -
newbienoob - 25.07.2012
pawn Код:
public OnPlayerCommandPerformed(playerid,cmdtext[],success)
{
if(success == 0)
{
SendClientMessage(playerid,.........);
return 1;
}
return 1;
}
You will need zcmd for that.
Re: incorrect command -
thefatshizms - 25.07.2012
danke