Hey all :)
#1

So I need help with one command... how to set player in crack animation when he has 1/4 of health?
Reply
#2

Use something like this..
Код:
forward Health();
public Health()
{
    for(new i; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
    	         new Float:health;
	            GetPlayerHealth(i, health);
	            if(health < 25)
	            {
                        ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
                    }
            }
        } 
  return 1;
}
Im not 100% sure does it work but you should try to do it like that
Reply
#3

Thank you very much my mate It works 100 %
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)