Find more than one nearby vehicle?
#6

Just use a loop with IsPlayerInRangeOfPoint
pawn Код:
new
    v,
    Float: X,
    Float: Y,
    Float: Z
;
while(++v < MAX_VEHICLES) {
    if(GetVehiclePos(v, X, Y, Z) && IsPlayerInRangeOfPoint(playerid, 30.0, X, Y, Z)) {
        // your code
    }
}
That would return all vehicles in 30.0 radius of the player
Reply


Messages In This Thread
Find more than one nearby vehicle? - by austin070 - 31.08.2014, 19:30
Re: Find more than one nearby vehicle? - by jakejohnsonusa - 31.08.2014, 19:54
Re: Find more than one nearby vehicle? - by austin070 - 31.08.2014, 19:54
Re: Find more than one nearby vehicle? - by jakejohnsonusa - 31.08.2014, 20:02
Re: Find more than one nearby vehicle? - by austin070 - 31.08.2014, 21:11
AW: Find more than one nearby vehicle? - by Nero_3D - 31.08.2014, 21:15

Forum Jump:


Users browsing this thread: 2 Guest(s)