[Help] Hacker Fake Kill !
#2

Quote:

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
[Help] Hacker Fake Kill ! - by Pajser - 30.06.2013, 12:00
Re: [Help] Hacker Fake Kill ! - by Nines - 30.06.2013, 12:12

Forum Jump:


Users browsing this thread: 3 Guest(s)