How do i make a player spawn at hospital after death
#2

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)