09.04.2011, 11:07
maybe something like this:
(no clue if it works, though)
(no clue if it works, though)
pawn Код:
stock IsVehicleInRangeOfPoint(vehicleid, Float:range, Float:x, Float:y, Float:z)
{
new Float:x, Float:y, Float:z;
GetVehiclePos(vehicleid, x, y, z);
if((x <= x + range && x >= x - range) && (y <= y + range && y >= y - range) && (z <= z + range && z >= z - range)) return 1;
return 0;
}