08.04.2012, 13:23
try this
now will check every body
pawn Код:
forward Dying();
public Dying()
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(playerVariables[i][pHealth] <= 20)
{
playerVariables[i][pBleedingOut] = 1;
ApplyAnimation(i, "SWAT", "gnstwall_injurd", 4.0, 1, 0, 0, 0, 0);
TogglePlayerControllable(i, 0);
playerVariables[i][pHealth] -= 10;
}
}
return 1;
}

