16.04.2014, 08:58
I tried making a code if player health is lower than 20 he should get healed.
I use OnPlayerTakeDamage callback for the code.
Am i using wrong callback or something wrong with my code. Hoping for help asap. Thanks
pawn Код:
new Float:health;
GetPlayerHealth(playerid,health);
if(health < 30.0)
{
SetPlayerHealth(playerid,100);
}
Am i using wrong callback or something wrong with my code. Hoping for help asap. Thanks