[Pedido] Anti Fake-Kill
#2

Eu nгo testei, mas de acordo com o Lorenc_ funciona bem.
Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
pawn Код:
new LastDeath[ MAX_PLAYERS ];
new DeathSpam[ MAX_PLAYERS char ];

public OnPlayerDeath(playerid, killerid, reason)
{
    new time = gettime( );
    switch( time - LastDeath[ playerid ] )
    {
        case 0 .. 3:
        {
            DeathSpam{ playerid }++;
            if( DeathSpam{ playerid } == 3 )
            {
                BanEx( playerid, "Fake-kill" );
                return 1;
            }
        }
        default: DeathSpam{ playerid } = 0;
    }
    LastDeath[ playerid ] = time;
    return 1;
}
Created by Cessil, sent privately however, it's useful... Tested by me and works.

[NOTE]: MAKE SURE YOU RESET THE VARIABLES!
http://forum.sa-mp.com/showthread.ph...58#post1820558
Reply


Messages In This Thread
[Pedido] Anti Fake-Kill - by @Riichard - 25.04.2012, 16:52
Re: [Pedido] Anti Fake-Kill - by ViniBorn - 25.04.2012, 16:54
Re: [Pedido] Anti Fake-Kill - by @Riichard - 25.04.2012, 17:00
Re: [Pedido] Anti Fake-Kill - by ViniBorn - 25.04.2012, 17:02
Re: [Pedido] Anti Fake-Kill - by dPlaYer_ - 25.04.2012, 17:16
Re: [Pedido] Anti Fake-Kill - by @Riichard - 25.04.2012, 17:18
Re: [Pedido] Anti Fake-Kill - by RoacH` - 25.04.2012, 17:22
Re: [Pedido] Anti Fake-Kill - by dPlaYer_ - 25.04.2012, 17:28
Re: [Pedido] Anti Fake-Kill - by @Riichard - 25.04.2012, 17:30
Re: [Pedido] Anti Fake-Kill - by Gabriel10101 - 25.07.2012, 17:30

Forum Jump:


Users browsing this thread: 1 Guest(s)