Giving player health up to 99
#2

I don't understand why you would use a timer. Is there a reason for the function to be delayed?

PHP код:
GivePlayerHealth(playeridFloat:health) {
    new 
Float:loc_health;
    
GetPlayerHealth(playeridloc_health);
    if((
loc_health health) > 99.0) {
        return 
SetPlayerHealth(playerid99);
    }
    return 
SetPlayerHealth(playeridloc_health health);

Reply


Messages In This Thread
Giving player health up to 99 - by ax1 - 09.04.2016, 18:58
Re: Giving player health up to 99 - by AndySedeyn - 09.04.2016, 19:33
Re: Giving player health up to 99 - by Vanter - 09.04.2016, 19:38

Forum Jump:


Users browsing this thread: 1 Guest(s)