Connecting and Disconnecting someone from RCON
#1

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?
Reply
#2

EDIT: I tested, I cant do rcon commands after I did that code, anyone know anyother way to make that possible?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)