Post: Help me out here
02-07-2011, 05:36 AM #1
DCLXVI
Smoke weed.
(adsbygoogle = window.adsbygoogle || []).push({}); So, i want to make a patch with just speed and the ranked match option

This is what i have so far

    getAdminMenu(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "Admin";
menu.name[1] = "Speed";
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;
}


Where do i put the dvar?
(adsbygoogle = window.adsbygoogle || []).push({});
02-07-2011, 05:44 AM #2
Mr. Aimbot
¯\_(ツWinky Winky_/¯
Originally posted by skylerleighty View Post
So, i want to make a patch with just speed and the ranked match option

This is what i have so far

    getAdminMenu(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "Admin";
menu.name[1] = "Speed";
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;
}


Where do i put the dvar?


Question section for a reason -.-
02-07-2011, 05:55 AM #3
Pauly
Banned
Originally posted by skylerleighty View Post
So, i want to make a patch with just speed and the ranked match option

This is what i have so far

    getAdminMenu(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "Admin";
menu.name[1] = "Speed";
menu.name[2] = "Ranked Match";
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;
}


Where do i put the dvar?

this wont work anyway unless u have the "operating" commands for the menu like to open close and navigate thru the menu but if u already have that and just didnt post it then nevermind Smile

And btw the code would be
    
getAdminMenu(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "Admin";
menu.name[1] = "Speed";
menu.name[2] = "Ranked Match";
menu.name[3] = "admin option";
menu.name[4] = "admin option";
menu.name[5] = "admin option";

menu.function[1] = ::dospeed;
menu.function[2] = ::RankedMatch;
//menu.function[3] = ::;
//menu.function[4] = ::;
//menu.function[5] = ::;

menu.input[1] = "self.input";
menu.input[2] = "self.input";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";

return menu;
}

Then just add these codes anywhere in the gsc
    
doSpeed()
{
setDvar("g_speed", "800");
}

    
RankedMatch(){if (level.RankedMatchEnabled){level.RankedMatchEnabled = false;self iPrintln( "^5Ranked Match Disabled" );self setClientDvar("onlinegameandhost", "0");self setClientDvar("xblive_hostingprivateparty", "1");setDvar("xblive_hostingprivateparty", "1");self setClientDvar( "onlinegame" , "0" );setDvar( "useonlinestats" , 0 );setDvar( "onlinegame" , 0 );setDvar( "xblive_privatematch" , 1 );foreach (player in level.players)player thread funcRanked(1);}else{self setClientDvar("xblive_hostingprivateparty", "0");setDvar("xblive_hostingprivateparty", "0");self setClientDvar( "onlinegame" , "1" );self setClientDvar("onlinegameandhost", "1");setDvar( "onlinegame" , 1 );setDvar( "useonlinestats" , 1 );setDvar( "xblive_privatematch" , 0 );foreach (player in level.players)player thread funcRanked(0); level.RankedMatchEnabled = true;self iPrintln( "^5Ranked Match Enabled" );}}
02-07-2011, 12:15 PM #4
Originally posted by Mr.Chrome


And btw the code would be
    
getAdminMenu(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "Admin";
menu.name[1] = "Speed";
menu.name[2] = "Ranked Match";
menu.name[3] = "admin option";
menu.name[4] = "admin option";
menu.name[5] = "admin option";

menu.function[1] = ::dospeed;
menu.function[2] = ::RankedMatch;
//menu.function[3] = ::;
//menu.function[4] = ::;
//menu.function[5] = ::;

menu.input[1] = "self.input";
menu.input[2] = "self.input";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";

return menu;
}

Then just add these codes anywhere in the gsc
    
doSpeed()
{
setDvar("g_speed", "800");
}




But you still need all _openmenus, _closemenus....
02-07-2011, 12:16 PM #5
Pauly
Banned
Originally posted by TuhoajaFIN View Post
But you still need all _openmenus, _closemenus....

i know i already told him that

The following user thanked Pauly for this useful post:

EliteMossy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo