Extremely important kick bug 0.3e
#2

The method you used to detect fake kills detects it at minimum after 3 seconds.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    DeathCount[playerid]++;
    if(DeathCount[playerid] > 3 && GetTickCount() - LastDeath[playerid] < 1000)
    {
        //fake killing
    }
    if(GetTickCount() - LastDeath[playerid] > 1000)
    {
        DeathCount[playerid] = 0; // reset death count to avoid wrongful bans
    }
    LastDeath[playerid]=GetTickCount();
}
That should do the trick.
Reply


Messages In This Thread
Extremely important kick bug 0.3e - by wups - 30.01.2013, 11:07
Re: Extremely important kick bug 0.3e - by CodyCummings - 30.01.2013, 21:07
Re: Extremely important kick bug 0.3e - by Kar - 30.01.2013, 21:38
Re: Extremely important kick bug 0.3e - by CodyCummings - 30.01.2013, 21:46
Re: Extremely important kick bug 0.3e - by Lorenc_ - 30.01.2013, 22:50
Re: Extremely important kick bug 0.3e - by Mauzen - 30.01.2013, 23:59
Re: Extremely important kick bug 0.3e - by wups - 31.01.2013, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)