Quote:
Originally Posted by funky1234
Surely you could use IsPlayerInRangeOfPoint?
For example:
pawn Код:
stock IsVehicleStreamedInForPlayer(playerid, vehicleid) { new Float:x, Float:y, Float:z; GetVehiclePos(vehicleid, x, y, z); if(IsPlayerInRangeOfPoint(playerid, 15.0, x, y, z) return 1; return 0; }
returns 1 if they are near enough the vehicle, 0 otherwise.
|
What's the distance when the cars get streamed?