26.05.2013, 13:44
(
Последний раз редактировалось [..MonTaNa..]; 18.01.2014 в 21:01.
)
Removed.
DrugTimer[playerid] = SetTimerEx("DrugsE", 1300, 1, "ii", playerid, amount);
DrugTimer[playerid] = SetTimerEx("DrugsE", 1300, 0, "ii", playerid, amount);
DrugsE is not already shown. The timer set to play that function is. But he probably doesn't have a check to see if the player's health is 100 or higher, and to then reset it back to 100.
|
public DrugsE(playerid,amount)
{
new Float:hZ;
busyAnim[playerid] = false;
GetPlayerHealth(playerid,hZ);
Deffect[playerid]++;
SetPlayerHealth(playerid,hZ+2);
if(hZ > 100.0) SetPlayerHealth(playerid, 100.0);
if(Deffect[playerid] >= amount) return KillTimer(DrugTimer[playerid]);
return 1;
}