rcon 0 but still able to login? - 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 0 but still able to login? (
/showthread.php?tid=304245)
rcon 0 but still able to login? -
Hoborific - 17.12.2011
So i've been doing some testing and for absolutely no reason would I need rcon, i've decided to disable it, so I typed rcon 0 into server.cfg and restarted the server, but I am still able to login... ideas?
Re: rcon 0 but still able to login? -
Scarred - 17.12.2011
Are you still able to use rcon commands? You may be able to login, but the commands itself may not do anything.
Re: rcon 0 but still able to login? -
Berky - 17.12.2011
If it still works then you can also use to disable RCON scriptwise by making people get kicked on trying to login to RCON.
Re: rcon 0 but still able to login? -
wups - 17.12.2011
The "rcon 0" disables External logging in to rcon. You can disable INTERNAL rcon login in the script.
Re: rcon 0 but still able to login? -
BrandyPenguin - 17.12.2011
Some reason rcon 0 will disable only rcon.exe connections. In Game login you can't disable because it client side command. Only solution may be random password.
Re: rcon 0 but still able to login? -
Ash. - 17.12.2011
Quote:
Originally Posted by BrandyPenguin
In Game login you can't disable because it client side command.
|
How is it client side when it's interacting with data
server-side?
You can disable it in-game, too:
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
new szPIP[16];
for(new i; i < GetMaxPlayers(); i++)
{
GetPlayerIp(i, szPIP, 16);
if(!strcmp(ip, szPIP))
{
SendClientMessage(playerid, 0xFFFFFFFF, "We don't allow RCON use.");
Kick(playerid);
break;
}
}
}
Re: rcon 0 but still able to login? -
BrandyPenguin - 17.12.2011
funky, i tried disabling command on script. It won't called then i type command at all... So disable command is not possible right now. Kicking people for that is useless.