IsVehicleInFrontOfVehicle(veh1, veh2, range)
#3

I just guess, write it like this:

PHP код:
stock IsVehicleInFrontOfVehicle(veh1veh2Float:range)
{
    new 
Float:a,Float:x,Float:y,Float:z;
    
GetVehiclePos(veh1,x,y,z);
    
GetVehicleZAngle(veh1a);
    
+= (range floatsin(-adegrees));
    
+= (range floatcos(-adegrees));
    return (
GetVehicleDistanceFromPoint(veh2,x,y,z) <= 3.0) ? true false;

Greekz
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)