need suggestion - 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: need suggestion (
/showthread.php?tid=315636)
need suggestion -
titanak - 03.02.2012
Hello is this possible to get vehicles count in a player radius?
like 50m radius of player... ??
Re: need suggestion -
ғαιιοцт - 03.02.2012
Yes, you can use GetVehiclewithinDistance there
Edit: I just noticed that's not a standard function, sorry
You'l need to get the playerposition, loop trough all vehicles, get their distance and then count up a variable if the distance is less than 50m
Distance:
https://sampwiki.blast.hk/wiki/GetVehicleDistanceFromPoint
Re: need suggestion -
titanak - 03.02.2012
thanks . im trying now this version