The function GetPlayerHealth allows you to retrieve the health of a player. Useful for cheat detection, among other things.
|playerid||The ID of the player.|
|&Float:health||Float to store health, passed by reference.|
1 - success
0 - failure (i.e. player not connected).
The player's health is stored in the specified variable.
Even though the health can be set to near infinite values on the server side, the individual clients will only report values up to 255. Anything higher will wrap around; 256 becomes 0, 257 becomes 1, etc. Health is obtained rounded to integers: set 50.15, but get 50.0