How To check if two players are in same vehicle? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How To check if two players are in same vehicle? (
/showthread.php?tid=643800)
How To check if two players are in same vehicle? -
Jeamie - 27.10.2017
How To check if two players are in same vehicle?
Can Anyone Tell me ? Please
Thank You!!
Re: How To check if two players are in same vehicle? -
ISmokezU - 27.10.2017
You posted in the wrong section - You can figure that out by using GetPlayerVehicleID(...);
Example
Код:
if(GetPlayerVehicleID(playerid) == GetPlayerVehicleID(target)) { }
Re: How To check if two players are in same vehicle? -
Jeamie - 28.10.2017
Thanks Mate!