SA-MP Forums Archive
[Ajuda] Ver se player esta em meu veiculo! - 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] Ver se player esta em meu veiculo! (/showthread.php?tid=657912)



Ver se player esta em meu veiculo! - vitinhosamp - 17.08.2018

Gostaria de saber uma funзгo que visualiza e ve se o player esta no mesmo carro que eu, e pra uma profissao de taxista que estou programando!
THANKS, vou dar ++ rep!


Re: Ver se player esta em meu veiculo! - DelK - 17.08.2018

IsPlayerInVehicle


Re: Ver se player esta em meu veiculo! - humildadeforever - 17.08.2018

PHP код:
if(IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleID(playerid) == GetPlayerVehicleID(outrojogador)) 
https://sampwiki.blast.hk/wiki/GetPlayerVehicleID


Ou

PHP код:
new GetPlayerVehicleID(playerid);
if(
IsPlayerInVehicle(outrojogadorv))
{




Re: Ver se player esta em meu veiculo! - vitinhosamp - 17.08.2018

Sу mais uma pergunta, a foreach substituiu o
PHP код:
for(new pGetPlayerPoolSIze(); p++) 
ele substituiu ?


Re: Ver se player esta em meu veiculo! - JeffSantos2 - 17.08.2018

Quote:
Originally Posted by vitinhosamp
Посмотреть сообщение
Sу mais uma pergunta, a foreach substituiu o
PHP код:
for(new pGetPlayerPoolSIze(); p++) 
ele substituiu ?
Sim!!