13.03.2015, 09:06
I just guess, write it like this:
Greekz
PHP код:
stock IsVehicleInFrontOfVehicle(veh1, veh2, Float:range)
{
new Float:a,Float:x,Float:y,Float:z;
GetVehiclePos(veh1,x,y,z);
GetVehicleZAngle(veh1, a);
x += (range * floatsin(-a, degrees));
y += (range * floatcos(-a, degrees));
return (GetVehicleDistanceFromPoint(veh2,x,y,z) <= 3.0) ? true : false;
}