SA-MP Forums Archive
Adding commandsˇ - 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: Adding commandsˇ (/showthread.php?tid=188077)



Adding commandsˇ - antsolen - 06.11.2010

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]


Re: Adding commandsˇ - ViruZZzZ_ChiLLL - 06.11.2010

Well returning 0 will result to that.

Change it too :

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



Re: Adding commandsˇ - antsolen - 06.11.2010

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 ...


Re: Adding commandsˇ - Rafa - 06.11.2010

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


Re: Adding commandsˇ - LarzI - 06.11.2010

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