how can i tell if a player is infront of a vehicles front/Bonnet?
#2

pawn Код:
stock GetXYBehindOfVehicle(vehicleid, &Float:x, &Float:y, Float:distance)
{
    new
        Float:a;
    GetVehiclePos( vehicleid, x, y, a );
    GetVehicleZAngle( vehicleid, a );
    x += ( distance * floatsin( -a+180, degrees ));
    y += ( distance * floatcos( -a+180, degrees ));
}
Change that to make it go infront instead of behind.
Reply


Messages In This Thread
how can i tell if a player is infront of a vehicles front/Bonnet? - by The_Gangstas - 15.12.2010, 18:49
Re: how can i tell if a player is infront of a vehicles front/Bonnet? - by Retardedwolf - 15.12.2010, 18:52
Re: how can i tell if a player is infront of a vehicles front/Bonnet? - by The_Gangstas - 15.12.2010, 18:55

Forum Jump:


Users browsing this thread: 1 Guest(s)