Server Unknown command
#1

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
Reply
#2

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!");
Reply
#3

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

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 -.-
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)