Advertisement
Guest User

Untitled

a guest
May 24th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. int distance, distance2;
  2. Ped playerPed = PLAYER::PLAYER_PED_ID();
  3. Player player = PLAYER::PLAYER_ID();
  4. Vector3 position = ENTITY::GET_ENTITY_COORDS(playerPed, 1);
  5. distance = GAMEPLAY::GET_DISTANCE_BETWEEN_COORDS(position.x, position.y, position.z, -2010.901f, 2838.797f, 32.810f, 1);
  6. distance2 = GAMEPLAY::GET_DISTANCE_BETWEEN_COORDS(position.x, position.y, position.z, -1294.469f, -213.963f, 60.654f, 1);
  7. int Pickup = GAMEPLAY::GET_HASH_KEY("PICKUP_MONEY_CASE");
  8. int l_11A1 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), 1);
  9. int Plane = GAMEPLAY::GET_HASH_KEY("cargoplane");
  10. set_status_text("Go to the military base and steal the big cargo plain. Then wait for further instructions.");
  11. PLAYER::SET_MAX_WANTED_LEVEL(2);
  12. UI::SET_NEW_WAYPOINT(-2010.901, 2838.797);
  13. GRAPHICS::DRAW_MARKER(2, -2010.901f, 2838.797f, 32.810f, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.75f, 0.75f, 0.75f, 204, 204, 0, 100, false, true, 2, false, false, false, false);
  14. if (distance < 2)
  15. {
  16. set_status_text("GET TO THE DROPZONE!");
  17. UI::SET_NEW_WAYPOINT(-1294.469, -213.963);
  18. GRAPHICS::DRAW_MARKER(2, -1294.469f, -213.963f, 60.654f, 0.0f, 0.0f, 0.0f, 180.0f, 0.0f, 0.0f, 0.75f, 0.75f, 0.75f, 204, 204, 0, 100, false, true, 2, false, false, false, false);
  19. if (distance2 < 2)
  20. {
  21. PLAYER::CLEAR_PLAYER_WANTED_LEVEL(player);
  22. PED::SET_PED_MONEY(playerPed, 250000);
  23. }
  24. }
  25.  
  26. STREAMING::REQUEST_MODEL(Plane);
  27. while (STREAMING::HAS_MODEL_LOADED(Plane))
  28. {
  29. WAIT(0);
  30. }
  31. Vehicle PlaneNoEntry = VEHICLE::CREATE_VEHICLE(Plane, -2018.499f, 2865.134f, 32.905f, 180f, 1, 1);
  32. VEHICLE::SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS(l_11A1, 1);
  33.  
  34. STREAMING::REQUEST_MODEL(Plane);
  35. while (STREAMING::HAS_MODEL_LOADED(Plane))
  36. {
  37. WAIT(0);
  38. }
  39. OBJECT::CREATE_PICKUP(Pickup, -2010.901f, 2838.797f, 32.810f, 1, 1, 1, Pickup);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement