Getting Help with Trashmaster Back Coordinate
#6

He wants to detect if you're at the BACK of the trashmaster - not anywhere around it!

Put this in 'offset.inc' and include it: http://pastebin.com/XmED67FC

The trashmaster's y offset for the back is -4.5:

pawn Код:
new Float:x, Float:y, Float:z;
GetVehiclePos(vehicleid, x, y, z);
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
}
(Un-tested)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)