Spawn Position when a player dies.
#7

When a player dies, you would want to set a bool variable to true. So, for example: justDied[playerid] = true;

Obviously, set that under OnPlayerDeath. Under OnPlayerSpawn, check to see if justDied[playerid] is equal to true. To do that: if(justDied[playerid])

If it is, spawn them at the hospital and set the bool back to false. Otherwise, spawn them as usual (as per your accounts system).

Make sense?
Reply


Messages In This Thread
Spawn Position when a player dies. - by Da_Noob - 21.01.2013, 15:23
Re: Spawn Position when a player dies. - by DaRk_RaiN - 21.01.2013, 15:26
Re: Spawn Position when a player dies. - by Da_Noob - 21.01.2013, 15:30
Re: Spawn Position when a player dies. - by DaRk_RaiN - 21.01.2013, 15:33
Re: Spawn Position when a player dies. - by Da_Noob - 21.01.2013, 18:19
Re: Spawn Position when a player dies. - by Da_Noob - 22.01.2013, 04:56
Re: Spawn Position when a player dies. - by Scenario - 22.01.2013, 05:26
Re: Spawn Position when a player dies. - by Da_Noob - 22.01.2013, 14:51

Forum Jump:


Users browsing this thread: 2 Guest(s)