Anti FakeKill.
#1

Hello,
i got some problems with my anti-fakekill.
OnPlayerDeath:
Код:
	SetPVarInt(playerid, "RemoveDeaths", GetPVarInt(playerid, "RemoveDeaths")+1);
	if(GetPVarInt(playerid, "RemoveDeaths") == 2) Kick(playerid); 
	SetTimerEx("RemoveDeaths", 2000, false, "i", playerid);
	if(killerid != INVALID_PLAYER_ID)
	{
	    new Float:life, Float:p_pos[3];
	    GetPlayerPos(playerid, p_pos[0], p_pos[1], p_pos[2]);
		GetPlayerHealth(playerid, life);
		if(GetPlayerWeapon(killerid) != reason || IsPlayerNPC(killerid) || !IsPlayerInRangeOfPoint(killerid, 65.0, p_pos[0], p_pos[1], p_pos[2]))
        {
			SetPVarInt(playerid, "FakeKill", GetPVarInt(playerid, "FakeKill")+1);
			SetPVarInt(playerid, "FakeKillTimer", SetTimerEx("ResetFakeKill", 10*1000, false, "i", playerid));
			for(new i, j = MAX_PLAYERS; i < j; i++) if(IsPlayerConnected(i) && player[i][adminlevel] != 0 && !IsPlayerNPC(i))
			{
			    format(message, sizeof(message), "** %s using FakeKill", getname[playerid]);
				log_write("AntiCheat", message);
				SendFormatMessage(i, color_white, message, "** {FF0000}%s {FFFFFF}has using hacks (reason: FakeKill Hack)", getname[playerid]);
			}
			if(GetPVarInt(playerid, "FakeKill") == 2) return Kick(playerid);
			return false;
		}
	}
I dont know why those codes doesn't works.
A normally fake kill it's blocked. But some players trying to attack my server, inside, they get to the server & in 1 minute or less, more then 100,000 attacks!
I dont have any idea why it isn't blocked them , and normally attacks its block.

Thanks!
Reply


Messages In This Thread
Anti FakeKill. - by AfikAtashga - 29.01.2014, 19:55
Re: Anti FakeKill. - by Abagail - 29.01.2014, 19:59
Re: Anti FakeKill. - by SwisherSweet - 29.01.2014, 20:08
Re: Anti FakeKill. - by AfikAtashga - 30.01.2014, 13:54
Re: Anti FakeKill. - by SwisherSweet - 30.01.2014, 17:58

Forum Jump:


Users browsing this thread: 2 Guest(s)