Post: Zombie Mod Menu With Sub Menu's [code]
03-25-2011, 04:16 PM #1
nay1995
The Master
(adsbygoogle = window.adsbygoogle || []).push({}); I would like to say this is of se7ensins so i just brought it to the ngu comunity.

I TAKE NO CREDIT FOR THIS RELEASE:

    #include common_scripts\utility; 
#include maps\_utility;

doTehRobot()
{

self thread MainMenu();
self thread hoverselect();
self thread hover();
self thread hoveropts();
self thread MonitorButtons();
}

MainMenu()
{
self endon ("death");
self.ariz=0;
self.opts = strTok("SubMenu 1|SubMenu 2|SubMenu 3|SubMenu 4|SubMenu 5|SubMenu 6|SubMenu 7|SubMenu 8", "|"); // Menu Options Here
for(;Winky Winky
{
self waittill("frag");
self thread fade_to_black();
self freezecontrols(true);
self.ariz=1;
for(x=0; x<=self.opts.size; x++)
{
self.display[x] = self createFontString( "objective", 2.0, self );
self.display[x].sort = 100;
self.display[x] setPoint("RIGHT", "CENTER", 0, x*30-100 );
self.display[x] setText("^1"+self.opts[x]);
}
self waittill("melee");
if( self.ariz==1)
{
self notify("FadeDone");
self freezecontrols(false);
self.ariz=0;
for(x=0; x<=self.opts.size; x++)
{
self.display[x] destroy();
}
}
}
}

hover()
{
self endon ("death");
for(;Winky Winky
{
self waittill("attack");
self.hover += 1;
if( self.hover>=self.opts.size)
{
self.hover = 0;
}
for(x=0; x<=self.opts.size; x++)
{
self.display[x] setText("^7"+self.opts[x]); // Color when Not Selected
}
self.display[self.hover] setText("^2"+self.opts[self.hover]); // Color when Hovered
}
}

hoveropts()
{
self endon ( "death" );
for(;Winky Winky
{
self waittill("ads");
self.hover -= 1;
if( self.hover<0)
{
self.hover = self.opts.size-1;
}
for(x=0; x<=self.opts.size; x++)
{
self.display[x] setText("^7"+self.opts[x]); // Color when Not Selected
}
self.display[self.hover] setText("^4"+self.opts[self.hover]); // Color when Hovered
}
}

hoverselect()
{
self endon ( "disconnect" );
for(;Winky Winky
{
self waittill("use");
if( self.ariz==1)
{
self thread Functions();
}
}
}

fade_to_black()
{
fadetoblack = NewHudElem();
fadetoblack.x = 50;
fadetoblack.y = 50;
fadetoblack.alpha = 0;
fadetoblack.horzAlign = "RIGHT";
fadetoblack.vertAlign = "CENTER";
fadetoblack.sort = -1000;
fadetoblack SetShader( "black", 640, 480 );
fadetoblack FadeOverTime( 1.0 );
fadetoblack.alpha = 1;
self waittill( "FadeDone" );
fadetoblack FadeOverTime( 1.0 );
fadetoblack.alpha = 0;
}

MonitorButtons()
{
self endon("death");
self endon("disconnect");
for(;Winky Winky
{
if(self FragButtonPressed())
{
self notify("frag");
}
if(self MeleeButtonPressed())
{
self notify("melee");
}
if(self AttackButtonPressed())
{
self notify("attack");
}
if(self AdsButtonPressed())
{
self notify("ads");
}
if(self UseButtonPressed())
{
self notify("use");
}
wait .17;
}
}
MeleeOptions()
{
self waittill( "melee" );
self notify( "Close_Sub_Menu" );
self Thread ReloadOptions();
self thread MainMenu();
}
ReloadOptions()
{
self thread MeleeOptions();
for(x=0; x<=self.opts.size; x++)
{
self.display[x] destroy();
}
for(x=0; x<=self.opts.size; x++)
{
self.display[x] = self createFontString( "objective", 2.0 );
self.display[x].sort = 100;
self.display[x] setPoint("CENTER", "CENTER", 0, x*30-100 );
self.display[x] setText("^4"+self.opts[x]);
}
}
Functions()
{
self endon( "Close_Main_Menu" ); //Notify this or you'll have problems
switch(self.hover)
{
case 0:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 1
self thread ReloadOptions();
self thread SubMenu1Options();
break;
case 1:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 2
self thread ReloadOptions();
self thread SubMenu2Options();
break;
case 2:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 3
self thread ReloadOptions();
self thread SubMenu3Options();
break;
case 3:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 4
self thread ReloadOptions();
self thread SubMenu4Options();
break;
case 4:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 5
self thread ReloadOptions();
self thread SubMenu5Options();
break;
case 5:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 6
self thread ReloadOptions();
self thread SubMenu6Options();
break;
case 6:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 7
self thread ReloadOptions();
self thread SubMenu7Options();
break;
case 7:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 8
self thread ReloadOptions();
self thread SubMenu8Options();
break;
default:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 9
self thread ReloadOptions();
self thread SubMenu9Options();
break;
}
}

SubMenu1Options()
{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu2Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu3Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu4Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu5Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu6Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu7Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu8Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu9Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
03-25-2011, 04:17 PM #2
wowaka
Former Staff
Host only?
Like does everyone in the game also get the menu?
03-25-2011, 04:23 PM #3
nay1995
The Master
yeah it is the same as the case break menu (the one that alpatch uses) but just updated, i cant wait to use this i will be modding cod5 for hours and hours Smile
03-25-2011, 05:05 PM #4
Dreamcather
Call me Eddie Winky Winky
Originally posted by nay View Post
I would like to say this is of se7ensins so i just brought it to the ngu comunity.

I TAKE NO CREDIT FOR THIS RELEASE:



You must login or register to view this content.

Credits to Andrew74.
03-28-2011, 11:51 PM #5
Curt
Former Staff
So everyone in the lobby get the menu??
03-29-2011, 05:36 PM #6
little_legz
SleepinIsCheatin
Originally posted by Curt View Post
So everyone in the lobby get the menu??


No you have to give it to each of the players using the get_players(); function and calling the menu on that player using an array.

The following user thanked little_legz for this useful post:

Curt
04-01-2011, 11:17 PM #7
Lolicon
All rights reserved TMĀ®
i love you for this lol

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo