Death Animation below a certain health
#4

Do you store your player-variables in an enum? Then it would work like this:

Код:
enum PDATA // EXAMPLE
{
     Float:x,
     Float:y,
     Float:z,
     name[24],
     money,
     isInjured
     
}
pInfo[MAX_PLAYERS][PDATA]; // EXAMPLE
Set pInfo[p][isInjured] = 1; when the player gets injured and check:
if(pInfo[p][isInjured] != 1)
{
// Code here
}
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)