25.01.2014, 21:53
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
and i use zcmd
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;
}
}