Death Animation below a certain health
#2

Код:
// Gamemodeinit
SetTimer("CheckInjuries", 1000, true);

forward CheckInjuries();
public CheckInjuries()
{
    for(new p = 0; p < MAX_PLAYERS; p++)
    {
       new Float:health;
       GetPlayerHealth(p, health); 
       if(health < 30.0)
       {
           // Do the text and thing here.
          // Make sure to set a variable for the player so that it won't show the message/animation every second.
       }

    }

}
Reply


Messages In This Thread
Death Animation below a certain health - by Krakuski - 23.06.2015, 18:52
Re: Death Animation below a certain health - by AlonzoTorres - 23.06.2015, 19:00
Re: Death Animation below a certain health - by Krakuski - 23.06.2015, 19:05
Re: Death Animation below a certain health - by AlonzoTorres - 23.06.2015, 19:09
Re: Death Animation below a certain health - by Krakuski - 23.06.2015, 19:16

Forum Jump:


Users browsing this thread: 1 Guest(s)