17.05.2018, 22:50
PHP код:
SetTimer("CheckVida", 1000, false);
KillVida = 1
forward CheckVida(playerid);
public CheckVida(playerid)
{
new Float:vida;
GetPlayerHealth(playerid, vida);
if(KillVida == 1)
{
if(vida <= 100.0)
{
ApplyAnimation(playerid, "PED", "KO_shot_stom",5.0,1,0,0,0,0);
}
}
return 1;
}