01.08.2016, 13:33
Quote:
Yes but how can i detect and save his old health before give damage on a string and if player lost more than 50% of his old health will recive an message (for example) please
|
Use this function again when player take damage (link)
Now on this call back use another var to store the current health and check it with the global var we used before.
PHP код:
if(second_var==first_var/2)//for 50%