29.07.2010, 11:41
(
Последний раз редактировалось omidi; 29.07.2010 в 21:31.
)
hello .i want make a timer that when is player on death the tiimer
refill player health +5 hp auto per 5 sec and then if the player's hp refill to 50 then toggle player is 1, i do this
: where is wrong ?
refill player health +5 hp auto per 5 sec and then if the player's hp refill to 50 then toggle player is 1, i do this
: where is wrong ?
Код:
forward heal();
this is under ongamemod
SetTimer("heal",5000,0);
public OnPlayerDeath(playerid, killerid, reason)
{
TogglePlayerControllable(playerid,0);
new Float:health;
GetPlayerHealth(playerid);
heal = SetPlayerHealth(playerid, health+5);
if GetPlayerHealth(playerid)== 50) {
TogglePlayerControllable(playerid,1);
SetPlayerPos(playerid,12002,1202,20);
}
return 1;
}

