SA-MP Forums Archive
Is player near a vehicle ID. - 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: Is player near a vehicle ID. (/showthread.php?tid=485044)



Is player near a vehicle ID. - Mey6155 - 02.01.2014

How can I say hello if the person is near a Vehicle with the ID 408.


Re: Is player near a vehicle ID. - xo - 02.01.2014

Maybe
pawn Код:
new Float:XXO, Float:YXO, Float:ZXO;
GetVehiclePos(408, XXO, YXO, ZXO);
if(IsPlayerInRangeOfPoint(playerid, 5.0, XXO, YXO, ZXO))
{
//do something
}