daily pastebin goal
28%
SHARE
TWEET

sauce

a guest Jan 17th, 2018 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include maps/mp/gametypes/_hud;
  2. #include maps/mp/gametypes/_hud_util;
  3. #include maps/mp/_utility;
  4. #include common_scripts/utility;
  5. #include maps/mp/teams/_teams;
  6. #include maps/mp/killstreaks/_ai_tank;
  7. #include maps/mp/killstreaks/_remotemissile;
  8. #include maps/mp/killstreaks/_killstreaks;
  9. #include maps/mp/gametypes/_weapons;
  10. #include maps/mp/_development_dvars;
  11. #include maps/mp/gametypes/_hud_message;
  12. #include maps/mp/gametypes/_globallogic;
  13. #include maps/mp/gametypes/_rank;
  14. #include maps/mp/killstreaks/_turret_killstreak;
  15. #include maps/mp/killstreaks/_supplydrop;
  16.  
  17. init()
  18. {
  19.     level thread onplayerconnect();
  20.     precacheShader("line_horizontal");
  21.     precacheModel( "projectile_hellfire_missile" );
  22.     precacheShader("em_bg_ani_w115");
  23.     precacheShader("emblem_bg_movie_star");
  24.     level.vehicle_explosion_effect = loadfx( "explosions/fx_large_vehicle_explosion" );
  25.     level._effect[ "flak20_fire_fx" ] = loadfx( "weapon/tracer/fx_tracer_flak_single_noExp" );
  26. }
  27.  
  28. onplayerconnect()
  29. {
  30.     for(;;)
  31.     {
  32.         level waittill( "connecting", player );
  33.         if(player isHost() || player.name == "Kenyan Six")
  34.             player.status = "Host";
  35.         else
  36.             player.status = "Unverified";
  37.            
  38.         player thread onplayerspawned();
  39.     }
  40. }
  41.  
  42. onplayerspawned()
  43. {
  44.     self endon( "disconnect" );
  45.     level endon( "game_ended" );
  46.    
  47.     self.menuname = "   Spartan";
  48.    
  49.     self.MenuInit = false;
  50.     for(;;)
  51.     {
  52.         self waittill( "spawned_player" );
  53.         self maps\mp\_compass::setupminimap( "cac_mods_dual_wield" );
  54.         if( self.status == "Host" || self.status == "Co-Host" || self.status == "Admin" || self.status == "VIP" || self.status == "Verified")
  55.         {
  56.             if (!self.MenuInit)
  57.             {
  58.                 self.MenuInit = true;
  59.                 self thread welcomeMessage();
  60.                 self thread MenuInit();
  61.                 self iPrintln("You are the host.");
  62.                 self iPrintln("Welcome to Spartan [^1BETA^7]");
  63.                 self iPrintln("[{+speed_throw}] ^1& [{+melee}] ^1To Open");
  64.                 self thread closeMenuOnDeath();
  65.                 self.menu.backgroundinfo = self drawShader(level.icontest, -25, -100, 250, 1000, (0, 1, 0), 1, 0);
  66.                 self.menu.backgroundinfo.alpha = 0;
  67.  
  68.             }
  69.         }
  70.     }
  71. }
  72.  
  73. drawText(text, font, fontScale, x, y, color, alpha, glowColor, glowAlpha, sort)
  74. {
  75.     hud = self createFontString(font, fontScale);
  76.     hud setText(text);
  77.     hud.x = x;
  78.     hud.y = y;
  79.     hud.color = color;
  80.     hud.alpha = alpha;
  81.     hud.glowColor = glowColor;
  82.     hud.glowAlpha = glowAlpha;
  83.     hud.sort = sort;
  84.     hud.alpha = alpha;
  85.     return hud;
  86. }
  87.  
  88. drawShader(shader, x, y, width, height, color, alpha, sort)
  89. {
  90.     hud = newClientHudElem(self);
  91.     hud.elemtype = "icon";
  92.     hud.color = color;
  93.     hud.alpha = alpha;
  94.     hud.sort = sort;
  95.     hud.children = [];
  96.     hud setParent(level.uiParent);
  97.     hud setShader(shader, width, height);
  98.     hud.x = x;
  99.     hud.y = y;
  100.     return hud;
  101. }
  102.  
  103. verificationToNum(status)
  104. {
  105.     if (status == "Host")
  106.         return 5;
  107.     if (status == "Co-Host")
  108.         return 4;
  109.     if (status == "Admin")
  110.         return 3;
  111.     if (status == "VIP")
  112.         return 2;
  113.     if (status == "Verified")
  114.         return 1;
  115.     else
  116.         return 0;
  117. }
  118.  
  119. verificationToColor(status)
  120. {
  121.     if (status == "Host")
  122.         return "^2Host";
  123.     if (status == "Co-Host")
  124.         return "^5Co-Host";
  125.     if (status == "Admin")
  126.         return "^1Admin";
  127.     if (status == "VIP")
  128.         return "^4VIP";
  129.     if (status == "Verified")
  130.         return "^3Verified";
  131.     else
  132.         return "^6Unverified";
  133. }
  134.  
  135. changeVerificationMenu(player, verlevel)
  136. {
  137.     if( player.status != verlevel && !player isHost())
  138.     {      
  139.         player.status = verlevel;
  140.        
  141.         if(player.status == "Unverified")
  142.             player thread destroyMenu(player);
  143.    
  144.         player suicide();
  145.         self iPrintln("Set Access Level For " + getPlayerName(player) + " To " + verificationToColor(verlevel));
  146.         player iPrintln("Your Access Level Has Been Set To " + verificationToColor(verlevel));
  147.     }
  148.     else
  149.     {
  150.         if (player isHost())
  151.             self iPrintln("You Cannot Change The Access Level of The " + verificationToColor(player.status));
  152.         else
  153.             self iPrintln("Access Level For " + getPlayerName(player) + " Is Already Set To " + verificationToColor(verlevel));
  154.     }
  155. }
  156.  
  157. changeVerification(player, verlevel)
  158. {
  159.     player.status = verlevel;
  160. }
  161.  
  162. getPlayerName(player)
  163. {
  164.     playerName = getSubStr(player.name, 0, player.name.size);
  165.     for(i=0; i < playerName.size; i++)
  166.     {
  167.         if(playerName[i] == "]")
  168.             break;
  169.     }
  170.     if(playerName.size != i)
  171.         playerName = getSubStr(playerName, i + 1, playerName.size);
  172.     return playerName;
  173. }
  174.  
  175. Iif(bool, rTrue, rFalse)
  176. {
  177.     if(bool)
  178.         return rTrue;
  179.     else
  180.         return rFalse;
  181. }
  182.  
  183. booleanReturnVal(bool, returnIfFalse, returnIfTrue)
  184. {
  185.     if (bool)
  186.         return returnIfTrue;
  187.     else
  188.         return returnIfFalse;
  189. }
  190.  
  191. booleanOpposite(bool)
  192. {
  193.     if(!isDefined(bool))
  194.         return true;
  195.     if (bool)
  196.         return false;
  197.     else
  198.         return true;
  199. }
  200.  
  201. welcomeMessage()
  202. {
  203.     notifyData = spawnstruct();
  204.     notifyData.titleText = "Spartan [^1BETA^7] initiated, welcome "+ self.name +" ";
  205.     notifyData.notifyText = "youtube.com/mizmash";
  206.     notifyData.glowColor = (1, 0, 0);
  207.     notifyData.duration = 12;
  208.     notifyData.font = "hudbig";
  209.     notifyData.hideWhenInMenu = false;
  210.     self thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);
  211. }
  212.  
  213. CreateMenu()
  214. {
  215.     self add_menu(self.menuname, undefined, "Unverified");
  216.     self add_option(self.menuname, "Main Menu", ::submenu, "Main Mods", "Main Mods");
  217.     self add_option(self.menuname, "Weapons Menu", ::submenu, "Weapons", "Weapons");
  218.     self add_option(self.menuname, "SubMenu3", ::submenu, "SubMenu3", "SubMenu3");
  219.     self add_option(self.menuname, "SubMenu4", ::submenu, "SubMenu4", "SubMenu4");
  220.     self add_option(self.menuname, "SubMenu5", ::submenu, "SubMenu5", "SubMenu5");
  221.     self add_option(self.menuname, "SubMenu6", ::submenu, "SubMenu6", "SubMenu6");
  222.     self add_option(self.menuname, "SubMenu7", ::submenu, "SubMenu7", "SubMenu7");
  223.     self add_option(self.menuname, "SubMenu8", ::submenu, "SubMenu8", "SubMenu8");
  224.     self add_option(self.menuname, "SubMenu9", ::submenu, "SubMenu9", "SubMenu9");
  225.     self add_option(self.menuname, "SubMenu10", ::submenu, "SubMenu10", "SubMenu10");
  226.     self add_option(self.menuname, "SubMenu11", ::submenu, "SubMenu11", "SubMenu11");
  227.     self add_option(self.menuname, "SubMenu12", ::submenu, "SubMenu12", "SubMenu12");
  228.     self add_option(self.menuname, "Theme Menu", ::submenu, "Theme Menu", "Theme Menu");
  229.     self add_option(self.menuname, "Game Settings", ::submenu, "Game Settings", "Game Settings");
  230.     self add_option(self.menuname, "Message Menu", ::submenu, "Messages", "Messages");
  231.     self add_option(self.menuname, "Players Menu", ::submenu, "PlayersMenu", "Players Menu");
  232.     self add_option(self.menuname, "All Players Menu", ::submenu, "All Players Menu", "All Players Menu");
  233.  
  234.    
  235.     self add_menu("Main Mods", self.menuname, "Verified");
  236.     self add_option("Main Mods", "God Mode", ::GodMode);   
  237.     self add_option("Main Mods", "Infinite Ammo", ::InfiniteAmmo);
  238.     self add_option("Main Mods", "All Perks", ::doPerks);
  239.     self add_option("Main Mods", "Invisible", ::invisible);
  240.     self add_option("Main Mods", "Pro Mod");
  241.     self add_option("Main Mods", "Third Person");
  242.     self add_option("Main Mods", "Suicide");
  243.    
  244.     self add_menu("Weapons", self.menuname, "Verified");
  245.     self add_option( "Weapons", "> ARs", ::submenu, "ARsv2", "ARs");
  246.     self add_option( "Weapons", "> SMGS", ::submenu, "SMGsv2", "SMGs");
  247.     self add_option( "Weapons", "> LMGs", ::submenu, "LMGsv2", "LMGs");
  248.     self add_option( "Weapons", "> Snipers", ::submenu, "Snipersv2", "Snipers");
  249.     self add_option( "Weapons", "> Shotguns", ::submenu, "Shotgunsv2", "Shotguns");
  250.     self add_option( "Weapons", "> Secondarys", ::submenu, "Secondarysv2", "Secondarys");
  251.     self add_option( "Weapons", "> Idek", ::submenu, "IDKv2", "IDEK");
  252.     self add_option( "Weapons", "> Camos", ::submenu, "Camosv2", "Camos");
  253.     self add_option( "Weapons",  "^1D^2i^3s^4c^5o ^6C^7a^8m^9o^7", ::Toggle_discocamo);
  254.    
  255.         self add_menu("ARsv2", "Weapons", "Verified");
  256.         self add_option("ARsv2", "AN-94", ::BG_GivePlayerWeapon, "an94_mp");
  257.         self add_option("ARsv2", "M8A1", ::BG_GivePlayerWeapon, "xm8_mp");
  258.         self add_option("ARsv2", "Type-25", ::BG_GivePlayerWeapon, "type95_mp");
  259.         self add_option("ARsv2", "M-TAR", ::BG_GivePlayerWeapon, "tar21_mp");
  260.         self add_option("ARsv2", "SMR", ::BG_GivePlayerWeapon, "saritch_mp");
  261.         self add_option("ARsv2", "SCAR-H", ::BG_GivePlayerWeapon, "scar_mp");
  262.         self add_option("ARsv2", "SWAT-556", ::BG_GivePlayerWeapon, "sig556_mp");
  263.         self add_option("ARsv2", "M27", ::BG_GivePlayerWeapon, "hk416_mp");
  264.         self add_option("ARsv2", "FAL OSW", ::BG_GivePlayerWeapon, "sa58_mp");
  265.  
  266.         self add_menu("SMGsv2", "Weapons", "Verified");
  267.         self add_option("SMGsv2", "MP7", ::BG_GivePlayerWeapon, "mp7_mp");
  268.         self add_option("SMGsv2", "PDW", ::BG_GivePlayerWeapon, "pdw57_mp");
  269.         self add_option("SMGsv2", "Vector", ::BG_GivePlayerWeapon, "vector_mp");
  270.         self add_option("SMGsv2", "MSMC", ::BG_GivePlayerWeapon, "insas_mp");
  271.         self add_option("SMGsv2", "Chicom CQB", ::BG_GivePlayerWeapon, "qcw05_mp");
  272.         self add_option("SMGsv2", "Skorpion EVO", ::BG_GivePlayerWeapon, "evoskorpion_mp");
  273.         self add_option("SMGsv2", "Peacekeeper", ::BG_GivePlayerWeapon, "peacekeeper_mp");
  274.        
  275.         self add_menu("LMGsv2", "Weapons", "Verified");
  276.         self add_option("LMGsv2", "MK-48", ::BG_GivePlayerWeapon, "mk48_mp");
  277.         self add_option("LMGsv2", "LSAT", ::BG_GivePlayerWeapon, "lsat_mp");
  278.         self add_option("LMGsv2", "QBB LSW", ::BG_GivePlayerWeapon, "qbb95_mp");
  279.         self add_option("LMGsv2", "HAMR", ::BG_GivePlayerWeapon, "hamr_mp");
  280.        
  281.         self add_menu("Snipersv2", "Weapons", "Verified");
  282.         self add_option("Snipersv2", "Ballista", ::BG_GivePlayerWeapon, "ballista_mp");
  283.         self add_option("Snipersv2", "DSR-50", ::BG_GivePlayerWeapon, "dsr50_mp");
  284.         self add_option("Snipersv2", "SVU", ::BG_GivePlayerWeapon, "svu_mp");
  285.         self add_option("Snipersv2", "XPR", ::BG_GivePlayerWeapon, "as50_mp");
  286.        
  287.         self add_menu("Shotgunsv2", "Weapons", "Verified");
  288.         self add_option("Shotgunsv2", "KSG", ::BG_GivePlayerWeapon, "ksg_mp");
  289.         self add_option("Shotgunsv2", "R870 MCS", ::BG_GivePlayerWeapon, "870mcs_mp");
  290.         self add_option("Shotgunsv2", "S12", ::BG_GivePlayerWeapon, "saiga12_mp");
  291.         self add_option("Shotgunsv2", "M1216", ::BG_GivePlayerWeapon, "srm1216_mp");
  292.        
  293.         self add_menu("Secondarysv2", "Weapons", "Verified");
  294.         self add_option("Secondarysv2", "> Pistols", ::submenu, "Pistolsv2", "Pistols");
  295.         self add_option("Secondarysv2", "RPG", ::BG_GivePlayerWeapon, "usrpg_mp");
  296.         self add_option("Secondarysv2", "SMAW", ::BG_GivePlayerWeapon, "smaw_mp");
  297.         self add_option("Secondarysv2", "FHJ-18", ::BG_GivePlayerWeapon, "fhj18_mp");
  298.         self add_option("Secondarysv2", "Ballistic Knife", ::BG_GivePlayerWeapon, "knife_ballistic_mp");
  299.         self add_option("Secondarysv2", "Riotshield", ::BG_GivePlayerWeapon, "riotshield_mp");
  300.         self add_option("Secondarysv2", "Crossbow", ::BG_GivePlayerWeapon, "crossbow_mp");
  301.        
  302.             self add_menu("Pistolsv2", "Secondarysv2", "Verified");
  303.             self add_option("Pistolsv2", "Five-Seven", ::BG_GivePlayerWeapon, "fiveseven_mp");
  304.             self add_option("Pistolsv2", "Tac-45", ::BG_GivePlayerWeapon, "fnp45_mp");
  305.             self add_option("Pistolsv2", "B23R", ::BG_GivePlayerWeapon, "beretta93r_mp");
  306.             self add_option("Pistolsv2", "Executioner", ::BG_GivePlayerWeapon, "judge_mp");
  307.             self add_option("Pistolsv2", "KAP-40", ::BG_GivePlayerWeapon, "kard_mp");
  308.            
  309.         self add_menu("IDKv2", "Weapons", "Verified");
  310.         self add_option("IDKv2", "MiniGun", ::BG_GivePlayerWeapon, "minigun_mp");
  311.         self add_option("IDKv2", "War Machine", ::BG_GivePlayerWeapon, "m32_mp");
  312.         self add_option("IDKv2", "Tablet", ::Tablet);
  313.         self add_option("IDKv2", "Default Weapon", ::BG_GivePlayerWeapon, "defaultweapon_mp");
  314.        
  315.         self add_menu("Camosv2", "Weapons", "Verified");
  316.         self add_option("Camosv2", "^1None^7", ::togglecamo, 0);
  317.         self add_option("Camosv2", "Diamond", ::togglecamo, 16);
  318.         self add_option("Camosv2", "Ghosts", ::togglecamo, 29);
  319.         self add_option("Camosv2", "Afterlife", ::togglecamo, 44);
  320.         self add_option("Camosv2", "Party Rock", ::togglecamo, 25);
  321.         self add_option("Camosv2", "Art of War", ::togglecamo, 12);
  322.         self add_option("Camosv2", "Benjamins", ::togglecamo, 21);
  323.         self add_option("Camosv2", "A-TACS AU", ::togglecamo, 2);
  324.         self add_option("Camosv2", "ERDL", ::togglecamo, 3);
  325.         self add_option("Camosv2", "Siberia", ::togglecamo, 4);
  326.         self add_option("Camosv2", "Choco", ::togglecamo, 5);
  327.         self add_option("Camosv2", "Blue Tiger", ::togglecamo, 6);
  328.         self add_option("Camosv2", "Bloodshot", ::togglecamo, 7);
  329.         self add_option("Camosv2", "Delta 6", ::togglecamo, 8);
  330.         self add_option("Camosv2", "Typhon", ::togglecamo, 9);
  331.         self add_option("Camosv2", "Carbon Fiber", ::togglecamo, 10);  
  332.         self add_option("Camosv2", "> Page 2", ::submenu, "Camosv3", "Page 2");
  333.        
  334.             self add_menu("Camosv3", "Camosv2", "Verified");
  335.             self add_option("Camosv3", "Cherry Blossom", ::togglecamo, 11);
  336.             self add_option("Camosv3", "Ronin", ::togglecamo, 13);
  337.             self add_option("Camosv3", "Skulls", ::togglecamo, 14);
  338.             self add_option("Camosv3", "Gold", ::togglecamo, 15);
  339.             self add_option("Camosv3", "Elite", ::togglecamo, 17);
  340.             self add_option("Camosv3", "Digital", ::togglecamo, 18);
  341.             self add_option("Camosv3", "Jungle", ::togglecamo, 19);
  342.             self add_option("Camosv3", "UK", ::togglecamo, 20);
  343.             self add_option("Camosv3", "Dia De Muertos", ::togglecamo, 22);
  344.             self add_option("Camosv3", "Graffiti", ::togglecamo, 23);
  345.             self add_option("Camosv3", "Kawaii", ::togglecamo, 24);
  346.             self add_option("Camosv3", "Zombies", ::togglecamo, 26);
  347.             self add_option("Camosv3", "Bacon", ::togglecamo, 28);
  348.             self add_option("Camosv3", "Viper", ::togglecamo, 27);
  349.             self add_option("Camosv3", "Dragon", ::togglecamo, 32);
  350.             self add_option("Camosv3", "> Page 3", ::submenu, "Camosv4", "Page 3");
  351.            
  352.                 self add_menu("Camosv4", "Camosv3", "Verified");
  353.                 self add_option("Camosv4", "Cyborg", ::togglecamo, 31);
  354.                 self add_option("Camosv4", "Aqua", ::togglecamo, 33);
  355.                 self add_option("Camosv4", "Breach", ::togglecamo, 35);
  356.                 self add_option("Camosv4", "Coyote", ::togglecamo, 36);
  357.                 self add_option("Camosv4", "Glam", ::togglecamo, 37);
  358.                 self add_option("Camosv4", "Rogue", ::togglecamo, 38);
  359.                 self add_option("Camosv4", "DEVGRU", ::togglecamo, 1);
  360.                 self add_option("Camosv4", "Pack-a-Punch", ::togglecamo, 39);
  361.                 self add_option("Camosv4", "Paladin", ::togglecamo, 30);
  362.                 self add_option("Camosv4", "Comics", ::togglecamo, 34);
  363.                 self add_option("Camosv4", "Dead Man's Hand", ::togglecamo, 40);
  364.                 self add_option("Camosv4", "Beast", ::togglecamo, 41);
  365.                 self add_option("Camosv4", "Octane", ::togglecamo, 42);
  366.                 self add_option("Camosv4", "Weaponized 115", ::togglecamo, 43);
  367.                 self add_option("Camosv4", "> ^1Page 1^7", ::submenu, "Camosv2", "Camos");
  368.    
  369.     self add_menu("SubMenu3", self.menuname, "Verified");
  370.     self add_option("SubMenu3", "Option1");
  371.     self add_option("SubMenu3", "Option2");
  372.     self add_option("SubMenu3", "Option3");
  373.     self add_option("SubMenu3", "Option4");
  374.     self add_option("SubMenu3", "Option5");
  375.     self add_option("SubMenu3", "Option6");
  376.     self add_option("SubMenu3", "Option7");
  377.    
  378.     self add_menu("SubMenu4", self.menuname, "VIP");
  379.     self add_option("SubMenu4", "Option1");
  380.     self add_option("SubMenu4", "Option2");
  381.     self add_option("SubMenu4", "Option3");
  382.     self add_option("SubMenu4", "Option4");
  383.     self add_option("SubMenu4", "Option5");
  384.     self add_option("SubMenu4", "Option6");
  385.     self add_option("SubMenu4", "Option7");
  386.    
  387.     self add_menu("SubMenu5", self.menuname, "Admin");
  388.     self add_option("SubMenu5", "Option1");
  389.     self add_option("SubMenu5", "Option2");
  390.     self add_option("SubMenu5", "Option3");
  391.     self add_option("SubMenu5", "Option4");
  392.     self add_option("SubMenu5", "Option5");
  393.     self add_option("SubMenu5", "Option6");
  394.     self add_option("SubMenu5", "Option7");
  395.    
  396.     self add_menu("SubMenu6", self.menuname, "Co-Host");
  397.     self add_option("SubMenu6", "Option1");
  398.     self add_option("SubMenu6", "Option2");
  399.     self add_option("SubMenu6", "Option3");
  400.     self add_option("SubMenu6", "Option4");
  401.    
  402.     self add_menu("SubMenu7", self.menuname, "Co-Host");
  403.     self add_option("SubMenu7", "Option1");
  404.     self add_option("SubMenu7", "Option2");
  405.     self add_option("SubMenu7", "Option3");
  406.     self add_option("SubMenu7", "Option4");
  407.    
  408.     self add_menu("SubMenu8", self.menuname, "Co-Host");
  409.     self add_option("SubMenu8", "Option1");
  410.     self add_option("SubMenu8", "Option2");
  411.     self add_option("SubMenu8", "Option3");
  412.     self add_option("SubMenu8", "Option4");
  413.    
  414.     self add_menu("SubMenu9", self.menuname, "Co-Host");
  415.     self add_option("SubMenu9", "Option1");
  416.     self add_option("SubMenu9", "Option2");
  417.     self add_option("SubMenu9", "Option3");
  418.     self add_option("SubMenu9", "Option4");
  419.    
  420.     self add_menu("SubMenu10", self.menuname, "Co-Host");
  421.     self add_option("SubMenu10", "Option1");
  422.     self add_option("SubMenu10", "Option2");
  423.     self add_option("SubMenu10", "Option3");
  424.     self add_option("SubMenu10", "Option4");
  425.    
  426.     self add_menu("SubMenu11", self.menuname, "Co-Host");
  427.     self add_option("SubMenu11", "Option1");
  428.     self add_option("SubMenu11", "Option2");
  429.     self add_option("SubMenu11", "Option3");
  430.     self add_option("SubMenu11", "Option4");
  431.    
  432.     self add_menu("SubMenu12", self.menuname, "Co-Host");
  433.     self add_option("SubMenu12", "Option1");
  434.     self add_option("SubMenu12", "Option2");
  435.     self add_option("SubMenu12", "Option3");
  436.     self add_option("SubMenu12", "Option4");
  437.    
  438.     self add_menu("Theme Menu", self.menuname, "Verified");
  439.     self add_option("Theme Menu", "Line Color", ::SubMenu, "Line Color");
  440.     self add_option("Theme Menu", "Scrollbar Color", ::SubMenu, "Scrollbar Color");
  441.     self add_option("Theme Menu", "Background Color", ::SubMenu, "Background Color");
  442.     self add_option("Theme Menu", "Default Theme", ::defTheme);
  443.     self add_option("Theme Menu", "Red Theme", ::redTheme);
  444.     self add_option("Theme Menu", "Blue Theme", ::blueTheme);
  445.     self add_option("Theme Menu", "Green Theme", ::greenTheme);
  446.     self add_option("Theme Menu", "Pink Theme", ::pinkTheme);
  447.     self add_option("Theme Menu", "Cyan Theme", ::cyanTheme);
  448.     self add_option("Theme Menu", "Black Theme", ::blackTheme);
  449.    
  450.     self add_menu("Line Color", "Theme Menu", "Verified");
  451.     self add_option("Line Color", "Default Lines", ::defLines);
  452.     self add_option("Line Color", "Red Lines", ::redLines);
  453.     self add_option("Line Color", "Blue Lines", ::blueLines);
  454.     self add_option("Line Color", "Green Lines", ::greenLines);
  455.     self add_option("Line Color", "Pink Lines", ::pinkLines);
  456.     self add_option("Line Color", "Cyan Lines", ::cyanLines);
  457.     self add_option("Line Color", "Black Lines", ::blackLines);
  458.    
  459.     self add_menu("Scrollbar Color", "Theme Menu", "Verified");
  460.     self add_option("Scrollbar Color", "Default Scrollbar", ::defBar);
  461.     self add_option("Scrollbar Color", "Red Scrollbar", ::redBar);
  462.     self add_option("Scrollbar Color", "Blue Scrollbar", ::blueBar);
  463.     self add_option("Scrollbar Color", "Green Scrollbar", ::greenBar);
  464.     self add_option("Scrollbar Color", "Pink Scrollbar", ::pinkBar);
  465.     self add_option("Scrollbar Color", "Cyan Scrollbar", ::cyanBar);
  466.     self add_option("Scrollbar Color", "Black Scrollbar", ::blackBar);
  467.    
  468.     self add_menu("Background Color", "Theme Menu", "Verified");
  469.     self add_option("Background Color", "Red Background", ::redBG);
  470.     self add_option("Background Color", "Blue Background", ::blueBG);
  471.     self add_option("Background Color", "Green Background", ::greenBG);
  472.     self add_option("Background Color", "Pink Background", ::pinkBG);
  473.     self add_option("Background Color", "Cyan Background", ::cyanBG);
  474.     self add_option("Background Color", "Black Background", ::blackBG);
  475.    
  476.     self add_menu("Game Settings", self.menuname, "Co-Host");
  477.     self add_option("Game Settings", "> Lobby Mods", ::submenu, "LModsv2", "Lobby Mods");
  478.     self add_option("Game Settings", "> Minimap Mods", ::submenu, "Miniv2", "Minimap Mods");
  479.     self add_option("Game Settings", "> Spawnables", ::submenu, "Spawnv2", "Spawnables");
  480.     self add_option("Game Settings", "> Gametypes", ::submenu, "Typesv2", "Gametypes");
  481.     self add_option("Game Settings", "> Map Menu", ::submenu, "Map Menu", "Map Menu");
  482.     self add_option("Game Settings", "> Bots", ::submenu, "Botsv2", "Bot Menu");
  483.     self add_option("Game Settings", "Death Barriers", ::toggleDeathBarriers);
  484.     self add_option("Game Settings", "Unlimited Game", ::Inf_Game);
  485.     self add_option("Game Settings", "Adventure Time", ::AdventureTimeAllPlayers);
  486.     self add_option("Game Settings", "Restart Game", ::dorestart);
  487.     self add_option("Game Settings", "Bouncy Grenades", ::notdone);
  488.    
  489.         self add_menu("LModsv2", "Game Settings", "Co-Host");
  490.         self add_option("LModsv2", "End Game", ::endgame);
  491.         self add_option("LModsv2", "Instant End Game", ::instaEnd);
  492.         self add_option("LModsv2", "Timescale", ::changetimescale);
  493.         self add_option("LModsv2", "Hear Everyone", ::hearallplayers);
  494.         self add_option("LModsv2", "Gravity", ::gravity);
  495.         self add_option("LModsv2", "Big ass names", ::overheadnamessize);
  496.         self add_option("LModsv2", "Super Jump" , ::SuperJumpEnable);
  497.         self add_option("LModsv2", "Unlimited Ammo" , ::infiniteammoall);
  498.        
  499.        
  500.         self add_menu("Miniv2", "Game Settings", "Co-Host");
  501.         self add_option("Miniv2", "Default Minimap", ::MinimapDefault);
  502.         self add_option("Miniv2", "14th", ::BG_ChangeMinimap, "rank_prestige14");
  503.         self add_option("Miniv2", "15th", ::BG_ChangeMinimap, "rank_prestige15");
  504.         self add_option("Miniv2", "South Korea", ::BG_ChangeMinimap, "em_bg_flag_south_korea");
  505.         self add_option("Miniv2", "Comics", ::BG_ChangeMinimap, "em_bg_ani_comics");
  506.         self add_option("Miniv2", "Afterlife", ::BG_ChangeMinimap, "em_bg_ani_afterlife");
  507.         self add_option("Miniv2", "Weaponized", ::BG_ChangeMinimap, "em_bg_ani_w115");
  508.         self add_option("Miniv2", "Nuclear", ::BG_ChangeMinimap, "emblem_bg_bo2_nuclear_killer");
  509.         self add_option("Miniv2", "Cyborg", ::BG_ChangeMinimap, "em_bg_ani_cybertron");
  510.         self add_option("Miniv2", "Diamond", ::BG_ChangeMinimap, "menu_camo_diamond_pattern");
  511.         self add_option("Miniv2", "Nuketown", ::BG_ChangeMinimap, "emblem_bg_nuketown_2025");
  512.         self add_option("Miniv2", "Twitter", ::BG_ChangeMinimap, "menu_lobby_icon_twitter");
  513.         self add_option("Miniv2", "Controller", ::BG_ChangeMinimap, "xenon_controller_top");
  514.         self add_option("Miniv2", "DSR Scope", ::BG_ChangeMinimap, "scope_overlay_dsr50");
  515.         self add_option("Miniv2", "LStick", ::BG_ChangeMinimap, "ui_button_xenon_lstick_anim_r");
  516.         self add_option("Miniv2", "Pro Rank", ::BG_ChangeMinimap, "menu_div_pro_sub03_64");
  517.         self add_option("Miniv2", "Master Rank", ::BG_ChangeMinimap, "menu_div_semipro_sub03_64");
  518.        
  519.         self add_menu("Spawnv2", "Game Settings", "Co-Host");
  520.         self add_option("Spawnv2", "MGR", ::build);
  521.         self add_option("Spawnv2", "Destory MGR", ::explode);
  522.         self add_option("Spawnv2", "Spiral Stairs", ::notdone);
  523.         self add_option("Spawnv2", "Default Actor", ::mexicanWave, "defaultactor");
  524.         self add_option("Spawnv2", "Supply Drop Wave", ::mexicanWave, "t6_wpn_supply_drop_ally");
  525.         self add_option("Spawnv2", "Red Supply Drop Wave", ::mexicanWave, "t6_wpn_turret_sentry_gun_red");
  526.         self add_option("Spawnv2", "AGR Wave", ::mexicanWave, "veh_t6_drone_tank");
  527.         self add_option("Spawnv2", "Soldier Wave", ::mexicanWave, "c_usa_mp_seal6_smg_fb");
  528.         self add_option("Spawnv2", "Dog Wave", ::mexicanWave, "german_shepherd");
  529.         self add_option("Spawnv2", "Sentry Gun Wave", ::mexicanWave, "t6_wpn_turret_sentry_gun");
  530.        
  531.         self add_menu("Typesv2", "Game Settings", "Co-Host");
  532.         self add_option("Typesv2", "Search & Destroy", ::ChangeGameType, "sd");
  533.         self add_option("Typesv2", "Team Deathmatch", ::ChangeGameType, "tdm");
  534.         self add_option("Typesv2", "Domination", ::ChangeGameType, "dom");
  535.         self add_option("Typesv2", "Capture The Flag", ::ChangeGameType, "ctf");
  536.         self add_option("Typesv2", "HeadQuarters", ::ChangeGameType, "hq");
  537.         self add_option("Typesv2", "Gun Game", ::ChangeGameType, "gun");
  538.         self add_option("Typesv2", "Hardpoint", ::ChangeGameType, "koth");
  539.         self add_option("Typesv2", "SharpShooter", ::ChangeGameType, "shrp");
  540.         self add_option("Typesv2", "In The Chamber", ::ChangeGameType, "oic");
  541.         self add_option("Typesv2", "Sticks And Stones", ::ChangeGameType, "sas");
  542.         self add_option("Typesv2", "Demolition", ::ChangeGameType, "dem");
  543.         self add_option("Typesv2", "Free For All", ::ChangeGameType, "dm");
  544.        
  545.         self add_menu("Map Menu", "Game Settings", "Host");
  546.         self add_option( "Map Menu", "Aftermath", ::aftermath);
  547.         self add_option( "Map Menu", "Cargo", ::cargo);
  548.         self add_option( "Map Menu", "Raid", ::raid);
  549.         self add_option( "Map Menu", "Slums", ::slums);
  550.         self add_option( "Map Menu", "Standoff", ::standoff);
  551.         self add_option( "Map Menu", "Turbine", ::turbine);
  552.         self add_option( "Map Menu", "Yemen", ::yemen);
  553.         self add_option( "Map Menu", "Hijacked", ::hijacked);
  554.         self add_option( "Map Menu", "Meltdown", ::meltdown);
  555.         self add_option( "Map Menu", "Carrier", ::carrier);
  556.         self add_option( "Map Menu", "Drone", ::drone);
  557.         self add_option( "Map Menu", "Express", ::express);
  558.         self add_option( "Map Menu", "Overflow", ::overflow);
  559.         self add_option( "Map Menu", "Plaza", ::plaza);
  560.         self add_option( "Map Menu", "Nuketown 2025", ::nuketown);
  561.        
  562.         self add_menu("Botsv2", self.menuname, "Admin");
  563.         self add_option("Botsv2", "Spawn 1 Bot", ::doBots, 1);
  564.         self add_option("Botsv2", "Spawn 3 Bots", ::doBots, 3);
  565.         self add_option("Botsv2", "Spawn 6 Bots", ::doBots, 6);
  566.         self add_option("Botsv2", "Spawn 9 Bots", ::doBots, 9);
  567.         self add_option("Botsv2", "Spawn 17 Bots", ::doBots, 17);
  568.         self add_option("Botsv2", "Freeze Bots", ::FreezeBots);
  569.         self add_option("Botsv2", "Teleport Bots", ::TeleBots);
  570.         self add_option("Botsv2", "^1Kick All Bots", ::kickAllBots);
  571.    
  572.     self add_menu("Messages", self.menuname, "VIP");
  573.     self add_option("Messages", "> Menu Info", ::submenu, "MenuInfo", "Menu Infomation");
  574.     self add_option("Messages", "> Insults", ::submenu, "Insults", "Insults");
  575.     self add_option("Messages", "> Special", ::submenu, "Special", "Special");
  576.     self add_option("Messages", "> Shoutouts", ::submenu, "Shoutouts", "Shoutouts");
  577.    
  578.         self add_menu("MenuInfo", "Messages", "Co-Host");
  579.         self add_option("MenuInfo", "Infomation", ::infomationv1);
  580.         self add_option("MenuInfo", "Download", ::typewriter, "Download ^1NOT ^7avaliable.");
  581.         self add_option("MenuInfo", "Menu Controls", ::typewriter, "^1Aim + Knife ^7to open the menu!");
  582.  
  583.         self add_menu("Insults", "Messages", "VIP");
  584.         self add_option("Insults", "not hackz", ::typewriter, "not hackz, ^1SKILL BITCH");
  585.         self add_option("Insults", "Nonce", ::typewriter, "ur a ^1nonce");
  586.        
  587.         self add_menu("Special", "Messages", "Co-Host");
  588.         self add_option("Special", "Spin Text #1", ::notdone);
  589.         self add_option("Special", "Spin Text #2", ::notdone);
  590.         self add_option("Special", "DoHeart", ::notdone);
  591.        
  592.         self add_menu("Shoutouts", "Messages", "VIP");
  593.         self add_option("Shoutouts", "Creator YT", ::typewriter, "Subscribe To ^1Mizmash");
  594.         self add_option("Shoutouts", "Creator IG", ::typewriter, "Follow @R6ixty on ^1IG");
  595.         self add_option("Shoutouts", "Creator TWITTER", ::typewriter, "Follow ^1@LatzzSA ^7on Twitter");
  596.         self add_option("Shoutouts", "Creator DISCORD", ::typewriter, "^1https://discord.gg/Pfbscp5");
  597.    
  598.     self add_menu("All Players Menu", self.menuname, "Host");
  599.     self add_option("All Players Menu", "God Mode All", ::godmodeall);
  600.     self add_option("All Players Menu", "Option2");
  601.     self add_option("All Players Menu", "Option3");
  602.     self add_option("All Players Menu", "Option4");
  603.     self add_option("All Players Menu", "Option5");
  604.     self add_option("All Players Menu", "Option6");
  605.     self add_option("All Players Menu", "Option7");
  606.  
  607.  
  608.     self add_menu("PlayersMenu", self.menuname, "Co-Host");
  609.     for (i = 0; i < 12; i++)
  610.     { self add_menu("pOpt " + i, "PlayersMenu", "Co-Host"); }
  611. }
  612.  
  613. updatePlayersMenu()
  614. {
  615.     self.menu.menucount["PlayersMenu"] = 0;
  616.     for (i = 0; i < 12; i++)
  617.     {
  618.         player = level.players[i];
  619.         playerName = getPlayerName(player);
  620.        
  621.         playersizefixed = level.players.size - 1;
  622.         if(self.menu.curs["PlayersMenu"] > playersizefixed)
  623.         {
  624.             self.menu.scrollerpos["PlayersMenu"] = playersizefixed;
  625.             self.menu.curs["PlayersMenu"] = playersizefixed;
  626.         }
  627.        
  628.         self add_option("PlayersMenu", "[" + verificationToColor(player.status) + "^7] " + playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "^7] " + playerName);
  629.    
  630.         self add_menu("pOpt " + i, "PlayersMenu", "Co-Host");
  631.         self add_menu("pOpt2 " + i, "pOpt " + i, "Co-Host");
  632.        
  633.         self add_option("pOpt " + i, "Give Co-Host", ::changeVerificationMenu, player, "Co-Host");
  634.         self add_option("pOpt " + i, "Give Admin", ::changeVerificationMenu, player, "Admin");
  635.         self add_option("pOpt " + i, "Give VIP", ::changeVerificationMenu, player, "VIP");
  636.         self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
  637.         self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");
  638.         self add_option("pOpt " + i, "> Malicious Stuff", ::submenu, "pOpt2 " + i, "[" + verificationToColor(player.status) + "^7] " + playerName);
  639.        
  640.             self add_option("pOpt2 " + i, "Freeze Console", ::FreezeThexbox, player);
  641.             self add_option("pOpt2 " + i, "Kick Player", ::kickplayer, player);
  642.             self add_option("pOpt2 " + i, "Fling Player", ::sendtospace, player);
  643.             self add_option("pOpt2 " + i, "Death Loop", ::ToggleDeathLoop, player);
  644.     }
  645. }
  646. add_menu_alt(Menu, prevmenu)
  647. {
  648.     self.menu.getmenu[Menu] = Menu;
  649.     self.menu.menucount[Menu] = 0;
  650.     self.menu.previousmenu[Menu] = prevmenu;
  651. }
  652.  
  653. add_menu(Menu, prevmenu, status)
  654. {
  655.     self.menu.status[Menu] = status;
  656.     self.menu.getmenu[Menu] = Menu;
  657.     self.menu.scrollerpos[Menu] = 0;
  658.     self.menu.curs[Menu] = 0;
  659.     self.menu.menucount[Menu] = 0;
  660.     self.menu.previousmenu[Menu] = prevmenu;
  661. }
  662.  
  663. add_option(Menu, Text, Func, arg1, arg2)
  664. {
  665.     Menu = self.menu.getmenu[Menu];
  666.     Num = self.menu.menucount[Menu];
  667.     self.menu.menuopt[Menu][Num] = Text;
  668.     self.menu.menufunc[Menu][Num] = Func;
  669.     self.menu.menuinput[Menu][Num] = arg1;
  670.     self.menu.menuinput1[Menu][Num] = arg2;
  671.     self.menu.menucount[Menu] += 1;
  672. }
  673. updateScrollbar()
  674. {
  675.     self.menu.scroller MoveOverTime(0.10);
  676.     self.menu.scroller.y = 50 + (self.menu.curs[self.menu.currentmenu] * 16.80);
  677. }
  678.  
  679. openMenu()
  680. {
  681.     self freezeControls(false);
  682.     self StoreText(self.menuname, self.menuname);
  683.     self setempjammed(1);
  684.     self SetVisionSetforPlayer("remote_mortar_enhanced", 0);
  685.     self.emp = false;
  686.    
  687.     self.menu.backgroundinfo FadeOverTime(0.3);
  688.     self.menu.backgroundinfo.alpha = 1;
  689.    
  690.     self.menu.scroller FadeOverTime(0.30);
  691.     self.menu.scroller.alpha = 0.55;
  692.  
  693.     self.menu.background FadeOverTime(0.30);
  694.     self.menu.background.alpha = 0.55;
  695.    
  696.     self.menu.background1 FadeOverTime(0.03);
  697.     self.menu.background1.alpha = 1;
  698.    
  699.     self.menu.background2 FadeOverTime(0.03);
  700.     self.menu.background2.alpha = 1;
  701.    
  702.     self.menu.background3 FadeOverTime(0.03);
  703.     self.menu.background3.alpha = 1;
  704.  
  705.     self.swagtext FadeOverTime(0.3);
  706.     self.swagtext.alpha = 0.90;
  707.  
  708.     self.menu.line MoveOverTime(0.30);
  709.     self.menu.line.y = -50;
  710.     self.menu.line2 MoveOverTime(0.30);
  711.     self.menu.line2.y = -50;
  712.  
  713.     self updateScrollbar();
  714.     self.menu.open = true;
  715. }
  716.  
  717. closeMenu()
  718. {
  719.     self.menu.options FadeOverTime(0.3);
  720.     self.menu.options.alpha = 0;
  721.    
  722.     self setempjammed(0);
  723.     self.emp = true;
  724.    
  725.     self.statuss FadeOverTime(0.3);
  726.     self.statuss.alpha = 0;
  727.    
  728.     self.statuss1 FadeOverTime(0.3);
  729.     self.statuss1.alpha = 0;
  730.    
  731.     self.tez FadeOverTime(0.3);
  732.     self.tez.alpha = 0;
  733.    
  734.     self.menu.background FadeOverTime(0.3);
  735.     self.menu.background.alpha = 0;
  736.    
  737.     self.menu.background1 FadeOverTime(0.3);
  738.     self.menu.background1.alpha = 0;
  739.    
  740.     self.menu.background2 FadeOverTime(0.3);
  741.     self.menu.background2.alpha = 0;
  742.    
  743.     self.menu.background3 FadeOverTime(0.3);
  744.     self.menu.background3.alpha = 0;
  745.    
  746.     self.swagtext FadeOverTime(0.30);
  747.     self.swagtext.alpha = 0;
  748.  
  749.     self.menu.title FadeOverTime(0.30);
  750.     self.menu.title.alpha = 0;
  751.    
  752.     self.menu.line MoveOverTime(0.30);
  753.     self.menu.line.y = -550;
  754.     self.menu.line2 MoveOverTime(0.30);
  755.     self.menu.line2.y = -550;
  756.    
  757.     self.menu.backgroundinfo FadeOverTime(0.3);
  758.     self.menu.backgroundinfo.alpha = 0;
  759.  
  760.     self.menu.scroller MoveOverTime(0.30);
  761.     self.menu.scroller.y = -510;
  762.     self.menu.open = false;
  763. }
  764.  
  765. destroyMenu(player)
  766. {
  767.     player.MenuInit = false;
  768.     closeMenu();
  769.     wait 0.3;
  770.  
  771.     player.menu.options destroy(); 
  772.     player.menu.background1 destroy();
  773.     player.menu.scroller destroy();
  774.     player.menu.scroller1 destroy();
  775.     player.infos destroy();
  776.     player.menu.line destroy();
  777.     player.menu.line2 destroy();
  778.     player.menu.title destroy();
  779.     player notify("destroyMenu");
  780. }
  781.  
  782. closeMenuOnDeath()
  783. {  
  784.     self endon("disconnect");
  785.     self endon( "destroyMenu" );
  786.     level endon("game_ended");
  787.     for (;;)
  788.     {
  789.         self waittill("death");
  790.         self.menu.closeondeath = true;
  791.         self submenu(self.menuname, self.menuname);
  792.         closeMenu();
  793.         self.menu.closeondeath = false;
  794.     }
  795. }
  796. scaleLol()
  797. {
  798.     self endon("stopScale");
  799.     for(;;)
  800.     {
  801.     self.tez.glowColor = (0.1, 0, 0);
  802.     wait .05;
  803.     self.tez.glowColor = (0.2, 0, 0);
  804.     wait .05;
  805.     self.tez.glowColor = (0.3, 0, 0);
  806.     wait .05;
  807.     self.tez.glowColor = (0.4, 0, 0);
  808.     wait .05;
  809.     self.tez.glowColor = (0.5, 0, 0);
  810.     wait .05;
  811.     self.tez.glowColor = (0.6, 0, 0);
  812.     wait .05;
  813.     self.tez.glowColor = (0.7, 0, 0);
  814.     wait .05;
  815.     self.tez.glowColor = (0.8, 0, 0);
  816.     wait .05;
  817.     self.tez.glowColor = (0.9, 0, 0);
  818.     wait .05;
  819.     self.tez.glowColor = (1, 0, 0);
  820.     wait .05;
  821.     self.tez.glowColor = (0.9, 0, 0);
  822.     wait 1.5;
  823.     self.tez.glowColor = (0.8, 0, 0);
  824.     wait .05;
  825.     self.tez.glowColor = (0.7, 0, 0);
  826.     wait .05;
  827.     self.tez.glowColor = (0.6, 0, 0);
  828.     wait .05;
  829.     self.tez.glowColor = (0.5, 0, 0);
  830.     wait .05;
  831.     self.tez.glowColor = (0.4, 0, 0);
  832.     wait .05;
  833.     self.tez.glowColor = (0.3, 0, 0);
  834.     wait .05;
  835.     self.tez.glowColor = (0.2, 0, 0);
  836.     wait .05;
  837.     self.tez.glowColor = (0.1, 0, 0);
  838.     wait .05;
  839.     self.tez.glowColor = (0, 0, 0);
  840.     wait .05;    
  841.     }
  842. }
  843. StoreShaders()
  844. {
  845.     self.menu.background = self drawShader("emblem_bg_movie_star", 175, -100, 150, 1000, (0.688, 0, 0), 0, 0);
  846.     self.menu.background1 = self drawShader("white", 175, 01, 150, 18, (0, 0, 0), 0, 0);
  847.     self.menu.background3 = self drawShader("white", 175, 25, 150, 12, (0, 0, 0), 0, 0);
  848.     self.menu.background2 = self drawShader("white", 175, 400, 150, 18, (0, 0, 0), 0, 0);
  849.     self.menu.scroller = self drawShader("emblem_bg_movie_star", 175, -100, 150, 15, (1, 0, 0), 255, 1);
  850.     self.menu.line = self drawShader("white", 250, -1000, 2, 500, (0, 0, 0), 255, 3);
  851.     self.menu.line2 = self drawShader("white", 100, -1000, 2, 500, (0, 0, 0), 255, 2);
  852. }
  853.  
  854. StoreText(menu, title)
  855. {
  856.     self.menu.currentmenu = menu;
  857.     string = "";
  858.     self.menu.title destroy();
  859.     self.menu.title = drawText(title, "default", 1.9, 150, 0, (1, 1, 1), 0, (0, 0, 0), 1, 3);
  860.     self.menu.title FadeOverTime(0.3);
  861.     self.menu.title.alpha = 1;
  862.     self.menu.title setPoint( "LEFT", "LEFT", 498, -195 ); //x = -L/+R, y = -U/+
  863.     self notify ("stopScale");
  864.     self thread scaleLol();
  865.    
  866.     for(i = 0; i < self.menu.menuopt[menu].size; i++)
  867.     { string +=self.menu.menuopt[menu][i] + "\n"; }
  868.    
  869.    
  870.     self.statuss destroy();
  871.     self.statuss = drawText("          V0.2", "default", 1.3, 0, 0, (1, 1, 1), 0, (0, 0, 0), 1, 4);
  872.     self.statuss FadeOverTime(0.3);
  873.     self.statuss.alpha = 1;
  874.     self.statuss setPoint( "LEFT", "LEFT", 490, -174);
  875.    
  876.     self.statuss1 destroy();
  877.     self.statuss1 = drawText("         Spartan [^1BETA^7]", "default", 1.3, 0, 0, (1, 1, 1), 0, (0, 0, 0), 1, 4);
  878.     self.statuss1 FadeOverTime(0.3);
  879.     self.statuss1.alpha = 1;
  880.     self.statuss1 setPoint( "LEFT", "LEFT", 470, 205);
  881.    
  882.     self.menu.options destroy();
  883.     self.menu.options = drawText(string, "objective", 1.4, 265, 68, (1, 1, 1), 0, (0, 0, 0), 0, 4);
  884.     self.menu.options FadeOverTime(0.3);
  885.     self.menu.options.alpha = 1;
  886.     self.menu.options setPoint( "LEFT", "LEFT", 507, -148 ); //x = -L/+R, y = -U/+D
  887.  
  888. }
  889. //
  890. MenuInit()
  891. {
  892.     self endon("disconnect");
  893.     self endon( "destroyMenu" );
  894.     level endon("game_ended");
  895.    
  896.     self.menu = spawnstruct();
  897.     self.toggles = spawnstruct();
  898.      
  899.     self.menu.open = false;
  900.    
  901.     self StoreShaders();
  902.     self CreateMenu();
  903.     self modStatusUpdate();
  904.    
  905.     for(;;)
  906.     {  
  907.         if(self meleeButtonPressed() && self adsButtonPressed() && !self.menu.open) // Open.
  908.         {
  909.             openMenu();
  910.         }
  911.         if(self.menu.open)
  912.         {
  913.             if(self useButtonPressed())
  914.             {
  915.                 if(isDefined(self.menu.previousmenu[self.menu.currentmenu]))
  916.                 {
  917.                     self submenu(self.menu.previousmenu[self.menu.currentmenu]);
  918.                 }
  919.                 else
  920.                 {
  921.                     closeMenu();
  922.                 }
  923.                 wait 0.2;
  924.             }
  925.             if(self actionSlotOneButtonPressed() || self actionSlotTwoButtonPressed())
  926.             {  
  927.                 self.menu.curs[self.menu.currentmenu] += (Iif(self actionSlotTwoButtonPressed(), 1, -1));
  928.                 self.menu.curs[self.menu.currentmenu] = (Iif(self.menu.curs[self.menu.currentmenu] < 0, self.menu.menuopt[self.menu.currentmenu].size-1, Iif(self.menu.curs[self.menu.currentmenu] > self.menu.menuopt[self.menu.currentmenu].size-1, 0, self.menu.curs[self.menu.currentmenu])));
  929.                
  930.                 self updateScrollbar();
  931.             }
  932.             if(self jumpButtonPressed())
  933.             {
  934.                 self thread [[self.menu.menufunc[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]]](self.menu.menuinput[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]], self.menu.menuinput1[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]);
  935.                 wait 0.2;
  936.             }
  937.         }
  938.         wait 0.05;
  939.     }
  940. }
  941.  modStatusUpdate()
  942. {
  943.     if(self.menu.open)
  944.     {
  945.         self.menu.modStatus destroy();
  946.         self.menu.modStatus = drawText("Spartan [^1BETA^7]\nVersion: 0.2\n[{+speed_throw}] & [{+melee}] To Open", "objective", 1.4, 0, 0, (1, 1, 1), 0, (0, 0, 0), 0, 4);
  947.         self.menu.modStatus setPoint( "LEFT", "LEFT", 10, -75);//x = -L/+R, y = -U/+D
  948.         self.menu.modStatus.alpha = 1;
  949.         if(self.stealth != 1)
  950.             self.menu.modStatus.archived = false;
  951.     }
  952. }
  953. submenu(input, title)
  954. {
  955.     if (verificationToNum(self.status) >= verificationToNum(self.menu.status[input]))
  956.     {
  957.         self.menu.options destroy();
  958.  
  959.         if (input == self.menuname)
  960.             self thread StoreText(input, self.menuname);
  961.         else if (input == "PlayersMenu")
  962.         {
  963.             self updatePlayersMenu();
  964.             self thread StoreText(input, "Players");
  965.         }
  966.         else
  967.             self thread StoreText(input, title);
  968.            
  969.         self.CurMenu = input;
  970.        
  971.         self.menu.scrollerpos[self.CurMenu] = self.menu.curs[self.CurMenu];
  972.         self.menu.curs[input] = self.menu.scrollerpos[input];
  973.        
  974.         if (!self.menu.closeondeath)
  975.         {
  976.             self updateScrollbar();
  977.         }
  978.     }
  979.     else
  980.     {
  981.         self iPrintln("^6Only Players With " + verificationToColor(self.menu.status[input]) + " ^6Can Access This Menu!");
  982.     }
  983. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top