Solution for anti-fake killing.
#20

pawn Code:
// Anti FakeKill Flood by RuNix

#include <a_samp>

new XDeaths[MAX_PLAYERS];
new LastDeath[MAX_PLAYERS];

public OnFilterScriptInit()
{
    print("\n----------------------------------------");
    print(" Anti FakeKill Flood FilterScript by RuNix");
    print("----------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public OnPlayerConnect(playerid)
{
    XDeaths[playerid] = 0;
    LastDeath[playerid] = 0;
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    if(XDeaths[playerid] == 0)
    {
       LastDeath[playerid] = gettime();
    }
    XDeaths[playerid]++;
    if(XDeaths[playerid] == 5)
    {
        if((gettime() - LastDeath[playerid]) <= 5)
        {
            SendClientMessage(playerid,0,"{FFBF00}Hey n0b, flood your mother!");
            BanEx(playerid,"Banned for FakeKill Flood");
        }else
        if((gettime() - LastDeath[playerid]) > 5)
        {
            XDeaths[playerid]=0;
        }
    }
    return 1;
}
I use this script on my server Romania Super Stunt and works perfectly.
This script is old of 0.3c and i don't used OnPlayerTakeDamage...
Reply


Messages In This Thread
Solution for anti-fake killing. - by Lorenc_ - 07.03.2012, 06:57
Re: Solution for anti-fake killing. - by Jaxson - 07.03.2012, 07:50
Re: Solution for anti-fake killing. - by leong124 - 07.03.2012, 07:53
Re: Solution for anti-fake killing. - by Lorenc_ - 07.03.2012, 08:10
Re: Solution for anti-fake killing. - by Calgon - 07.03.2012, 10:17
Re: Solution for anti-fake killing. - by Lorenc_ - 08.03.2012, 03:27
Re: Solution for anti-fake killing. - by Whitetiger - 08.03.2012, 03:51
Re: Solution for anti-fake killing. - by Calgon - 08.03.2012, 06:21
Re: Solution for anti-fake killing. - by Kyle - 08.03.2012, 06:40
Re: Solution for anti-fake killing. - by Calgon - 08.03.2012, 06:41
Re: Solution for anti-fake killing. - by decondelite - 08.03.2012, 07:17
Re: Solution for anti-fake killing. - by Calgon - 08.03.2012, 07:19
Re: Solution for anti-fake killing. - by decondelite - 08.03.2012, 07:35
Re: Solution for anti-fake killing. - by [ABK]Antonio - 08.03.2012, 07:41
Re: Solution for anti-fake killing. - by Calgon - 08.03.2012, 10:03
Re: Solution for anti-fake killing. - by leong124 - 08.03.2012, 11:25
Re: Solution for anti-fake killing. - by CuervO - 08.03.2012, 14:49
Re: Solution for anti-fake killing. - by leong124 - 08.03.2012, 16:39
Re: Solution for anti-fake killing. - by Lorenc_ - 08.03.2012, 20:00
Re: Solution for anti-fake killing. - by Raul_Ro - 10.03.2012, 08:42
Re: Solution for anti-fake killing. - by rbN. - 10.03.2012, 09:00
Re: Solution for anti-fake killing. - by Lee_Percox - 10.03.2012, 09:30
Re: Solution for anti-fake killing. - by Lorenc_ - 10.03.2012, 11:21
Re: Solution for anti-fake killing. - by Max_Coldheart - 10.03.2012, 18:21
Re: Solution for anti-fake killing. - by Calgon - 10.03.2012, 18:31
Re: Solution for anti-fake killing. - by Max_Coldheart - 10.03.2012, 18:33
Re: Solution for anti-fake killing. - by Calgon - 10.03.2012, 18:38
Re: Solution for anti-fake killing. - by Max_Coldheart - 10.03.2012, 18:39
Re: Solution for anti-fake killing. - by Calgon - 10.03.2012, 18:47
Re: Solution for anti-fake killing. - by Max_Coldheart - 10.03.2012, 18:50
Re: Solution for anti-fake killing. - by Lorenc_ - 24.04.2012, 23:22
Re: Solution for anti-fake killing. - by Austin - 24.04.2012, 23:36
Re: Solution for anti-fake killing. - by lolumadd_ - 25.04.2012, 00:50
Re: Solution for anti-fake killing. - by Lorenc_ - 25.04.2012, 01:16
Re: Solution for anti-fake killing. - by cessil - 25.04.2012, 02:36

Forum Jump:


Users browsing this thread: 1 Guest(s)