SA-MP Forums Archive
Difference between CommandText and RCON Command - 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: Difference between CommandText and RCON Command (/showthread.php?tid=467024)



Difference between CommandText and RCON Command - AnonScripter - 30.09.2013

what's the difference between:
pawn Код:
public OnPlayerCommandText
and

pawn Код:
public OnRCONCommand
is the RCONCommand is for admins only ? why to use !IsPlayerAdmin(playerid) on OnPlayerCommandText then ?


Re : Difference between CommandText and RCON Command - Matnix - 30.09.2013

"This callback is called when a command is sent through the server console, remote RCON, or via the in-game /rcon command."


Re: Difference between CommandText and RCON Command - park4bmx - 30.09.2013

That is reciving the commands through the consol
Edit: too late :/


Re: Difference between CommandText and RCON Command - AnonScripter - 30.09.2013

thanks but explain more please


Re: Difference between CommandText and RCON Command - BlackBank - 30.09.2013

OnRconCommand is almost the same as OnPlayerCommandText, the only differences are:


Re: Difference between CommandText and RCON Command - xganyx - 01.10.2013




Re: Difference between CommandText and RCON Command - AnonScripter - 01.10.2013

thanks all, so its better to only use OnPlayerCommandText
and
if(!IsPlayerAdmin(playerid));


Re: Difference between CommandText and RCON Command - xganyx - 01.10.2013




Re: Difference between CommandText and RCON Command - park4bmx - 01.10.2013

you dont know what your talking about!

OnRconCommand is there for any commands including the parameters that are send from the server console not in game!