SA-MP Forums Archive
[Ajuda] GetPlayerPos e SetPlayerPos - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] GetPlayerPos e SetPlayerPos (/showthread.php?tid=584838)



GetPlayerPos e SetPlayerPos - BartWhite - 08.08.2015

Eae galera, estou com um problema, quando dois players entram ao mesmo tempo em dois interiores diferentes cada um sai onde o outro entrou, por exemplo:

Player A entra no Banco
Player B entra no DP

o player A vai sair no DP e o B no Banco, como corrijo isso?

Aqui meu code:

Код:
if(pickupid == PrefLSEntrada)
{
     GetPlayerPos(playerid, x, y, z);
     SetPlayerInterior(playerid, 3);
     SetPlayerPos(playerid, 383.0315,173.7822,1008.3828); 						
}
    if(pickupid == PrefLSSaida)
{
     SetPlayerInterior(playerid, 0); 
     SetPlayerPos(playerid, x, y, z);											
}



Re: [Ajuda] GetPlayerPos e SetPlayerPos - Galhardo - 08.08.2015

Por que vocк simplesmente coloca a coordenada da saнda ao invйs de usar GetPlayerPos?


Re: GetPlayerPos e SetPlayerPos - BartWhite - 08.08.2015

Galhardo pois eu tenho mais de uma entrada paro o mesmo interior.