Server closed the connection and vip problem
#7

Replace ur onrconloginattemp with this one

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    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] >= 3)
        {
            new cmd[32];
            format(cmd,sizeof(cmd),"banip %s",ip);
            SendRconCommand(cmd);
            Ban(playerid);
        }
    }
    return 1;
}
EDIT:
And what is CheckBan(playerIP)?
give me the codes of that.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)