03.06.2014, 03:25
The server is supposed to kick a player checking if he is rangebanned but instead the one gets the message of rangeban and in a while appears a login dialog so he could log again, the main problem is the server is supposed to kick the player but it doesnt do so.Thats my code which check for rangeban.
pawn Код:
if(CheckBan(string) == 1 && !dini_Int(file, "Whitelisted"))
{
SetPlayerName(playerid, "BannedPlayer");
SendClientMessage(playerid, COLOR_DARKRED, "{FFFFFF}Your range is banned from this server. Request getting whitelisted in the forums");
SetTimerEx("KickTime", 100, false, "i", playerid);
return 1;
}