SA-MP Forums Archive
SendCommand - 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: SendCommand (/showthread.php?tid=429757)



SendCommand - kalanerik99 - 11.04.2013

Hey!

Can someone tell me if there is SendCommand function

Please



Re: SendCommand - Faisal_khan - 11.04.2013

pawn Код:
#define SendPlayerCommand OnPlayerCommandText
And use it like this:
pawn Код:
SendPlayerCommand(playerid, "/mycommand");



Re: SendCommand - kalanerik99 - 11.04.2013

I want that if player will chose something in dialog it will use a command!


I have got this error:
Quote:

error 004: function "zcmd_OnPlayerCommandText" is not implemented


And this code:


pawn Код:
CMD:ta(playerid, params[])
{
SendPlayerCommand(playerid, "/v");
return 1;
}



Re: SendCommand - Revo - 11.04.2013

I think with ZCMD you can just reference to another command using
pawn Код:
CMD:command(playerid, params[]) {
  return CMD:command2(playerid, params);
}
I'm not sure though.


Re: SendCommand - zT KiNgKoNg - 11.04.2013

First off stop with the big red text i think most of us can read normal text, Don't you?


Re: SendCommand - kalanerik99 - 12.04.2013

just help please


Re: SendCommand - MP2 - 12.04.2013

Why don't you help yourself by explaining what you actually want in more than 3 words?


Re: SendCommand - kalanerik99 - 12.04.2013

I want that if player will chose race 1 in text draw it will use him a command because i dont want to copy all of the race 1 lines to the text draw case.


Re: SendCommand - KingHual - 12.04.2013

Just use a stock/public function then?


Re: SendCommand - kalanerik99 - 12.04.2013

What can you tell me more please