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
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:
- OnRconCommand does only be called if you are sending a rcon command (/rcon YouCommandHere, /rcon before is needed).
- With OnRconCommand you have no ability to use the playerid param, so if you have an admin command with GetPlayerPos, SendClientMessage, etc in it, you can't use it.
Re: Difference between CommandText and RCON Command -
xganyx - 01.10.2013
- Simple is OnOrconCommand is just for rcon admin and starting with /rcon Yourcommand
- And OnPlayerCommand is for all... and don't starting with /rcon...
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
- Yes. Because OnPlayerCommandText have a playerid... So the OnPlayerCommandText is more useful than OnRconCommand
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!