Adding commandsˇ
#1

If i add commands to gamemode and ingame i write that command that command works but i get message SERVER:Unknow command how i can remove that ?
Im using gAdmin maybe for that or what ?
[IM BAD ENGLISH]
Reply
#2

Well returning 0 will result to that.

Change it too :

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  return SendClientMessage(playerid, Colour, "Some message here....");
}
Reply
#3

Quote:
Originally Posted by ViruZZzZ_ChiLLL
Посмотреть сообщение
Well returning 0 will result to that.

Change it too :

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  return SendClientMessage(playerid, Colour, "Some message here....");
}
I mean it when I write the wrong command , then that message not coming ...
Reply
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
return 1;
}
return 0; // u need to change this in ...
pawn Код:
return SendClientMessage(playerid, 0xFF0000FF, "SERVER: Sorry, but this command does not exist.");
if this is the right thing u want...

and u can try this for not coming the message

pawn Код:
return SendClientMessage(playerid, 0xFF0000FF, " ");
NOT TESTED
Reply
#5

put
pawn Код:
return 1;
at the end of your commands (before the last bracket)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)