Advertisement
Guest User

noobnoobnoobnooobnoobnoobnoobnoobnoob

a guest
Jan 16th, 2017
2,829
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.95 KB | None | 0 0
  1. #include "stdafx.h"
  2.  
  3. int testint = 0;
  4. float testfloat = 0;
  5. bool testbool = false;
  6. bool godmode = false;
  7. bool invisibility = false;
  8. bool superjump = false;
  9. bool noragdoll = false;
  10. bool neverwanted = false;
  11. bool rapidfire = false;
  12. bool invicar = false;
  13. bool infiniteammo = false;
  14. bool explode = false;
  15. bool waterloop = false;
  16. bool fireloop = false;
  17. bool freeze = false;
  18. bool explode2 = false;
  19.  
  20. #define playerVeh PED::GET_VEHICLE_PED_IS_USING(playerPed)
  21. int testarray[] = { 1, 3, 5, 10 };
  22. int testarraypointer = 0;
  23.  
  24. bool firstload = true;
  25. LPCWSTR menuStyleLocation = L".\\OriginBase\\MenuStyle.ini";
  26. Vector3 addVector(Vector3 vector, Vector3 vector2) {
  27. vector.x += vector2.x;
  28. vector.y += vector2.y;
  29. vector.z += vector2.z;
  30. vector._paddingx += vector2._paddingx;
  31. vector._paddingy += vector2._paddingy;
  32. vector._paddingz += vector2._paddingz;
  33. return vector;
  34. }
  35. double DegreeToRadian(double n) {
  36. return n * 0.017453292519943295;
  37. }
  38. Vector3 RotationToDirection(Vector3 rot) {
  39. double num = DegreeToRadian(rot.z);
  40. double num2 = DegreeToRadian(rot.x);
  41. double val = cos(num2);
  42. double num3 = abs(val);
  43. rot.x = (float)(-(float)sin(num) * num3);
  44. rot.y = (float)(cos(num) * num3);
  45. rot.z = (float)sin(num2);
  46. return rot;
  47.  
  48. }
  49. Vector3 multiplyVector(Vector3 vector, float inc) {
  50. vector.x *= inc;
  51. vector.y *= inc;
  52. vector.z *= inc;
  53. vector._paddingx *= inc;
  54. vector._paddingy *= inc;
  55. vector._paddingz *= inc;
  56. return vector;
  57. }
  58. void RequestingControl(Entity e)
  59. {
  60. NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(e);
  61. if (!NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(e))
  62. WAIT(0);
  63. NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(e);
  64. }
  65. void TPto(Vector3 Coords)
  66. {
  67. int Handle = PLAYER::PLAYER_PED_ID();
  68. if (PED::IS_PED_IN_ANY_VEHICLE(Handle, 0))
  69. {
  70. ENTITY::SET_ENTITY_COORDS(PED::GET_VEHICLE_PED_IS_IN(Handle, false), Coords.x, Coords.y, Coords.z, 0, 0, 0, 1);
  71. }
  72. else
  73. ENTITY::SET_ENTITY_COORDS(Handle, Coords.x, Coords.y, Coords.z, 0, 0, 0, 1);
  74. }
  75. bool isHospitalSpawned = false;
  76. void toggleIPL(char* IPLName, char* MessageEnabled, char* MessageDisabled, bool show = false)
  77. {
  78. if (STREAMING::IS_IPL_ACTIVE(IPLName))
  79. {
  80. STREAMING::REMOVE_IPL(IPLName);
  81. if (show)
  82. notifyAboveMap(MessageDisabled);
  83. }
  84. else
  85. {
  86. STREAMING::REQUEST_IPL(IPLName);
  87. if (show)
  88. notifyAboveMap(MessageEnabled);
  89. }
  90. }
  91. void OriginMenu() {
  92.  
  93. if (freeze == true) {
  94. Player selectedplayer = PLAYER::GET_PLAYER_PED(selectedplayer);
  95. RequestingControl(selectedplayer);
  96. AI::CLEAR_PED_TASKS_IMMEDIATELY(PLAYER::GET_PLAYER_PED(selectedplayer));
  97. }
  98. if (fireloop == true) {
  99. Player selectedplayer = PLAYER::GET_PLAYER_PED(selectedplayer);
  100. Vector3 Pos = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedplayer), true);
  101. FIRE::ADD_OWNED_EXPLOSION(PLAYER::PLAYER_PED_ID(), Pos.x, Pos.y, Pos.z, 12, 5, true, 0, 0);
  102. }
  103. if (waterloop == true) {
  104. Player selectedplayer = PLAYER::GET_PLAYER_PED(selectedplayer);
  105. Vector3 Pos = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedplayer), true);
  106. FIRE::ADD_OWNED_EXPLOSION(PLAYER::PLAYER_PED_ID(), Pos.x, Pos.y, Pos.z, 13, 5, true, 0, 0);
  107. }
  108. if (godmode == true) {
  109. PLAYER::SET_PLAYER_INVINCIBLE(PLAYER::PLAYER_ID(), true);
  110. }
  111. if (invicar = true) {
  112. int VehID = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), 0);
  113. ENTITY::SET_ENTITY_INVINCIBLE(VehID, true);
  114. }
  115. if (infiniteammo == true) {
  116. Ped selectedPlayer = PLAYER::PLAYER_PED_ID();
  117. WEAPON::SET_PED_INFINITE_AMMO_CLIP(selectedPlayer, true);
  118. }
  119. if (rapidfire == true) {
  120. Player playerPed = PLAYER::PLAYER_PED_ID();
  121. if (rapidfire == true && !PED::IS_PED_IN_ANY_VEHICLE(playerPed, 1)) {
  122. PLAYER::DISABLE_PLAYER_FIRING(playerPed, 1);
  123. Vector3 gameplayCam = CAM::_GET_GAMEPLAY_CAM_COORDS();
  124. Vector3 gameplayCamRot = CAM::GET_GAMEPLAY_CAM_ROT(0);
  125. Vector3 gameplayCamDirection = RotationToDirection(gameplayCamRot);
  126. Vector3 startCoords = addVector(gameplayCam, (multiplyVector(gameplayCamDirection, 1.0f)));
  127. Vector3 endCoords = addVector(startCoords, multiplyVector(gameplayCamDirection, 500.0f));
  128. Hash weaponhash;
  129. WEAPON::GET_CURRENT_PED_WEAPON(playerPed, &weaponhash, 1);
  130. if (CONTROLS::IS_CONTROL_PRESSED(2, 208) || (GetKeyState(VK_LBUTTON) & 0x8000)) {
  131. GAMEPLAY::SHOOT_SINGLE_BULLET_BETWEEN_COORDS(startCoords.x, startCoords.y, startCoords.z, endCoords.x, endCoords.y, endCoords.z, 50, 1, weaponhash, playerPed, 1, 1, 0xbf800000);
  132. }
  133. }
  134. }
  135. if (invisibility == true) {
  136. ENTITY::SET_ENTITY_VISIBLE(PLAYER::PLAYER_PED_ID(), false, false);
  137. }
  138. else
  139. {
  140. ENTITY::SET_ENTITY_VISIBLE(PLAYER::PLAYER_PED_ID(), true, true);
  141. }
  142. if (noragdoll == true) {
  143. if (noragdoll)
  144. Ped PLAYER_PED_ID = PLAYER::PLAYER_PED_ID();
  145. Player PLAYER_ID = PLAYER::PLAYER_ID();
  146. PED::SET_PED_CAN_RAGDOLL(PLAYER::PLAYER_PED_ID(), false);
  147. PED::SET_PED_CAN_RAGDOLL_FROM_PLAYER_IMPACT(PLAYER::PLAYER_PED_ID(), false);
  148. PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(PLAYER::PLAYER_PED_ID(), false);
  149. PLAYER::GIVE_PLAYER_RAGDOLL_CONTROL(PLAYER::PLAYER_ID(), true);
  150. PED::SET_PED_RAGDOLL_ON_COLLISION(PLAYER::PLAYER_PED_ID(), false);
  151. }
  152. else
  153. {
  154. Ped PLAYER_PED_ID = PLAYER::PLAYER_PED_ID();
  155. Player PLAYER_ID = PLAYER::PLAYER_ID();
  156. PED::SET_PED_CAN_RAGDOLL(PLAYER::PLAYER_PED_ID(), true);
  157. PED::SET_PED_CAN_RAGDOLL_FROM_PLAYER_IMPACT(PLAYER::PLAYER_PED_ID(), true);
  158. PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(PLAYER::PLAYER_PED_ID(), true);
  159. PLAYER::GIVE_PLAYER_RAGDOLL_CONTROL(PLAYER::PLAYER_ID(), false);
  160. PED::SET_PED_RAGDOLL_ON_COLLISION(PLAYER::PLAYER_PED_ID(), true);
  161. }
  162. if (explode == true) {
  163. GAMEPLAY::SET_EXPLOSIVE_AMMO_THIS_FRAME(PLAYER::PLAYER_ID());
  164. }
  165. if (neverwanted == true) {
  166. if (neverwanted)
  167. {
  168. PLAYER::CLEAR_PLAYER_WANTED_LEVEL(PLAYER::PLAYER_ID());
  169. PLAYER::SET_MAX_WANTED_LEVEL(0);//
  170. }
  171. else
  172. {
  173. PLAYER::SET_MAX_WANTED_LEVEL(5);
  174. }
  175. }
  176. if (explode2 == true) {
  177. GAMEPLAY::SET_EXPLOSIVE_MELEE_THIS_FRAME(PLAYER::PLAYER_ID());
  178. }
  179. if (superjump == true) {
  180. GAMEPLAY::SET_SUPER_JUMP_THIS_FRAME(PLAYER::PLAYER_PED_ID());
  181. GAMEPLAY::SET_SUPER_JUMP_THIS_FRAME(PLAYER::PLAYER_ID());
  182. }
  183. else
  184. {
  185. AI::CLEAR_PED_TASKS_IMMEDIATELY(PLAYER::PLAYER_PED_ID());
  186. }
  187.  
  188. if (firstload) {
  189. Menu::LoadMenuTheme(menuStyleLocation);
  190.  
  191. firstload = false;
  192. }
  193.  
  194. Menu::checkKeys();
  195.  
  196. // Has to look for mainmenu otherwise the code fails due to me setting menu to mainmenu on Keypress
  197. if (Menu::currentMenu("mainmenu")) {
  198. Menu::Title("PANZER 2.0");
  199.  
  200. Menu::MenuOption("SELF OPTIONS", "selfoptions");
  201.  
  202. Menu::MenuOption("ONLINE PLAYERS", "playerlist");
  203.  
  204. Menu::MenuOption("ALL PLAYERS", "allplayers");
  205.  
  206. Menu::MenuOption("VEHICLE OPTIONS", "vehicleoptions");
  207.  
  208. Menu::MenuOption("WEAPON OPTIONS", "weaponoptions");
  209.  
  210. Menu::MenuOption("TELEPORTS", "teleports");
  211.  
  212. Menu::MenuOption("IPL LOADER", "iplloader");
  213.  
  214. Menu::MenuOption("SETTINGS", "settings");
  215.  
  216. Menu::MenuOption("CREDITS", "credits");
  217.  
  218. Menu::IntOption("Test Int", &testint, 0, 10);
  219. Menu::IntOption("Test Int Custom Step", &testint, 0, 10, 5);
  220.  
  221. Menu::FloatOption("Test Float", &testfloat, 0, 10);
  222. Menu::FloatOption("Test Float Custom Step", &testfloat, 0, 10, 0.2f);
  223. Menu::IntArray("Test Int Array", testarray, &testarraypointer);
  224.  
  225.  
  226. }
  227. if (Menu::currentMenu("credits")) {
  228. Menu::Title("CREDITS");
  229. }
  230. if (Menu::currentMenu("playerlist")) {
  231. Player selectedplayer = PLAYER::GET_PLAYER_PED(selectedplayer);
  232. Menu::Title("ONLINE PLAYERS");
  233. for (int i = 0; i < 30; i++)
  234. {
  235. if (ENTITY::DOES_ENTITY_EXIST(PLAYER::GET_PLAYER_PED(i)))
  236. {
  237. if (Menu::Option(PLAYER::GET_PLAYER_NAME(i)))
  238. {
  239. selectedplayer = i;
  240. Menu::changeMenu("onlineplayers");
  241. }
  242. }
  243. }
  244. }
  245. if (Menu::currentMenu("onlineplayers")) {
  246. Player selectedplayer = PLAYER::GET_PLAYER_PED(selectedplayer);
  247. Menu::Title(PLAYER::GET_PLAYER_NAME(selectedplayer));
  248. Player playerPed = PLAYER::PLAYER_PED_ID();
  249. if (Menu::Option("TELEPORT TO"))
  250. {
  251. if (ENTITY::DOES_ENTITY_EXIST(PLAYER::GET_PLAYER_PED(selectedplayer)))
  252. {
  253. Vector3 destPos = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedplayer), false);
  254. if (PED::IS_PED_IN_ANY_VEHICLE(playerPed, false))
  255. ENTITY::SET_ENTITY_COORDS(playerVeh, destPos.x, destPos.y, destPos.z, false, false, false, false);
  256. else
  257. ENTITY::SET_ENTITY_COORDS(playerPed, destPos.x, destPos.y, destPos.z, false, false, false, false);
  258. }
  259. }
  260. if (Menu::Option("KILL PLAYER"))
  261. {
  262. Player selectedplayer = PLAYER::GET_PLAYER_PED(selectedplayer);
  263. Vector3 Pos = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(selectedplayer), true);
  264. FIRE::ADD_EXPLOSION(Pos.x, Pos.y, Pos.z, 29, 9.0f, true, 0, 0);
  265. }
  266. if (Menu::Option("GIVE ALL WEAPONS"))
  267. {
  268. uint Weapons[] = { 0x99B507EA, 0x678B81B1, 0x4E875F73, 0x958A4A8F, 0x440E4788, 0x84BD7BFD, 0x1B06D571, 0x5EF9FEC4, 0x22D8FE39, 0x99AEEB3B, 0x13532244, 0x2BE6766B, 0xEFE7E2DF, 0xBFEFFF6D, 0x83BF0278, 0xAF113F99, 0x9D07F764, 0x7FD62962, 0x1D073A89, 0x7846A318, 0xE284C527, 0x9D61E50F, 0x3656C8C1, 0x05FC3C11, 0x0C472FE2, 0x33058E22, 0xA284510B, 0x4DD2DC56, 0xB1CA77B1, 0x687652CE, 0x42BF8A85, 0x93E220BD, 0x2C3731D9, 0xFDBC8A50, 0x24B17070, 0x060EC506, 0x34A67B97, 0xFDBADCED, 0x23C9F95C, 0x497FACC3, 0xF9E6AA4B, 0x61012683, 0xC0A3098D, 0xD205520E, 0xBFD21232, 0x7F229F94, 0x92A27487, 0x083839C4, 0x7F7497E5, 0xA89CB99E, 0x3AABBBAA, 0xC734385A, 0x787F0BB, 0x47757124, 0xD04C944D };
  269. for (int i = 0; i < (sizeof(Weapons) / 4); i++)
  270. {
  271. WEAPON::GIVE_DELAYED_WEAPON_TO_PED(PLAYER::GET_PLAYER_PED(selectedplayer), Weapons[i], 9999, 1);
  272. WAIT(10);
  273. }
  274. }
  275. if (Menu::Option("REMOVE ALL WEAPONS"))
  276. {
  277. WEAPON::REMOVE_ALL_PED_WEAPONS(PLAYER::GET_PLAYER_PED(selectedplayer), true);
  278. }
  279. if (Menu::BoolOption("FREEZE PLAYER", &freeze));
  280. if (Menu::BoolOption("WATER LOOP", &waterloop));
  281. if (Menu::BoolOption("FIRE LOOP", &fireloop));
  282. if (Menu::Option("SPAWN BODYGUARD")) {
  283. Player selectedplayer = PLAYER::GET_PLAYER_PED(selectedplayer);
  284. if (!ENTITY::DOES_ENTITY_EXIST(selectedplayer)) return;
  285. Hash railgun = GAMEPLAY::GET_HASH_KEY("WEAPON_RAILGUN");
  286. Vector3 pos = ENTITY::GET_ENTITY_COORDS(selectedplayer, 1);
  287. Hash pedm = GAMEPLAY::GET_HASH_KEY("a_f_y_beach_01");
  288. STREAMING::REQUEST_MODEL(pedm);
  289. while (!STREAMING::HAS_MODEL_LOADED(pedm))
  290. WAIT(0);
  291. int my_group = PLAYER::GET_PLAYER_GROUP(selectedplayer);
  292. int clone = PED::CREATE_PED(26, pedm, pos.x + rand() % 1, pos.y + rand() % 1, pos.z + 1, 0, 1, 1);
  293. PED::SET_PED_AS_GROUP_LEADER(selectedplayer, my_group);
  294. PED::SET_PED_AS_GROUP_MEMBER(clone, my_group);
  295. PED::SET_PED_NEVER_LEAVES_GROUP(clone, my_group);
  296. ENTITY::SET_ENTITY_INVINCIBLE(clone, false);
  297. PED::SET_PED_COMBAT_ABILITY(clone, 100);
  298. WEAPON::GIVE_WEAPON_TO_PED(clone, railgun, railgun, 9999, 9999);
  299. PED::SET_PED_CAN_SWITCH_WEAPON(clone, true);
  300. PED::SET_GROUP_FORMATION(my_group, 3);
  301. PED::SET_PED_MAX_HEALTH(clone, 5000);
  302. }
  303. if (Menu::currentMenu("allplayers")) {
  304. Menu::Title("ALL PLAYERS");
  305. if (Menu::Option("KILL ALL")) notifyAboveMap("NOT AVAILABLE AT THE MOMENT");
  306. if (Menu::Option("CRASH ALL")) {
  307. { // CRASH ALL NIGGERS! - Pandz 2k16
  308. for (int i = 0; i < 32; i++)
  309. {
  310. Player playerHandle = PLAYER::GET_PLAYER_PED(i);
  311. Hash crashall = GAMEPLAY::GET_HASH_KEY("prop_log_aa");
  312. STREAMING::REQUEST_MODEL(crashall);
  313. while (!STREAMING::HAS_MODEL_LOADED(crashall)) WAIT(0);
  314. notifyAboveMap("~r~PANZER: ~b~CRASHING ALL...");
  315. if (ENTITY::DOES_ENTITY_EXIST(playerHandle))
  316. {
  317. if (!strcmp(PLAYER::GET_PLAYER_NAME(PLAYER::INT_TO_PLAYERINDEX(i)), "dubgamer77")) continue;
  318. {
  319. if (!strcmp(PLAYER::GET_PLAYER_NAME(PLAYER::INT_TO_PLAYERINDEX(i)), "wokka1990")) continue;
  320. {
  321. if (!strcmp(PLAYER::GET_PLAYER_NAME(PLAYER::INT_TO_PLAYERINDEX(i)), "THC2803")) continue;
  322. {
  323. if (!strcmp(PLAYER::GET_PLAYER_NAME(PLAYER::INT_TO_PLAYERINDEX(i)), "FirahGames")) continue;
  324. {
  325. if (!strcmp(PLAYER::GET_PLAYER_NAME(PLAYER::INT_TO_PLAYERINDEX(i)), "Maloy4_20")) continue;
  326. {
  327. if (!strcmp(PLAYER::GET_PLAYER_NAME(PLAYER::INT_TO_PLAYERINDEX(i)), "dcain1993")) continue;
  328. {
  329. if (!strcmp(PLAYER::GET_PLAYER_NAME(PLAYER::INT_TO_PLAYERINDEX(i)), "InNOutKing")) continue;
  330. {
  331. if (PLAYER::GET_PLAYER_PED(i) == PLAYER::PLAYER_PED_ID()) continue;
  332. {
  333. Vector3 Coords;
  334. Coords.x = 496.75f; Coords.y = 5591.17f; Coords.z = 795.03f;
  335. TPto(Coords);
  336. Object crashall2 = OBJECT::CREATE_OBJECT(crashall, 0, 0, 0, true, true, false);
  337. ENTITY::ATTACH_ENTITY_TO_ENTITY(crashall2, playerHandle, PED::GET_PED_BONE_INDEX(playerHandle, SKEL_Spine_Root), 0.0, 0.0, 0.0, 0.0, 90.0, 0, false, false, false, false, 2, true);
  338. }
  339. STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(crashall);
  340. }
  341.  
  342. }
  343. }
  344. }
  345. }
  346. }
  347. }
  348. }
  349. }
  350. }
  351. }
  352. }
  353. if (Menu::currentMenu("selfoptions")) {
  354. Menu::Title("SELF OPTIONS");
  355. if (Menu::BoolOption("GODMODE", &godmode))
  356. if (Menu::BoolOption("INVISIBILITY", &invisibility));
  357. if (Menu::BoolOption("SUPER JUMP", &superjump));
  358. if (Menu::BoolOption("NO RAGDOLL", &noragdoll));
  359. if (Menu::BoolOption("NEVER WANTED", &neverwanted));
  360. }
  361. if (Menu::currentMenu("weaponoptions")) {
  362. Menu::Title("WEAPON OPTIONS");
  363. if (Menu::BoolOption("RAPID FIRE", &rapidfire));
  364. if (Menu::BoolOption("EXPLOSIVE AMMO", &explode));
  365. if (Menu::BoolOption("INFINITE AMMO", &infiniteammo));
  366. if (Menu::BoolOption("EXPLOSIVE MELEE", &explode2));
  367. }
  368. if (Menu::currentMenu("settings")) {
  369. Menu::Title("SETTINGS MENU");
  370.  
  371. Menu::MenuOption("THEMES", "settings_theme");
  372. }
  373. if (Menu::currentMenu("settings_theme")) {
  374. Menu::Title("THEME");
  375.  
  376. Menu::MenuOption("TITLE TEXT", "settings_theme_titletext");
  377. Menu::MenuOption("TITLE RECT", "settings_theme_titlerect");
  378. Menu::MenuOption("SCROLLER", "settings_theme_scroller");
  379. Menu::MenuOption("OPTIONS TEXT", "settings_theme_options");
  380. Menu::MenuOption("OPTIONS RECT", "settings_theme_optionsrect");
  381. if (Menu::Option("SAVE THEME")) Menu::SaveMenuTheme(menuStyleLocation);
  382. if (Menu::Option("LOAD THEME")) Menu::LoadMenuTheme(menuStyleLocation);
  383. if (Menu::Option("DEFAULT THEME")) {
  384. titleText = { 255, 0, 255, 255 };
  385. titleRect = { 0, 0, 0, 80 };
  386. scroller = { 0, 0, 0, 80 };
  387. options = { 255, 0, 255, 255 };
  388. optionsrect = { 0, 0, 0, 80 };
  389. }
  390. }
  391. if (Menu::currentMenu("settings_theme_titletext")) {
  392. Menu::Title("Title Text");
  393.  
  394. Menu::IntOption("Red: ", &titleText.r, 0, 255);
  395. Menu::IntOption("Green: ", &titleText.g, 0, 255);
  396. Menu::IntOption("Blue: ", &titleText.b, 0, 255);
  397. Menu::IntOption("Alpha: ", &titleText.a, 0, 255);
  398. }
  399. if (Menu::currentMenu("settings_theme_titlerect")) {
  400. Menu::Title("Title Rect");
  401.  
  402. Menu::IntOption("Red: ", &titleRect.r, 0, 255);
  403. Menu::IntOption("Green: ", &titleRect.g, 0, 255);
  404. Menu::IntOption("Blue: ", &titleRect.b, 0, 255);
  405. Menu::IntOption("Alpha: ", &titleRect.a, 0, 255);
  406. }
  407. if (Menu::currentMenu("settings_theme_scroller")) {
  408. Menu::Title("Scroller");
  409.  
  410. Menu::IntOption("Red: ", &scroller.r, 0, 255);
  411. Menu::IntOption("Green: ", &scroller.g, 0, 255);
  412. Menu::IntOption("Blue: ", &scroller.b, 0, 255);
  413. Menu::IntOption("Alpha: ", &scroller.a, 0, 255);
  414. }
  415. if (Menu::currentMenu("settings_theme_options")) {
  416. Menu::Title("Options Text");
  417.  
  418. Menu::IntOption("Red: ", &options.r, 0, 255);
  419. Menu::IntOption("Green: ", &options.g, 0, 255);
  420. Menu::IntOption("Blue: ", &options.b, 0, 255);
  421. Menu::IntOption("Alpha: ", &options.a, 0, 255);
  422. }
  423. if (Menu::currentMenu("settings_theme_optionsrect")) {
  424. Menu::Title("Options Rect");
  425.  
  426. Menu::IntOption("Red: ", &optionsrect.r, 0, 255);
  427. Menu::IntOption("Green: ", &optionsrect.g, 0, 255);
  428. Menu::IntOption("Blue: ", &optionsrect.b, 0, 255);
  429. Menu::IntOption("Alpha: ", &optionsrect.a, 0, 255);
  430. }
  431. if (Menu::currentMenu("teleports")) {
  432. Menu::Title("TELEPORTS");
  433. Menu::TeleportOption("MAZE BANK ROOF", -74.94243, -818.63446, 326.274347);
  434. Menu::TeleportOption("MOUNT CHILIAD TOP", 496.75, 5591.17, 795.03);
  435. Menu::TeleportOption("MILITARY BASE", -2012.8470, 2956.5270, 32.810);
  436. Menu::TeleportOption("LOS SANTOS CUSTOMS", -373.01, -124.91, 38.31);
  437. Menu::TeleportOption("MASH SHOP", -1338.16, -1278.11, 4.87);
  438. }
  439. if (Menu::currentMenu("iplloader")) {
  440. Menu::Title("IPL LOADER");
  441. if (Menu::Option("CARGOSHIP"))
  442. {
  443. char* IPLName = "cargoship";
  444. if (STREAMING::IS_IPL_ACTIVE(IPLName))
  445. {
  446. STREAMING::REMOVE_IPL(IPLName);
  447. notifyAboveMap("~r~CARGOSHIP DE-SPAWNED");
  448. }
  449. else
  450. {
  451. STREAMING::REQUEST_IPL(IPLName);
  452. notifyAboveMap("~g~CARGOSHIP SPAWNED");
  453. Vector3 Coords;
  454. Coords.x = -162.8918f; Coords.y = -2365.769f; Coords.z = 9.3192f;
  455. TPto(Coords);
  456. }
  457. }
  458. if (Menu::Option("NORTH YANKTON"))
  459. {
  460. toggleIPL("prologue01", "", "");
  461. toggleIPL("Prologue01c", "", "");
  462. toggleIPL("Prologue01d", "", "");
  463. toggleIPL("Prologue01e", "", "");
  464. toggleIPL("Prologue01f", "", "");
  465. toggleIPL("Prologue01g", "", "");
  466. toggleIPL("prologue01h", "", "");
  467. toggleIPL("prologue01i", "", "");
  468. toggleIPL("prologue01j", "", "");
  469. toggleIPL("prologue01k", "", "");
  470. toggleIPL("prologue01z", "", "");
  471. toggleIPL("prologue02", "", "");
  472. toggleIPL("prologue03", "", "");
  473. toggleIPL("prologue03b", "", "");
  474. toggleIPL("prologue03_grv_cov", "", "");
  475. toggleIPL("prologue03_grv_dug", "", "");
  476. toggleIPL("prologue03_grv_fun", "", "");
  477. toggleIPL("prologue04", "", "");
  478. toggleIPL("prologue04b", "", "");
  479. toggleIPL("prologue04_cover", "", "");
  480. toggleIPL("prologue05", "", "");
  481. toggleIPL("prologue05b", "", "");
  482. toggleIPL("prologue06", "", "");
  483. toggleIPL("prologue06b", "", "");
  484. toggleIPL("prologue06_int", "", "");
  485. toggleIPL("prologuerd", "", "");
  486. toggleIPL("prologuerdb", "", "");
  487. toggleIPL("prologue_DistantLights", "", "");
  488. toggleIPL("prologue_grv_torch", "", "");
  489. toggleIPL("prologue_m2_door", "", "");
  490. toggleIPL("prologue_LODLights", "", "");
  491. toggleIPL("DES_ProTree_start", "", "");
  492. Vector3 Coords;
  493. Coords.x = 3595.39673f; Coords.y = -4893.727f; Coords.z = 115.838394f;
  494. TPto(Coords);
  495. toggleIPL("DES_ProTree_start_lod", "~r~NORTH YANKTON DE-SPAWNED", "~g~NORTH YANKTON SPAWNED", true);
  496. }
  497. if (Menu::Option("PORN YACHT ;)"))
  498. {
  499. toggleIPL("smboat", "~g~PORN YACHT SPAWNED ;)", "~r~PORN YACHT DE-SPAWNED :(", true);
  500. Vector3 Coords;
  501. Coords.x = -2045.8f; Coords.y = -1031.2f; Coords.z = 11.9f;
  502. TPto(Coords);
  503. }
  504. if (Menu::Option("AIRCRAFT CARRIER"))
  505. {
  506. if (STREAMING::IS_IPL_ACTIVE("hei_carrier"))
  507. {
  508. STREAMING::REMOVE_IPL("hei_carrier");
  509. STREAMING::REMOVE_IPL("hei_carrier_DistantLights");
  510. STREAMING::REMOVE_IPL("hei_Carrier_int1");
  511. STREAMING::REMOVE_IPL("hei_Carrier_int2");
  512. STREAMING::REMOVE_IPL("hei_Carrier_int3");
  513. STREAMING::REMOVE_IPL("hei_Carrier_int4");
  514. STREAMING::REMOVE_IPL("hei_Carrier_int5");
  515. STREAMING::REMOVE_IPL("hei_Carrier_int6");
  516. STREAMING::REMOVE_IPL("hei_carrier_LODLights");
  517. notifyAboveMap("~r~AIRCRAFT CARRIER DE-SPAWNED");
  518. }
  519. else
  520. {
  521. DLC2::_LOAD_MP_DLC_MAPS();
  522. STREAMING::REQUEST_IPL("hei_carrier");
  523. STREAMING::REQUEST_IPL("hei_carrier_DistantLights");
  524. STREAMING::REQUEST_IPL("hei_Carrier_int1");
  525. STREAMING::REQUEST_IPL("hei_Carrier_int2");
  526. STREAMING::REQUEST_IPL("hei_Carrier_int3");
  527. STREAMING::REQUEST_IPL("hei_Carrier_int4");
  528. STREAMING::REQUEST_IPL("hei_Carrier_int5");
  529. STREAMING::REQUEST_IPL("hei_Carrier_int6");
  530. STREAMING::REQUEST_IPL("hei_carrier_LODLights");
  531. Vector3 Coords;
  532. Coords.x = 3069.330f; Coords.y = -4632.4f; Coords.z = 15.043f;
  533. TPto(Coords);
  534. notifyAboveMap("~g~AIRCRAFT CARRIER SPAWNED");
  535. }
  536. }
  537. if (Menu::Option("SUNKEN CARGOSHIP"))
  538. {
  539. if (STREAMING::IS_IPL_ACTIVE("sunkcargoship"))
  540. {
  541. STREAMING::REMOVE_IPL("sunkcargoship");
  542. notifyAboveMap("~r~SUNKEN CARGOSHIP DE-SPAWNED");
  543. }
  544. else
  545. {
  546. STREAMING::REQUEST_IPL("sunkcargoship");
  547. Vector3 Coords;
  548. Coords.x = -162.8918f; Coords.y = -2365.769f; Coords.z = 0.0f;
  549. TPto(Coords);
  550. notifyAboveMap("~g~SUNKEN CARGOSHIP SPAWNED");
  551. }
  552. }
  553. if (Menu::Option("HOSPITAL"))
  554. {
  555. if (isHospitalSpawned)
  556. {
  557. STREAMING::REQUEST_IPL("RC12B_Default");
  558. STREAMING::REQUEST_IPL("RC12B_Fixed");
  559. notifyAboveMap("~r~HOSPITAL DE-SPAWNED");
  560. isHospitalSpawned = false;
  561. }
  562. else
  563. {
  564. STREAMING::REQUEST_IPL("RC12B_HospitalInterior");
  565. STREAMING::REQUEST_IPL("RC12B_Destroyed");
  566. Vector3 Coords;
  567. Coords.x = 356.8f; Coords.y = -590.1f; Coords.z = 43.3f;
  568. TPto(Coords);
  569. notifyAboveMap("~g~HOSPITAL SPAWNED");
  570. isHospitalSpawned = true;
  571. }
  572. }
  573. if (Menu::Option("O'NEIL FARM"))
  574. {
  575. if (STREAMING::IS_IPL_ACTIVE("farm"))
  576. {
  577. STREAMING::REMOVE_IPL("farm");
  578. STREAMING::REMOVE_IPL("farm_props");
  579. STREAMING::REMOVE_IPL("farmint");
  580. STREAMING::REMOVE_IPL("farmint_cap");
  581. STREAMING::REQUEST_IPL("farm_burnt");
  582. STREAMING::REQUEST_IPL("farm_burnt_props");
  583. notifyAboveMap("~g~O'NEIL FARM SPAWNED [BURNED DOWN]");
  584. }
  585. else
  586. {
  587. STREAMING::REMOVE_IPL("farm_burnt");
  588. STREAMING::REMOVE_IPL("farm_burnt_props");
  589. STREAMING::REQUEST_IPL("farm");
  590. STREAMING::REQUEST_IPL("farm_props");
  591. STREAMING::REQUEST_IPL("farmint");
  592. STREAMING::REQUEST_IPL("farmint_cap");
  593. Vector3 Coords;
  594. Coords.x = 2441.2f; Coords.y = 4968.5f; Coords.z = 51.7f;
  595. TPto(Coords);
  596. notifyAboveMap("~g~O'NEIL FARM SPAWNED");
  597. }
  598. }
  599. if (Menu::Option("LIFEINVADER OFFICE"))
  600. {
  601. char* IPLName = "facelobby";
  602. if (STREAMING::IS_IPL_ACTIVE(IPLName))
  603. {
  604. STREAMING::REMOVE_IPL(IPLName);
  605. STREAMING::REMOVE_IPL("facelobbyfake");
  606. notifyAboveMap("~r~LIFEINVADER LOBBY DE-SPAWNED");
  607. }
  608. else
  609. {
  610. STREAMING::REQUEST_IPL(IPLName);
  611. STREAMING::REQUEST_IPL("facelobbyfake");
  612. Vector3 Coords;
  613. Coords.x = -1047.9f; Coords.y = -233.0f; Coords.z = 39.0f;
  614. TPto(Coords);
  615. notifyAboveMap("~g~LIFEINVADER LOBBY SPAWNED");
  616. }
  617. }
  618. if (Menu::Option("JEWELRY SHOP"))
  619. {
  620. char* IPLName = "jewel2fake";
  621. if (STREAMING::IS_IPL_ACTIVE(IPLName))
  622. {
  623. STREAMING::REMOVE_IPL(IPLName);
  624. STREAMING::REMOVE_IPL("post_hiest_unload");
  625. STREAMING::REMOVE_IPL("bh1_16_refurb");
  626. notifyAboveMap("~r~JEWELRY SHOP DE-SPAWNED");
  627. }
  628. else
  629. {
  630. STREAMING::REQUEST_IPL(IPLName);
  631. STREAMING::REQUEST_IPL("post_hiest_unload");
  632. STREAMING::REQUEST_IPL("bh1_16_refurb");
  633. notifyAboveMap("~g~JEWELRY SHOP SPAWNED");
  634. Vector3 Coords;
  635. Coords.x = -630.4f; Coords.y = -236.7f; Coords.z = 40.0f;
  636. TPto(Coords);
  637. }
  638. }
  639. if (Menu::Option("MORGUE"))
  640. {
  641. char* IPLName = "Coroner_Int_on";
  642. if (STREAMING::IS_IPL_ACTIVE(IPLName))
  643. {
  644. STREAMING::REMOVE_IPL(IPLName);
  645. notifyAboveMap("~r~MORGUE DE-SPAWNED");
  646. }
  647. else
  648. {
  649. STREAMING::REQUEST_IPL(IPLName);
  650. notifyAboveMap("~g~MORGUE SPAWNED");
  651. Vector3 Coords;
  652. Coords.x = 244.9f; Coords.y = -1374.7f; Coords.z = 39.5f;
  653. TPto(Coords);
  654. }
  655. }
  656. }
  657. Menu::endMenu();
  658. }
  659. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement