26.08.2010, 14:15
Quote:
|
Save his position in OnPlayerDeath, e.g. in an global array for every player. In OnPlayerSpawn you can set the pos again then with the values you stored - maybe with another check, if he should only spawn there, if he is healed or so.
pawn Код:
|
pawn Код:
new IsPlayerDead[MAX_PLAYERS]; //On top of script
pawn Код:
OnplayerDeath(playerid, killerid, reason)
{
IsPlayerDead = 1;
return 1;
}
pawn Код:
OnPlayerSpawn(playerid)
{
if(IsPlayerDead[playerid] == 1)
{
//Do stuff here
}
return 1;
}


