30.01.2013, 21:07
The method you used to detect fake kills detects it at minimum after 3 seconds.
That should do the trick.
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();
}

