16.10.2016, 12:18
PHP код:
stock IsVehicleRangeOfPoint(vehicleid,Float:range,Float:x,Float:y,Float:z)
{
if(vehicleid == INVALID_VEHICLE_ID) return 0;
new Float:DistantaCar = GetVehicleDistanceFromPoint(vehicleid, x, y, z);
if(DistantaCar <= range) return 1;
return 0;
}