10.03.2017, 10:58
How need end timer, i want make it work only for 5seconds if 5 seconds end, timer will killed and hp will not gained bat after couple second passed again i can use it
Код:
forward Regeneration(playerid, timess); public Regeneration(playerid, timess) { new Float: Health; if(GetPlayerHealth(playerid, Health)) { if(100.0 < (Health += 2.0)) SetPlayerHealth(playerid, 100.0); else { SetPlayerHealth(playerid, Health); SetTimerEx("Regeneration", 2000, false, "dd", playerid, times - 1); } return true; } return false; }