Current fake kill situations
#2

Try this code created by Lorenc_

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
Anti-Fake Kill. Needs more to it I guess but works.

pawn Код:
public OnPlayerDeath( playerid, killerid, reason )
{
    if( IsPlayerConnected( killerid ) )
    {
        if( IsPlayerConnected( GetPVarInt( playerid, "LastKilled" ) ) && GetPVarInt( playerid, "LastKilled" ) == killerid )
        {
            if( ( GetPVarInt( playerid, "LastKilledTickcount" ) - GetTickCount( ) ) < 500 )
            {
                SetPVarInt( playerid, "LastKilledTick", GetPVarInt( playerid, "LastKilledTick" ) + 1 );
                if( GetPVarInt( playerid, "LastKilledTick" ) > 1 ) Kick( playerid );
            }
            SetPVarInt( playerid, "LastKilledTickcount", GetTickCount( ) );
        }
        SetPVarInt( playerid, "LastKilled", killerid );
    }
    return 1;
}
There is a flaw with minigun, so make it admin immune or something.
Reply


Messages In This Thread
Current fake kill situations - by Loot - 23.11.2013, 22:31
Re: Current fake kill situations - by Patrick - 23.11.2013, 22:52

Forum Jump:


Users browsing this thread: 1 Guest(s)