Function
#5

maybe something like this:
(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;
}
Reply


Messages In This Thread
Function - by iJumbo - 09.04.2011, 10:42
Re: Function - by CrazyBlob - 09.04.2011, 10:46
Re: Function - by iJumbo - 09.04.2011, 10:51
Re: Function - by CrazyBlob - 09.04.2011, 10:57
Re: Function - by Sascha - 09.04.2011, 11:07
Re: Function - by iJumbo - 09.04.2011, 11:11

Forum Jump:


Users browsing this thread: 1 Guest(s)