Ayъdame.
#4

Quote:
Originally Posted by Johansitho
Посмотреть сообщение
Amigo, Lo que pasa es que cuando muero caigo en la coordenada 0,0,0 їComo harнa para que quedara en el punto donde morн y con el skin que tenнa?, no con el de CJ
Por default, cuando respawneas tienes el mismo skin, me imagino que no agregastes ningun clase, sino [https://sampwiki.blast.hk/wiki/AddPlayerClass]. O estas usando el parametro de skin id en SetPlayerSpawnInfo con 0 como valor.

Spawn en el mismo lugar:
pawn Код:
new Float:pLastPos[MAX_PLAYERS][4];

public OnPlayerSpawn(playerid)
{
    SetPlayerPos(playerid, pLastPos[playerid][0], pLastPos[playerid][1], pLastPos[playerid][2]);
    SetPlayerFacingAngle(playerid, pLastpos[playerid][3]);
    return 1;
}

public OnPlayerDeath(playerid)
{
    GetPlayerPos(playerid, pLastPos[playerid][0], pLastPos[playerid][1], pLastPos[playerid][2]);
    GetPlayerFacingAngle(playerid, pLastpos[playerid][3]);
    return 1;
}
Reply


Messages In This Thread
Ayъdame. - by Johansitho - 25.05.2015, 00:21
Re: Ayъdame. - by SickAttack - 25.05.2015, 00:26
Respuesta: Ayъdame. - by Johansitho - 25.05.2015, 00:37
Re: Respuesta: Ayъdame. - by SickAttack - 25.05.2015, 00:46
Respuesta: Ayъdame. - by Johansitho - 25.05.2015, 00:50

Forum Jump:


Users browsing this thread: 1 Guest(s)