29.08.2010, 17:53
Ok so i need a hospital system for 20 seconds for my roleplay.Basicaly when you die you have to stay in hospital for 20 seconds to gain enough health.Plz make it and i make you admin of the roleplay.
forward HealthTimer(playerid);
new HeatlhTimer[MAX_PLAYERS]
public HealthTimer(playerid);
{
SetPlayerHealth(playerid, 1000);
KillTimer(HealthTimer[playerid]);
TogglePlayerControllable(playerid, true);
}
// Put this where you want the Timer to trigger
HealthTimer[playerid] = SetTimerEx("HealthTimer", 20000, 0, "i", playerid);
TogglePlayerControllable(playerid, false);