Car Coords?
- 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: Car Coords? (
/showthread.php?tid=460211
)
Car Coords? -
CountryTrooper441
- 27.08.2013
How do i get the Coordinates of like the back of the car?
Re: Car Coords? -
Alexis1999
- 27.08.2013
https://sampwiki.blast.hk/wiki/Function:GetVehiclePos
Then you want to subtract the right coordinate and experiment a bit until you found the correct spot.
An example
pawn Код:
GetVehiclePos
(
vehicleid, X, Y, Z
)
;
if
(
IsPlayerInRangeOfPoint
(
playerid,
4.0
, X
-
2
, Y, Z
)
)
{
// Code
}