Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by BlowUP
the problem is that OnRconLoginAttemp is not called !!!
i have this
pawn Code:
if(!success) { new playersIP[17], playerid;
for(; playerid < MAX_PLAYERS; playerid++) { GetPlayerIp(playerid, playersIP, 17); if(!strcmp(ip, playersIP)) { break; } }
rconAttempts[playerid]++;
if(rconAttempts[playerid] >= 2) { S_LOG("~r~BAD RCON:: %s(%d) Has Been Banned For Bad Rcon Password",GetName(playerid),playerid); Ban(playerid); } }
|
It's only called when the login command is used in-game. If someone is using an outside source then you'll need a new solution.