14.05.2013, 08:42
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:
(Un-tested)
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
}

