22.08.2012, 13:43
Podrнas hacer esto:
Para no aparecer donde logueo, en OnPlayerDeath debajo de GetPlayerPos deberнas usar SetSpawnInfo indicando las coordenadas que has obtenido con GetPlayerPos.
pawn Код:
new bool:Muerto[MAX_PLAYERS] = false;
new Float:LastP[MAX_PLAYERS][3];
public OnPlayerSpawn(playerid)
{
if(Muerto[playerid] == true)
SetPlayerPos(playerid, LastP[playerid][0], LastP[playerid][1], LastP[playerid][2]), Muerto[playerid] = false;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
Muerto[playerid] = true;
GetPlayerPos(playerid, LastP[playerid][0], LastP[playerid][1], LastP[playerid][2]);
return 1;
}

