[Ajuda] GetTickCount
#1

O sistema de head shot nгo estб funcionando..
Creio que deve ser por que o GetTickCount й chamado um monte de vezes na funзгo OnPlayerTakeDamage

Cуde:

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{

    HeadSacertos[playerid]++;
    if(HeadSacertos[playerid] == 4 && HeadStick[playerid] > GetTickCount())
        return Kill(playerid), SetPlayerHealth(playerid, 0);
       
    HeadStick[playerid] = GetTickCount() + 3000;
    return 1;
}

OnPlayerSpawn ..

HeadSacertos[playerid] = 0;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)