Connecting and Disconnecting someone from 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Connecting and Disconnecting someone from RCON (
/showthread.php?tid=129393)
Connecting and Disconnecting someone from RCON -
lolumadd - 22.02.2010
I figured out you can log someone into to rcon by doing:
Код:
new ip[64];
GetPlayerIp(playerid, ip);
OnRconLoginAttempt(ip, "RCON-PASSWORD", true);
Although, to get him disconnected? How would that be possible? Maybe:
Код:
new ip[64];
GetPlayerIp(playerid, ip);
OnRconLoginAttempt(ip, "ohrazzlefrazzlemeniggasupinthehomieshouse", false);
Would that work? Or is this not possible?
Re: Connecting and Disconnecting someone from RCON -
lolumadd - 22.02.2010
EDIT: I tested, I cant do rcon commands after I did that code, anyone know anyother way to make that possible?