28.10.2012, 02:58
Hello all i have zGaminged script i edited it and now using it for my server but i found a weird bug here.I banned a player
as he tries to re connect to the server instead of auto kicking him my server crashes and it needs to be restarted from the host to make it back working.Heres my banned check.
Help will be appreciated.
as he tries to re connect to the server instead of auto kicking him my server crashes and it needs to be restarted from the host to make it back working.Heres my banned check.
Код:
// 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: 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: 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, "Xtreme Gaming: You are banned from this server. (Make a ban appeal at www.samp-xrp.co.cc)"); AddBan(playerid); Kick(playerid); return 1; } return 1;