SA-MP Forums Archive
Simple Anti Fake kill [reps] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Simple Anti Fake kill [reps] (/showthread.php?tid=526146)



Simple Anti Fake kill [reps] - SPA - 15.07.2014

Anyone can help me add Anti Fake Kill, simple with out timers and usefull? thanks


Re: Simple Anti Fake kill [reps] - LivingLikeYouDo - 15.07.2014

Simple ******,

Код:
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;
}



Re: Simple Anti Fake kill [reps] - sammp - 15.07.2014

@LivingLikeYouDo

Instead of showing the function why don't you provide the variables?


Re: Simple Anti Fake kill [reps] - SPA - 16.07.2014

Are u sure this will work?


Re: Simple Anti Fake kill [reps] - BroZeus - 16.07.2014

i guess a little ****** could be help ful
anyways this https://sampforum.blast.hk/showthread.php?tid=482402


Re: Simple Anti Fake kill [reps] - SPA - 17.07.2014

not working .. :/