Hi, I got a code from another plugin and connected it to the mode
Which causes health to be displayed in the form of sprites
I have this
PHP Code:
new Float:percent=float(get_user_health(id))/float(ArrayGetCell(g_zclass_hp, g_iZombieClass[id]));
new Float:frame= pev(ent, pev_fuser1)-(pev(ent, pev_fuser1)*percent);
The problem is that if I buy HP from the store it can not detect the amount of health