26.08.2010, 10:43
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 Код:
On the top with the other variables:
new Float:deathpos[MAX_PLAYERS][3];
In OnPlayerDeath:
GetPlayerPos(playerid, deathpos[playerid][0], deathpos[playerid][1], deathpos[playerid][2]);
in OnPlayerSpawn:
SetPlayerPos(playerid, deathpos[playerid][0], deathpos[playerid][1], deathpos[playerid][2]);