SA-MP Forums Archive
Server Unknown 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: Server Unknown command (/showthread.php?tid=165586)



Server Unknown command - FireCat - 05.08.2010

Anyone have a clue how to change, like when someone puts a command that i didnt add on the server script how can i change this text?



_______________________
[GDZ]leader



Re: Server Unknown command - [XST]O_x - 05.08.2010

In the end of OnPlayerCommandText you can see "return 0;"
Change 0 to a costume line.
Like:
pawn Код:
return SendClientMessage(playerid,COLOR,"This command is not recognized in our server!");



Re: Server Unknown command - DarkClone - 05.08.2010

At the end of OnPlayerCommandText, replace return 0; with
pawn Код:
else return SendClientMessage(playerid, YourCOLOR, "Message");
EDIT: Beat me D: by a minute.


Re: Server Unknown command - ViruZZzZ_ChiLLL - 05.08.2010

Well if your using :

dcmd & strcmp:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
   // codes here
   return SendClientMessage(playerid, color, "ERROR : Blah blah blah");
}
Not quite sure with zcmd though :
pawn Код:
CMD:command(playerid, params[])
{
   // code here
   return SendClientMessage(playerid, Color, "ERROR : Blah blah blah");
}
EDIT : LMAO, sorry -.-


Re: Server Unknown command - FireCat - 05.08.2010

Quote:

At the end of OnPlayerCommandText, replace return 0; with
pawn Code:

else return SendClientMessage(playerid, YourCOLOR, "Message");


EDIT: Beat me D: by a minute.

THANKS darkclone