08.07.2012, 17:20
Hello, under OnPlayerDeath i set his postition to a hospital interior but once you die and tele there u then die again and respawn how to fix this?
//Top of script:
new bool:JustDied[MAX_PLAYERS] = false;
//OnPlayerDeath:
JustDied[playerid] = true;
//OnPlayerSpawn:
if(JustDied[playerid])
{
JustDied[playerid] = false;
//Set position to hospital interior
}