Guest User

Untitled

a guest
May 23rd, 2019
81
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stock GetCoordBonnetVehicle(vehicleid, &Float:x, &Float:y, &Float:z)
  2. {
  3. new Float:angle,Float:distance;
  4. GetVehicleModelInfo(GetVehicleModel(vehicleid), 1, x, distance, z);
  5. distance = distance/2 + 0.1;
  6. GetVehiclePos(vehicleid, x, y, z);
  7. GetVehicleZAngle(vehicleid, angle);
  8. x -= (distance * floatsin(-angle+180, degrees));
  9. y -= (distance * floatcos(-angle+180, degrees));
  10. return 1;
  11. }
RAW Paste Data