17.05.2018, 22:58
Acho que assim vai funcionar do jeito que vocк quer:
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart){ new Float:targethp; GetPlayerHealth(damagedid, targethp); if(amount > targethp) SetPlayerHealth(damagedid, 1.0); if(targethp == 1.0){ ApplyAnimation(playerid, "PED", "KO_shot_stom",5.0,1,0,0,0,0); /*Variбvel que diz que o player estб incapacitado*/ = true; } return 1; }