Healing problem
#1

I tried making a code if player health is lower than 20 he should get healed.


pawn Код:
new Float:health;
        GetPlayerHealth(playerid,health);
        if(health < 30.0)
        {
        SetPlayerHealth(playerid,100);

    }
I use OnPlayerTakeDamage callback for the code.
Am i using wrong callback or something wrong with my code. Hoping for help asap. Thanks
Reply


Messages In This Thread
Healing problem - by RoleplayEditor - 16.04.2014, 08:58
Re: Healing problem - by Hanuman - 16.04.2014, 09:02
Re: Healing problem - by RoleplayEditor - 16.04.2014, 09:12
Re: Healing problem - by PrivatioBoni - 16.04.2014, 09:28

Forum Jump:


Users browsing this thread: 3 Guest(s)