03.06.2014, 03:53
There is no need to create a stock function to execute a single line.
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", 200, false, "i", playerid);
return 1;
}
//At the bottom of your script:
forward KickTime(playerid);
public KickTime(playerid) return Kick(playerid);