27.10.2012, 11:24
When a banned player attempts to log into my server it crashes.Is it because of a folder missing in scriptfiles.Heres the code.
Код:
// Checking for rangeban new range[4][4]; split(RPIP(playerid), range, '.'); format(string, sizeof(string), "%s.%s.*.*", range[0], range[1]); if(CheckBan(string) == 1 && !dini_Int(file, "Whitelisted")) { SetPlayerName(playerid, "BannedPlayer"); SendClientMessage(playerid, COLOR_DARKRED, "Xtreme Gaming: {FFFFFF}Your range is banned from this server. (You can request getting whitelisted at www.samp-xrp.co.cc)"); Kick(playerid); return 1; } // Checking for IP ban if(CheckBan(RPIP(playerid)) == 1) { SetPlayerName(playerid, "BannedPlayer"); SendClientMessage(playerid, COLOR_DARKRED, "Xtreme Gaming: {FFFFFF}You are banned from Xtreme Gaming Roleplay. (Make a ban appeal at www.samp-xrp.co.cc)"); Kick(playerid); return 1; } // Checking for character ban if(dini_Int(file, "pBanned") == 1) { SetPlayerName(playerid, "BannedPlayer"); SendClientMessage(playerid, COLOR_DARKRED, "SERVER: {FFFFFF}You are banned from this server. ( Make a ban appeal at www.samp-xrp.co.cc )"); AddBan(playerid); Kick(playerid); return 1; } return 1; }