Getting Help with Trashmaster Back Coordinate
#8

What error..? The angle needs to be the vehicle's angle. I forgot about that. Use this:

pawn Код:
new Float:x, Float:y, Float:z, Float:a;
GetVehiclePos(vehicleid, x, y, z);
[B]GetVehicleZAngle(vehicleid, a);
GetOffset(x, y, z, a, 0, -4.5, 0, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z))
{
    // They are at the back of the trashmaster
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)