19.12.2010, 07:48
Surely you could use IsPlayerInRangeOfPoint?
For example:
returns 1 if they are near enough the vehicle, 0 otherwise.
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;
}