SA-MP Forums Archive
could you?Need HS - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: could you?Need HS (/showthread.php?tid=172309)



could you?Need HS - Sweet_Mafia - 29.08.2010

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.


Re: could you?Need HS - iJumbo - 29.08.2010

make a timer and SetPlayerHealth(playerid,100); with camera look in hospital ^^


Re: could you?Need HS - Paladin - 29.08.2010

pawn Код:
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);
Hope it works, it's untested