18.11.2010, 01:22
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:
That was pretty much what I did for it, but when the person in the game dies they just spawn here:
Not sure why but yea, am I doing something wrong ? thanks for reading and help ^-^!
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; }
Код:
AddPlayerClass(0,362.7798,-1558.6129,32.8815,147.4366,0,0,0,0,0,0); // New Player Spawn