Rcon - 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: Rcon (
/showthread.php?tid=523942)
Rcon -
madalin912 - 04.07.2014
How do you not give you admin with rcon on ?
Re : Rcon -
S4t3K - 04.07.2014
What ?
If you plan to make an rcon-admin system, simply use
IsPlayerAdmin on each command.
Else, then give me an example please.
Re: Rcon -
madalin912 - 04.07.2014
I want you to connect with rcon can not do anything with it.
Re: Rcon -
DarkZeroX - 04.07.2014
PHP код:
ZCMD:kickme(playerid,params[])
{
if(IsPlayerAdmin(playerid))
{
Kick(playerid);
}
return 1;
}
Re : Rcon -
S4t3K - 04.07.2014
Nop DZX.
Btw, the "ZCMD" tag doesn't exist any more (and I'm not sure at all about if it has ever existed).
Use "OnRconCommand" and return 0 to it.
Re: Rcon -
madalin912 - 04.07.2014
No sscanf.
Re: Rcon -
madalin912 - 04.07.2014
public OnRconCommand(cmd[])
{
return 1;
}
To go here 0?
Re: Rcon -
DarkZeroX - 04.07.2014
Yes.