18.10.2014, 16:15
You can use this to spawn players somewhere after death. However, you need to make sure ForceClassSelection() isn't being called in either callback.
pawn Код:
new Dead[MAX_PLAYERS];
public OnPlayerDeath(playerid)
{
Dead[playerid] = 1;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(Dead[playerid] == 1)
{
SetPlayerPos(playerid, x, y, z);
Dead[playerid] = 0;
}
return 1;
}