09.04.2016, 19:33
I don't understand why you would use a timer. Is there a reason for the function to be delayed?
PHP код:
GivePlayerHealth(playerid, Float:health) {
new Float:loc_health;
GetPlayerHealth(playerid, loc_health);
if((loc_health + health) > 99.0) {
return SetPlayerHealth(playerid, 99);
}
return SetPlayerHealth(playerid, loc_health + health);
}

