SA-MP Forums Archive
Rcon Commands with Parameters - 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: Rcon Commands with Parameters (/showthread.php?tid=72060)



Rcon Commands with Parameters - Injection - 05.04.2009

Hey,
im wondering if its possible to create rcon command with parameters (something like /rcon command [Parameter])
I tried it with (in OnRconCommand)


Re: Rcon Commands with Parameters - Jefff - 05.04.2009

Yes :P just use strtok


Re: Rcon Commands with Parameters - alon1421 - 07.04.2009

Quote:
Originally Posted by Jefff
Yes :P just use strtok
i need that too
but i didnt understand what you mean to Strok
can you give one command ?
thank you

sorry about my eng i form israel!


Re: Rcon Commands with Parameters - ICECOLDKILLAK8 - 07.04.2009

Use OnRconCommand the exact same way that you use OnPlayerCommandText,
But instead of using cmdtext use cmd