26.05.2011, 15:47
GetPlayerHealth doesn't return the value of the players health, it stores it in a float. Therefore you have to compare the float and not the return value of the function. For example:
Please make sure you are using the SA-MP Wiki for information about the functions and callbacks.
https://sampwiki.blast.hk/wiki/GetPlayerHealth
pawn Код:
new Floath:health;
GetPlayerHealth(playerid,health);
if(health < 80)
{
https://sampwiki.blast.hk/wiki/GetPlayerHealth