Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by B ( 13 years ago )
public OnRconLoginAttempt(ip[], password[], success)
{
new pip[16], string[128];
for(new i = (MAX_PLAYERS - 1); i > -1; --i)
{
GetPlayerIp(i, pip, sizeof(pip));
if(!success)
{
if(!strcmp(ip, pip , true ))
{
SetPVarInt( i, "RconFails", GetPVarInt(i, "RconFails" ) + 1);
if( GetPVarInt( i, "RconFails" ) >= 3)
{
format(string, sizeof(string), "the player %s was kicked reason: {FFAE00}Rcon Evade", GetPlayerNameEx(i));
SendClientMessageToAll(-1, string);
Kick(i);
}
break;
}
}
}
return 1;
}
Revise this Paste