Rcon Problem - 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 Problem (
/showthread.php?tid=343798)
Rcon Problem -
adelechevarria - 18.05.2012
My server just got hacked by RCON how can i disable the rcon
Re: Rcon Problem -
FalconX - 18.05.2012
Quote:
Originally Posted by adelechevarria
My server just got hacked by RCON how can i disable the rcon
|
Apparently, there is no way of disabling RCON. It's better to set a very strong password for RCON and have a custom admin system. You can check OnRconLoginAttempt and if the rcon password is correct i.e "success" then you can kick a player with a loop x)
-FalconX
Re: Rcon Problem -
TheDominator - 18.05.2012
I've heard a lot of people have been hacked when using the LuX admin system, try staying away from that.
Re: Rcon Problem -
SuperViper - 18.05.2012
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(success)
{
new playersIP[17];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerIp(i, playersIP, 17);
if(strcmp(ip, playersIP) == 0)
{
Kick(i);
break;
}
}
}
}
return 1;
}
Re: Rcon Problem -
adelechevarria - 19.05.2012
can you convert that command to zcmd