[Hospital System] Timer and Respawn place
#1

Hey ,

Well I am trying to make it so when you die, your screen points at the hospital and a timer of 60 seconds goes and when its done you spawn infront of the hospital and you have 100 hp. Here is what I did:

Код:
forward DEAD1();
public OnPlayerDeath(playerid, killerid, reason)
{
	SendClientMessage(playerid, COLOR_RED, "You're being rushed to the hospital!");
 	SetPlayerPos(playerid, 1221.7010,-1328.6449,13.4821);
  	SetPlayerCameraPos(playerid, 1204.3781,-1313.3323,16.3984);
	SetPlayerCameraLookAt(playerid, 1174.7167,-1323.4485,14.5938);
	SetTimer("DEAD1", 50000, 1);
	SetPlayerHealth(playerid,100);
	SetPlayerPos(playerid,1172.6569,-1323.2815,15.4025);
	return 1;
}
That was pretty much what I did for it, but when the person in the game dies they just spawn here:
Код:
	AddPlayerClass(0,362.7798,-1558.6129,32.8815,147.4366,0,0,0,0,0,0); // New Player Spawn
Not sure why but yea, am I doing something wrong ? thanks for reading and help ^-^!
Reply


Messages In This Thread
[Hospital System] Timer and Respawn place - by XoSarahMoX - 18.11.2010, 01:22
Re: [Hospital System] Timer and Respawn place - by Buzzbomb - 18.11.2010, 02:12
Re: [Hospital System] Timer and Respawn place - by XoSarahMoX - 18.11.2010, 02:52
Re: [Hospital System] Timer and Respawn place - by Buzzbomb - 18.11.2010, 03:08
Re: [Hospital System] Timer and Respawn place - by XoSarahMoX - 18.11.2010, 03:14
Re: [Hospital System] Timer and Respawn place - by Buzzbomb - 18.11.2010, 03:51

Forum Jump:


Users browsing this thread: 1 Guest(s)