could you?Need HS
#1

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.
Reply
#2

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)