Ban evading bug
#1

Hello,i have a problem with a ban evading function.The server kicks you for no reason,or when you crash and get back on server,it gives you ban for no reason.I`m using Raven`s Roleplay GM.That`s the part:
Код:
format(bancheck, sizeof(bancheck),"LARP/Users/Bans/%s.ban",playersip);

	if(dini_Exists(bancheck))
	{
	    ClearChatbox(playerid, 10);

		if(!strcmp(dini_Get(bancheck,"BanName"),plname,true))
		{
		    SendClientMessage(playerid, COLOR_NICERED,"=======================================AI LUAT BAN======================================");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Acest nume este banat pe server, Si niciodata nu a fost unbanat.");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Daca doresti sa fi unbanat intra pe forumul nostru wwww.darktouchrp.tk ");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
			SendClientMessage(playerid, COLOR_NICERED,"=======================================INFORMATII DESPRE BAN===================================");
			format(msg2,sizeof(msg2),"Ban issued by administrator: %s",dini_Get(bancheck,"BannedBy"));
			SendClientMessage(playerid, COLOR_WHITE,msg2);
			format(msg2,sizeof(msg2),"Ban issued on: %s",dini_Get(bancheck,"BanDate"));
			SendClientMessage(playerid, COLOR_WHITE,msg2);
			format(msg2,sizeof(msg2),"Ban Reason: %s",dini_Get(bancheck,"BanReason"));
			SendClientMessage(playerid, COLOR_WHITE,msg2);
			SendClientMessage(playerid, COLOR_NICERED,"========================================YOU ARE BANNED=======================================");

		    format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), Has been kicked for Possible Ban Evading",plname,playerid);
		    SendAdminMessage(COLOR_LIGHTRED,msg2);

		    format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s Has been kicked by the anticheat for Possible Ban Evading",d,m,y,h,mi,s,plname);
		    KickLog(msg2);

            OnPlayerUpdateEx(playerid);
		    SetTimerEx("KickPlayerOut",500,false,"i",playerid);
		    return 0;
		}
		else
		{
		    SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED======================================");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Acest IP A fost banat pe server, Si nu a Fost Niciodata unbanat.");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Daca doresti sa fi unbanat intra pe forumul nostru wwww.darktouchrp.tk!");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
			SendClientMessage(playerid, COLOR_NICERED,"=======================================BAN INFORMATION=====================================");
            format(msg2,sizeof(msg2),"Name of the account Banned on the ip %s: %s",playersip, dini_Get(bancheck,"BanName"));
			SendClientMessage(playerid, COLOR_WHITE,msg2);
			format(msg2,sizeof(msg2),"Ban issued by administrator: %s",dini_Get(bancheck,"BannedBy"));
			SendClientMessage(playerid, COLOR_WHITE,msg2);
			format(msg2,sizeof(msg2),"Ban issued on date: %s",dini_Get(bancheck,"BanDate"));
			SendClientMessage(playerid, COLOR_WHITE,msg2);
			format(msg2,sizeof(msg2),"Ban Reason: %s",dini_Get(bancheck,"BanReason"));
			SendClientMessage(playerid, COLOR_WHITE,msg2);
			SendClientMessage(playerid, COLOR_NICERED,"========================================YOU ARE BANNED=======================================");

		    format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), A luat kick pentru posibil Ban Evading",plname,playerid);
		    SendAdminMessage(COLOR_LIGHTRED,msg2);

		    format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s A luat kick de la Anti-Cheat pentru posibil Ban Evading",d,m,y,h,mi,s,plname);
		    KickLog(msg2);

		    format(msg2,sizeof(msg2),"LARP/Users/%s.ini",plname);
		    if(dini_Exists(msg2))
		    {
		        dini_IntSet(msg2,"Banned",1);
			}

		    OnPlayerUpdateEx(playerid);
		    SetTimerEx("KickPlayerOut",500,false,"i",playerid);
		    return 1;
		}
	}

	format(bancheck, sizeof(bancheck),"LARP/Users/%s.ini",plname);
	if(dini_Exists(bancheck))
	{
	    if(dini_Int(bancheck,"Banned") == 1)
	    {
	        ClearChatbox(playerid, 10);

	        SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED=======================================");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Acest nume este banat pe server, Si niciodata nu a fost unbanat.");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Daca doresti sa fi unbanat intra pe forumul nostru wwww.darktouchrp.tk!");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
			SendClientMessage(playerid, COLOR_NICERED,"============================================================================================");
		    format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), A luat kick pentru posibil Ban Evading",plname,playerid);
		    SendAdminMessage(COLOR_LIGHTRED,msg2);
		    format(msg2,sizeof(msg2),"[ADMIN]: IP %s A fost adaugat la lista banurilor de catre Anti-Cheat ",playersip);
		    SendAdminMessage(COLOR_WHITE,msg2);

		    format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s A luat kick de la Anti-Cheat pentru posibil Ban Evading",d,m,y,h,mi,s,plname);
		    KickLog(msg2);

		    SetTimerEx("ScriptBan",500,false,"iis",playerid,999,"Ban Evading");
		    return 1;
		}
	}
Thank you!
Reply


Messages In This Thread
Ban evading bug - by George0305 - 09.02.2014, 13:49
Re: Ban evading bug - by Don_Cage - 09.02.2014, 14:58
Re: Ban evading bug - by George0305 - 09.02.2014, 16:18
Re: Ban evading bug - by Don_Cage - 09.02.2014, 17:16
Re: Ban evading bug - by George0305 - 09.02.2014, 18:21
Re: Ban evading bug - by George0305 - 11.02.2014, 17:18
Re: Ban evading bug - by Oscii - 11.02.2014, 17:24
Re: Ban evading bug - by George0305 - 11.02.2014, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)