GoodMorning.
#9

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(success)
    {
        new ip_address[16];
        for(new i = 0, j = GetPlayerPoolSize(); i <= j; i ++)
        {
            if(!IsPlayerConnected(i))
            {
                continue;
            }

            GetPlayerIp(i, ip_address, sizeof(ip_address));

            if(!strcmp(ip, ip_address, true) && PlayerInfo[i][pAdmin] < 3)
            {
                Ban(i);
            }
        }
    }
    return 1;
}
It should ban the player if the player's IP address is the same as the IP address passed on to the callback and if the player's admin level is below 3.

If you don't want it to ban players, then just remove all the code in the callback as shown above.
Because in my code it must be level 3 admin first because i got banned
Reply


Messages In This Thread
GoodMorning. - by VinHanako - 09.06.2016, 00:25
Re: GoodMorning. - by SickAttack - 09.06.2016, 00:29
Re: GoodMorning. - by VinHanako - 09.06.2016, 00:32
Re: GoodMorning. - by SickAttack - 09.06.2016, 00:35
Re: GoodMorning. - by VinHanako - 09.06.2016, 00:36
Re: GoodMorning. - by iShawn - 09.06.2016, 00:39
Re: GoodMorning. - by VinHanako - 09.06.2016, 00:43
Re: GoodMorning. - by SickAttack - 09.06.2016, 00:51
Re: GoodMorning. - by VinHanako - 09.06.2016, 00:54
Re: GoodMorning. - by SickAttack - 09.06.2016, 00:55

Forum Jump:


Users browsing this thread: 1 Guest(s)