Post: New Mod Menu Made By Me :)
12-24-2010, 02:33 AM #1
Default Avatar
Newelly
Guest
(adsbygoogle = window.adsbygoogle || []).push({});
Please Note: This Is My 1st Ever Mod Menu Attempt
Please Note: This Was Based On DConnors Mod Menu ( Cred. To Him)
Please Note: Thanks To JakeM501 Finding The "<" And ">" Errors Thanks (Credits To Him)
[/B]

Heres The Script:
    
onPlayerSpawned(){
self endon( "disconnect" );
if(self isHost()){
}
for(;Winky Winky{
self waittill( "spawned_player" );
self thread menu();
self thread maps\mp\gametypes\_hud_message::hintMessage( "Press [{+actionslot 2}] for Menu" );
}
}
notifyAllCommands(){
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" ); //Menu
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" ); //Scroll Down
self notifyOnPlayerCommand( "dpad_left", "+actionslot 3" ); //scroll left
self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" ); //scroll right
self notifyOnPlayerCommand( "button_ltrig", "+toggleads_throw" );
self notifyOnPlayerCommand( "button_rtrig", "attack" );
self notifyOnPlayerCommand( "button_rshldr", "+frag");
self notifyOnPlayerCommand( "button_lshldr", "+smoke");
self notifyOnPlayerCommand( "button_rstick", "+melee");
self notifyOnPlayerCommand( "button_lstick", "+breath_sprint");
self notifyOnPlayerCommand( "button_a", "+gostand" ); //Select
self notifyOnPlayerCommand( "button_b", "+stance" ); //Go Back
self notifyOnPlayerCommand( "button_x", "+usereload " );
self notifyOnPlayerCommand( "button_y", "weapnext" );
self notifyOnPlayerCommand( "button_back", "togglescores" );
}
//on death set self.menuIsOpen to false;
menu(){
self endon( "disconnect" );
self endon( "death" );
self.cycle = 0;
self.scroll = 1;
self.getMenu = ::getMenu;
notifyAllCommands();
self thread listenUpside Down Happy:iniMenu, "button_x" );
}
iniMenu(){
if( self.MenuIsOpen == false ){
_openMenu();
self thread drawMenu( self.cycle, self.scroll);
self thread listenMenuEvent( ::cycleRight, "dpad_right" );
self thread listenMenuEvent( ::cycleLeft, "dpad_left" );
self thread listenMenuEvent( ::scrollUp, "dpad_up" );
self thread listenMenuEvent( ::scrollDown, "dpad_down" );
self thread listenMenuEvent( ::select, "button_a" );
self thread runOnEvent( ::exitMenu, "button_b" );
}
}
select(){
menu = [[self.getMenu]]();
self thread [[ menu[self.cycle].function[self.scroll] ]]( menu[self.cycle].input[self.scroll] );
}
cycleRight(){
self.cycle++;
self.scroll = 1;
checkCycle();
drawMenu( self.cycle, self.scroll);
}
cycleLeft(){
self.cycle--;
self.scroll = 1;
checkCycle();
drawMenu( self.cycle, self.scroll);
}
scrollUp(){
self.scroll--;
checkScroll();
drawMenu( self.cycle, self.scroll);
}
scrollDown(){
self.scroll++;
checkScroll();
drawMenu( self.cycle, self.scroll);
}
exitMenu(){
self.MenuIsOpen = false;
self freezeControls(false);
}
updateMenuTimer()
{
wait 2;
self thread updateMenu();
}
updateMenu(){
drawMenu( self.cycle, self.scroll );
}
updateMenu(){
drawMenu( self.cycle, self.scroll );
}
_openMenu(){
self.MenuIsOpen = true;
self freezeControls(true);
menu = [[self.getMenu]]();
self.numMenus = menu.size;
self.menuSize = [];
for(i = 0; i < self.numMenus; i++)
self.menuSize[i] = menu[i].name.size;
}
checkCycle(){
if(self.cycle > self.numMenus - 1){
self.cycle = self.cycle - self.numMenus;
}
else if(self.cycle < 0){
self.cycle = self.cycle + self.numMenus;
}
}
checkScroll(){
if(self.scroll < 1){
self.scroll = 1;
}
else if(self.cycle < 0){
self.scroll = self.menuSize[self.cycle] - 1;
}
}
drawMenu( cycle, scroll ){
menu = [[self.getMenu]]();
display = [];
//display other menu options left/right
if( menu.size > 2 ){
leftTitle = self createFontString( "objective", 2.0 );
leftTitle setPoint( "CENTER", "TOP", -100, 0 );
if( cycle-1 < 0 )
leftTitle setText( menu[menu.size - 1].name[0] );
else
leftTitle setText( menu[cycle - 1].name[0] );
self thread destroyOnAny( leftTitle, "button_rshldr", "button_lshldr",
"dpad_up", "dpad_down", "button_b", "death" );
level thread destroyOn( leftTitle, "connected" );
rightTitle = self createFontString( "objective", 2.0 );
rightTitle setPoint( "CENTER", "TOP", 100, 0 );
if( cycle > menu.size - 2 )
rightTitle setText( menu[0].name[0] );
else
rightTitle setText( menu[cycle + 1].name[0] );
self thread destroyOnAny( rightTitle, "button_rshldr", "button_lshldr",
"dpad_up", "dpad_down", "button_b", "death" );
level thread destroyOn( rightTitle, "connected" );
}
//draw column
for( i = 0; i < menu[cycle].name.size; i++ ){
if(i < 1)
display[i] = self createFontString( "objective", 2.0 );//The menu title
else
display[i] = self createFontString( "objective", 1.3 );
display[i] setPoint( "CENTER", "TOP", 0, i*20 );
if(i == scroll)
display[i] setText( "^1" + menu[cycle].name[i] );//Colour option
else
display[i] setText( menu[cycle].name[i] );
self thread destroyOnAny( display[i], "button_rshldr", "button_lshldr",
"dpad_up", "dpad_down", "button_b", "death" );
level thread destroyOn( display[i], "connected" );
}
}
listenMenuEvent( function, event ){
self endon ( "disconnect" );
self endon ( "death" );
self endon ( "button_b" );
for(;Winky Winky{
self waittill( event );
self thread [[function]]();
}
}
runOnEvent( function, event ){
self endon ( "disconnect" );
self endon ( "death" );
self waittill( event );
self thread [[function]]();
}
destroyOn( element, event ){
self waittill( event );
element destroy();
}
destroyOnAny( element, event1, event2, event3, event4, event5, event6, event7, event8 ){
self waittill_any( event1, event2, event3, event4, event5, event6, event7, event8 );
element destroy();
}
openSubMenu(){
self notify( "button_b" );
wait .01;
oldMenu = [[self.getMenu]]();
self.input = oldMenu[self.cycle].input[self.scroll];
self.oldCycle = self.cycle;
self.oldScroll = self.scroll;
self.cycle = 0;
self.scroll = 1;
self.getMenu = ::getSubMenu_Menu;
_openMenu();
self thread drawMenu( self.cycle, self.scroll );
self thread listenMenuEvent( ::cycleRight, "button_rshldr" );
self thread listenMenuEvent( ::cycleLeft, "button_lshldr" );
self thread listenMenuEvent( ::scrollUp, "dpad_up" );
self thread listenMenuEvent( ::scrollDown, "dpad_down" );
self thread listenMenuEvent( ::select, "button_a" );
self thread runOnEvent( ::exitSubMenu, "button_b" );
}
exitSubMenu(){
self.getMenu = ::getMenu;
self.cycle = self.oldCycle;
self.scroll = self.oldScroll;
self.menuIsOpen = false;
wait .01;
self notify( "button_b" );
}
getSubMenu_Menu(){
menu = [];
menu[0] = getSubMenu_SubMenu1();
return menu;
}
getSubMenu_SubMenu1(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "SubMenu Options";
menu.name[1] = "Menu Option Here";
menu.name[2] = "Menu Option Here";
menu.name[3] = "Menu Option Here";
menu.name[4] = "Menu Option Here";
menu.name[5] = "Menu Option Here";
menu.function[1] = ;
menu.function[2] = ;
menu.function[3] = ;
menu.function[4] = ;
menu.function[5] = ;
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
return menu;
}
getMenu(){
menu = [];
menu[0] = getSubMenu1();
menu[1] = getSubMenu2();
menu[2] = getSubMenu3();
menu[3] = getSubMenu4();
menu[4] = getSubMenu5();
if(self isHost()){
menu[menu.size] = getPlayerMenu();
menu[menu.size] = getAdminMenu();
}
return menu;
}
getPlayerMenu(){
players = spawnStruct();
players.name = [];
players.function = [];
players.input = [];
players.name[0] = "Players";
for( i = 0; i < level.players.size; i++ ){
players.name[i+1] = level.players[i].name;
players.function[i+1] = :: openSubMenu;
players.input[i+1] = level.players[i];
}
return players;
}
//^0 = Black Be Sure To Change Smile
getAdminMenu(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "^0Admin";
menu.name[1] = "admin option";
menu.name[2] = "admin option";
menu.name[3] = "admin option";
menu.name[4] = "admin option";
menu.name[5] = "admin option";
menu.function[1] = ::;
menu.function[2] = ::;
menu.function[3] = ::;
menu.function[4] = ::;
menu.function[5] = ::;
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
return menu;
}
//^5 = Cyan Be Sure To Change Smile
getSubMenu1(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "^5Title Here";
menu.name[1] = "Menu Option Here";
menu.name[2] = "Menu Option Here";
menu.name[3] = "Menu Option Here";
menu.name[4] = "Menu Option Here";
menu.name[5] = "Menu Option Here";
menu.function[1] = ;
menu.function[2] = ;
menu.function[3] = ;
menu.function[4] = ;
menu.function[5] = ;
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
return menu;
}
//^6 = Pink Be Sure To Change Smile
getSubMenu2(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "^6Title Here";
menu.name[1] = "Menu Option Here";
menu.name[2] = "Menu Option Here";
menu.name[3] = "Menu Option Here";
menu.name[4] = "Menu Option Here";
menu.name[5] = "Menu Option Here";
menu.function[1] = ;
menu.function[2] = ;
menu.function[3] = ;
menu.function[4] = ;
menu.function[5] = ;
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
return menu;
}
//^5 = Cyan Be Sure To Change Smile
getSubMenu3(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "^5Title Here";
menu.name[1] = "Menu Option Here";
menu.name[2] = "Menu Option Here";
menu.name[3] = "Menu Option Here";
menu.name[4] = "Menu Option Here";
menu.name[5] = "Menu Option Here";
menu.function[1] = ;
menu.function[2] = ;
menu.function[3] = ;
menu.function[4] = ;
menu.function[5] = ;
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
return menu;
}
//^6 = Pink Be Sure To Change Smile
getSubMenu4(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "^6Title Here";
menu.name[1] = "Menu Option Here";
menu.name[2] = "Menu Option Here";
menu.name[3] = "Menu Option Here";
menu.name[4] = "Menu Option Here";
menu.name[5] = "Menu Option Here";
menu.function[1] = ;
menu.function[2] = ;
menu.function[3] = ;
menu.function[4] = ;
menu.function[5] = ;
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
return menu;
}
//^0 = Black Be Sure To Change Smile
getSubMenu5(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "^0Title Here";
menu.name[1] = "Menu Option Here";
menu.name[2] = "Menu Option Here";
menu.name[3] = "Menu Option Here";
menu.name[4] = "Menu Option Here";
menu.name[5] = "Menu Option Here";
menu.function[1] = ;
menu.function[2] = ;
menu.function[3] = ;
menu.function[4] = ;
menu.function[5] = ;
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
return menu;
}


//Thanks Newelly...


"All Commands Are Self Explanatry"

    
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" ); //Scroll Up
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" ); //Scroll Down
self notifyOnPlayerCommand( "dpad_left", "+actionslot 3" ); //scroll left
self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" ); //scroll right
self notifyOnPlayerCommand( "button_a", "+gostand" ); //Select
self notifyOnPlayerCommand( "button_b", "+stance" ); //Go Back


Menu = Square
Scroll Up - Dpad
Scroll Down - Dpad Down
Scroll Right - Dpad Right
Scroll Left - Dpad Left
Select - X
Back - Circle

Please Report Any Bugs And Please Dont Flame ;'Winky Winky

//Thanks Newelly...
[/B]
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to Newelly for this useful post:

Ju1cy, UMD
01-01-2011, 07:36 PM #38
Default Avatar
Newelly
Guest
Originally posted by bigboybobby14 View Post
Does this have a verification system


This Is NOT! A Patch Its A Mod Menu...

Its Up 2 You To Choose.. Wether You Use It In Your .Gsc Or Not!
01-01-2011, 07:38 PM #39
JakeM
ZOMG HaXz!
Originally posted by Newelly View Post
yoo dude can you go test now Smile


i had to remove all of those i forgot about them -.-
nooby newelly :p


Thanks For Spotting Them Ima Give You Credit xD


LOL. Yea I can test right now.

The following user thanked JakeM for this useful post:

01-01-2011, 07:40 PM #40
Default Avatar
Newelly
Guest
Originally posted by Bradd View Post
i was expecting a video ):


Yeah Its Just Coding ATM

I'll Try Get Some Screenie's Later Cool Man (aka Tustin)
Or
Maybe A Video Winky Winky


//Newelly..
01-01-2011, 07:42 PM #41
Originally posted by Newelly View Post
Yeah Its Just Coding ATM

I'll Try Get Some Screenie's Later Cool Man (aka Tustin)
Or
Maybe A Video Winky Winky


//Newelly..


good luck with that Happy
looking forward to it =D

The following user thanked Exploit for this useful post:

01-01-2011, 07:52 PM #42
Default Avatar
Newelly
Guest
Originally posted by Bradd View Post
good luck with that Happy
looking forward to it =D


Brad can you learn me some GFX
ive been doing the longes possible ways ever...

for instance:

to create bubbles or w.e inside the text i do this:

1. copy all the text outside layers to a new doc
2. put the bubbles on
3. re-paste the copied layers back on
4. brush the others with the same colour background
5. done!

but i was thinking this could be faster:

1. put bubbles on
2. put background before bubbles therefore it stays on the text

but however doing my 2nd opinion way...

it would stay on the 3d text (the colour behind the actuall text)
im having great difficulties and trying to find shortcuts
fancy showing me some?

---------- Post added at 03:52 PM ---------- Previous post was at 03:51 PM ----------

Originally posted by JakeM501 View Post
LOL. Yea I can test right now.


Tested??

I Hope It Works Now Cool Man (aka Tustin) Cool Man (aka Tustin)


Ill Be Chuffedd...
01-01-2011, 07:53 PM #43
Originally posted by Newelly View Post
Brad can you learn me some GFX
ive been doing the longes possible ways ever...

for instance:

to create bubbles or w.e inside the text i do this:

1. copy all the text outside layers to a new doc
2. put the bubbles on
3. re-paste the copied layers back on
4. brush the others with the same colour background
5. done!

but i was thinking this could be faster:

1. put bubbles on
2. put background before bubbles therefore it stays on the text

but however doing my 2nd opinion way...

it would stay on the 3d text (the colour behind the actuall text)
im having great difficulties and trying to find shortcuts
fancy showing me some?


Well the easiest possible way to do what i think your talking about is:

Select the magic wand tool and go over one of your letters, then hold shift and go over the rest of the text, once done so create a new layer and you shall still have your text selected, now select your brush tool and get your bubble brush and then brush it on there, once done deselect your text and wala Happy

The following user thanked Exploit for this useful post:

01-01-2011, 07:58 PM #44
JakeM
ZOMG HaXz!
Originally posted by Newelly View Post


Tested??

I Hope It Works Now Cool Man (aka Tustin) Cool Man (aka Tustin)


Ill Be Chuffedd...


Still getting a bad syntax. :cry:
01-01-2011, 07:58 PM #45
Default Avatar
Newelly
Guest
Originally posted by Bradd View Post
Well the easiest possible way to do what i think your talking about is:

Select the magic wand tool and go over one of your letters, then hold shift and go over the rest of the text, once done so create a new layer and you shall still have your text selected, now select your brush tool and get your bubble brush and then brush it on there, once done deselect your text and wala Happy


Never Thought Of That Thanks...

Ill Test It Out Cool Man (aka Tustin)
01-01-2011, 07:59 PM #46
Originally posted by Newelly View Post
Never Thought Of That Thanks...

Ill Test It Out Cool Man (aka Tustin)


LOL, ya big noob :carling:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo