• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Server] How to check if you have a vehicle in position
#3
(2020-12-09, 08:33 PM)Radical Wrote: Hello

I think the problem is with the "IsVehicleFromRangePointEx" function.



Try this:

Code:
stock IsVehicleFromRangePointEx(Float:range, Float:x, Float:y, Float:z)

{

? ? foreach(new i: Vehicle)

? ? {

? ? ? ? if ( IsVehicleInRangeOfPoint(i, range, x, y, z) ) return 1;

? ? }

? ? return 0;

}





Thanks, it worked
  Reply


Messages In This Thread
RE: How to check if you have a vehicle in position - by Frajola - 2020-12-09, 09:24 PM

Forum Jump: