Getting auto banned when logging[will rep]
#1

Hello so i fixed my ban system then i realised that i did if a player connects while he is not banned he gets auto banned any ways like i didnt use the command to ban myself and it kicks me automaticly from the game without saying anything and i removed that code that kicks a banned player and it was fixed but i still want banned players to get kicked if they try to log in
the code is in player connect
here is my code

pawn Код:
for(new id; id < 24; id++)
    {
        if(!strcmp(name,TempBans[id][BannedName]))
        {   // ban type is name
            SendClientMessage(playerid,COLOR_RED,"Your ban has not expired!");
            Kick(playerid);
            return 1;
        }
       
        if(!strcmp(ip,TempBans[id][BannedIP]))
        {   // ban type is ip !
            SendClientMessage(playerid,COLOR_RED,"Your ban has not expired!");
            Kick(playerid);
            return 1;
        }
    }
and i use zcmd
Reply


Messages In This Thread
Getting auto banned when logging[will rep] - by DarkLored - 25.01.2014, 21:53
Re: Getting auto banned when logging[will rep] - by Ranshand - 25.01.2014, 21:58
Re: Getting auto banned when logging[will rep] - by DarkLored - 25.01.2014, 22:00
Re: Getting auto banned when logging[will rep] - by Ranshand - 25.01.2014, 22:03
Re: Getting auto banned when logging[will rep] - by DarkLored - 25.01.2014, 22:04
Re: Getting auto banned when logging[will rep] - by Ranshand - 25.01.2014, 22:12

Forum Jump:


Users browsing this thread: 1 Guest(s)