AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Diagnose health (https://forums.alliedmods.net/showthread.php?t=335996)

amirwolf 01-19-2022 20:58

Diagnose health
 
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_hpg_iZombieClass[id]));
    new 
Float:framepev(entpev_fuser1)-(pev(entpev_fuser1)*percent); 

The problem is that if I buy HP from the store it can not detect the amount of health

fysiks 01-19-2022 22:44

Re: Diagnose health
 
So, what exactly is your question? I'm not seeing any context to even guess.

amirwolf 01-20-2022 05:13

Re: Diagnose health
 
Sorry I did not give a clear explanation
The question is, how do I know the amount of HP that is added with the purchase?
And be added in this section

Natsheh 01-20-2022 06:20

Re: Diagnose health
 
floatmin(float(get_user_health), maxhealth) divided by maxhealth

amirwolf 01-20-2022 10:11

Re: Diagnose health
 
Thank you
Solved


All times are GMT -4. The time now is 11:37.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.