Help Please About Ip
#1

How to detect that player that have same ip and login together 5 player will be ban automatic ??
Reply
#2

pawn Код:
forward CheckDuplicateIp();
public CheckDuplicateIp()
{
    new ip[16];
    new count[32];
    new string[256];
    for(new i = 0; i<MAX_PLAYERS;i++)
    {
        GetPlayerIp(i, ip, 16);
        count[ip]++; // ERROR
        if(count[ip] >= 5) // ERROR
        {
            format(string,sizeof(string),"banip %s",ip);
            SendRconCommand(string);
            SendRconCommand("reloadbans");
        }
    }
    return 1;
}
it show error

pawn Код:
error 033: array must be indexed (variable "ip")
Reply
#3

Check your filterscripts folder that came with the server package. There is this exact code. It's named "maxips.pwn".
Reply
#4

Oh thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)