14.09.2010, 09:17
The code looks (almost) okay, it is just a minor mistake. GetPlayerHealth returns the health as Float, but if you compare it to a non-point integer value it does not work as it should.
In short, just make the 0 a float:
if(health != 0.0)
In short, just make the 0 a float:
if(health != 0.0)