22.01.2013, 05:26
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?
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?