03.12.2012, 22:14
Make a global variable
Then in under
put this:
Then lastly under
put this:
Cheers
pawn Код:
new playerDied[MAX_PLAYERS]
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
pawn Код:
playerDied[playerid] = 1;
pawn Код:
public OnPlayerSpawn(playerid)
pawn Код:
if(playerDied[playerid])
{
SetPlayerPos(playerid, hospitalX, hospitalY, hospitalZ); //replace with actual coordinates
}