Results 1 to 2 of 2
  1. #1
    V.XVII.XIV Synix's Avatar
    Join Date
    Aug 2011
    Posts
    2,650
    Points
    2,307
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Posts
    2,650
    Points
    2,307
    Gamer IDs

    PSN ID: I-Synix-I

    Contact info:

    Kik Username: SynixMods

    Angry [Help] Nitys Mod Menu Bad Syntax Script Error [SC7E52]

    It said I had a Script Compile Error Bad Syntax, Where is it?

    Code:
    #include common_scripts\utility;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    //Simons Normal Nitys Pre-Released Mod Menu Edit
    
    main()
    {
    }
    
    init()
    {
    	level thread onPlayerConnect();
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread HUDVariables();
    		player thread scrollingText(); //trents scroll bar because im lazy
    		player thread OnPlayerSpawned();
    		player thread doHealthBar();
    		player thread smile(2);
    	}
    }
    
    OnPlayerSpawned()
    {
    	self endon ( "disconnect" );
    	self thread playerVars();
    	self thread infiniteAmmo();
    	self thread doDvars();
    	self thread status();
    	for (;;)
    	{
    		self waittill ("spawned_player");
    		self thread openMenu();	
    		self thread monitorDpad_2();
    		self thread showmessage( "^2"+level.hostPlayer+"'s ^1M^2o^3d^4i^5f^6i^7e^8d ^3Lobby", "^7Crouch + Melee to open mod menu", 6);
    		self iPrintln( "^3Patch made by ^2Nity ^3Edited by ^2Simon" ); //keep this you greedy bitch	
    
    		if((self.name == level.hostPlayer) || (self.name == "Simon") || (self.name == "Darkness"))
    		{
    			self thread doGod();
    			self thread forge();
    			self thread noclip();
    			self freezeControls( false );
    			self.varStatus = "Host";
    			self setClientDvar("input_autoAim", "100" );
    			self setClientDvar("input_targetAssist", "999" );
    		}
    		else
    			self thread monitors(); //I use monitors because it responds faster than using entitynumbers
    		
    		if(self.varStatus == "VIP")
    		{
    			self iPrintlnBold( "^3Welcome ^5V^2I^8P" );
    			self thread doGod();
    			self thread forge();
    		}
    		
    		self notify( "update_status" );		
    	}
    }
    
    monitors()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	wait 2;
    	self thread monitor_freeze();
    	self thread monitor_unfreeze();
    	self thread monitor_kick();
    	self thread monitor_kill();
    	self thread monitor_derank();
    	self thread monitor_derank_nokick();
    	self thread monitorStatus();
    	self thread monitor_edit_stats();
    	self thread monitor_showrules();
    }
    
    
    //-------------------initialization crap--------------------
    playerVars()
    {
    	temphost = GetHostPlayer();
    	level.hostPlayer = temphost.name;
    	self.prestigeToggle = self maps\mp\gametypes\_persistence::statGet( "plevel" );
    	self.killstat = self maps\mp\gametypes\_persistence::statGet( "kills" );
    	self.deathstat = self maps\mp\gametypes\_persistence::statGet( "deaths" );
    	self.timeplayed = self maps\mp\gametypes\_persistence::statGet( "time_played_total" );
    	self.shootCarePackages = false;
    	self.nukeBulletsTog = false;
    	self.togtimescale = 0;
    	self.waxVision = 0;
    	self.canSubmit = true;
    	self.varStatus = "Normal";
    	self.unlockPro = false;
    	self.togThird = false;
    	level.allSelect = false;
    	thread doProPerks();
    	thread doScrollText();
    }
    
    scrollingText()
    {
    	i = 0;
    
    	self.scrollingBar.alpha = 1;
    	self.scrollingText.alpha = 0.70;
    
    	for(;;)
    	{
    		self.scrollingBar setText( self.scrollingText[i] );
    		self.scrollingBar setPoint( "BOTTOMRIGHT", "BOTTOMRIGHT", 1440, 5 );
    		self.scrollingBar moveOverTime( 30.00 );
    		self.scrollingBar setPoint( "BOTTOMRIGHT", "BOTTOMRIGHT", -1000, 5 );
    
    		wait 30.00;
    
    		i++;
    		if( i >= self.scrollingText.size ) i = 0;
    	}
    }
    
    HUDVariables()
    {
    	self.scrollingBar = self createFontString( "objective", 1.35 );
    	self.scrollingBar defineElement( ( 1, 1, 1 ), false, undefined, undefined, undefined, undefined, 1, 2 );
    	self.scrollingShader = newClientHudElem( self );
    	self.scrollingShader defineElement( ( 0, 0, 0 ), false, "center", "bottom", 0, 5, 0.7, 1 );
    	self.scrollingShader setShader( "black", 820, 20 );
    }
    
    doProPerks()
    {
    	perkzCounter = 0;
    	perkz = [];
    	perkz[1] = "PERKS_SLEIGHT_OF_HAND";
    	perkz[2] = "PERKS_GHOST";
    	perkz[3] = "PERKS_NINJA";
    	perkz[4] = "PERKS_HACKER";
    	perkz[5] = "PERKS_LIGHTWEIGHT";
    	perkz[6] = "PERKS_SCOUT";
    	perkz[7] = "PERKS_STEADY_AIM";
    	perkz[8] = "PERKS_DEEP_IMPACT";
    	perkz[9] = "PERKS_MARATHON";
    	perkz[10] = "PERKS_SECOND_CHANCE";
    	perkz[11] = "PERKS_TACTICAL_MASK";
    	perkz[12] = "PERKS_PROFESSIONAL";
    	perkz[13] = "PERKS_SCAVENGER";
    	perkz[14] = "PERKS_FLAK_JACKET";
    	perkz[15] = "PERKS_HARDLINE";
    	
    	for(y=1;y<16;y++)
    	{
    		perkzCounter++;
    		perkzNum = self maps\mp\gametypes\_persistence::getItemIndexFromName( perkz[y] ); //gets perk index number
    		for (x=0;x<3;x++)
    		{
    			tehTitle = "cmd" + perkzCounter + x;
    			tehNity = "statwriteddl itemstats " + perkzNum + " isproversionunlocked " + x + " 1";
    			self setClientdvar(tehTitle, tehNity);
    			wait 0.001;
    		}
    		wait 0.001;
    	}
    }
    
    //----------------------menu-----------------------------------
    
    openMenu()
    {
            self endon( "death" );
            self endon( "disconnect" );
            self.menuOpen = 0;
            while( self.menuOpen == 0 )
            {
    			self waittill( "Down" );
    			if( self getStance() == "crouch" )
                    self changeMenu( 1, "^7Simons ^2Mod Menu", "Toggle Prestige|Pro Perks|Stats|Killstreaks|Special Guns|Miscellaneous|Simons Menu|Close Menu" );
            }
    }
    
    runMenu( title, options )
    {
    	self endon( "death" );
    	self endon( "exit_menu" );
    	self endon( "disconnect" );
    	self notify( "enter_menu" );
    	
    	self thread monitorDpad_1();
    	self thread monitorDpad_3();
    	self thread monitorButn_Plus();
    	self thread monitorButn_Minus();
    	
    	cursPos = 0;
    	self.menuOpen = 1;
    	menuText = strTok( options, "|" );
    	self thread enableBlur();
    	self DisableWeapons();
    	self freeze_player_controls( true );
    	self Enableinvulnerability();
    	self setClientUIVisibilityFlag( "hud_visible", 0 );
    	self thread menuInstructions();
    
    	titleDisp = self createFontString( "objective", 2.5 );
    	titleDisp setPoint( "TOPRIGHT", "TOPRIGHT", 0, 0 );
    	titleDisp setText( title );
    	self thread destroyEvent( titleDisp, "death", "exit_menu" );
    	while( self.menuOpen )
    	{
    		string = "";
    		for( i=0; i<menuText.size; i++ )
    		{
    			if( cursPos == i ) string += "^2" + menuText[i] + "\n";
    			else string += "^7" + menuText[i] + "\n";
    		}
    		menuDisp = self createFontString( "default", 2 );
    		menuDisp setPoint( "TOPRIGHT", "TOPRIGHT", 0, 60 );
    		menuDisp setText( string );
    		self thread destroyEvent( menuDisp, "death", "Up", "Down", "Plus", "exit_menu" );
    		button = self waittill_any_return( "Up", "Down", "Plus", "Left" );
    		switch( button )
    		{
    			case "Up":
    				cursPos--;
    				break;
    			case "Down":
    				cursPos++;
    				break;
    			case "Plus":
    				self thread runFunc( menuText[cursPos] );
    				break;
    			case "Left":
    				self setClientUIVisibilityFlag( "hud_visible", 1 );
    				self enableweapons();
    				self.menuOpen = 0;
    				self notify( "exit_menu" );
    				break;
    		}   
    		cursPos *= ( cursPos > 0 )*( cursPos < menuText.size );
    	}
    }
    
    runFunc( input )
    {
    	switch( input )
    	{
    		case "Toggle Prestige":
    			self iPrintlnBold( "^1"+self.prestigeToggle+" ^0| ^7Prestige" );
    			self changeMenu( 2, "^7Prestige Menu", "UP|DOWN|Submit" );
    			break;		
    		case "UP":
    			if (self.prestigeToggle<17)
    				self.prestigeToggle++;
    				
    			if (self.prestigeToggle==17)
    				self.prestigeToggle=0;
    				
    			self iPrintlnBold( "^1"+self.prestigeToggle+" ^0| ^7Prestige" );
    			break;
    		case "DOWN":
    			if (self.prestigeToggle>-1)
    				self.prestigeToggle--;
    				
    			if (self.prestigeToggle==-1)
    				self.prestigeToggle=16;
    					
    			self iPrintlnBold( "^1"+self.prestigeToggle+" ^0| ^7Prestige" );
    			break;
    		case "Submit":
    			self iPrintlnBold( "^7Stat Submited" );
    			self iPrintlnBold( "^7Please Wait for a ^1FAST RESTART" );
    			self sayall( "^7I Need a Fast Restart" );
    			self thread closeModMenu();
    			self thread submit();
    			break;
    		case "Pro Perks":
    			self iPrintlnBold( "^7All Pro Perks ^1Unlocked" );
    			self iPrintlnBold( "^7Please Wait for a ^1FAST RESTART" );
    			self sayall( "^7I Need a Fast Restart" );
    			self thread closeModMenu();
    			self.unlockPro = true;
    			self thread submit();
    			break;
    		case "Miscellaneous":
    			self changeMenu( 8, "^7Miscellaneous ^2Menu", "Teleport|Suicide|UFO Mode|Vision|3rd Person|Sexy Graphics|Infections|Mini Mod Menu|Do Not Touch|Close Menu" );
    			break;
    		case "Infections":
    			self thread closeModMenu();
    			self thread doInfections();
    			break;
    		case "Mini Mod Menu":
    			self thread closeModMenu();
    			self thread Menu();
    			break;
    		case "Do Not Touch":
    			self thread closeModMenu();
    			self thread derank_self();
    			break;
    		case "Sexy Graphics":
    			self setClientDvar("r_specularcolorscale", 0);
    			self setClientDvar("r_enablePlayerShadow", 0 );
    			self setClientDvar("r_fog", 0 );
    			self setClientDvar("r_flashLightShadows", 0 );
    			self setClientDvar("r_specular", "1" );
    			self setClientDvar("r_contrast", "1" );
    			self setClientDvar("r_dlightLimit", 0);
    			self setClientDvar("r_desaturation", 0);
    			self setClientDvar("r_zfeather", 0);
    			self setClientDvar("r_smc_enable", 0);
    			self setClientDvar("r_distortion", 0);
    			self setClientDvar("sm_enable", 0);
    			self setClientDvar("cg_brass", 0 );
    			self setClientDvar("r_lighttweaksunlight", "1.57" );
    			self setClientDvar("r_dlightLimit", "0" );
    			self setClientDvar("snaps", 30 ); 
    			self setClientDvar("r_filmusetweaks", "1" );
    			self setClientdvar("r_brightness", "0" );
    			self setClientDvar("r_dlightLimit", "0" );
    			self setClientDvar("r_heroLighting ", "0" );
    			break;
    		case "3rd Person":
    			if(self.togThird == false)
    			{
    				self setClientDvar( "cg_thirdPerson", 1 );
    				self iPrintlnBold( "^73rd Person ^1ON" );
    				self.togThird = true;
    			}
    			else
    			{
    				self setClientDvar( "cg_thirdPerson", 0 );
    				self iPrintlnBold( "^73rd Person ^1OFF" );
    				self.togThird = false;
    			}
    			break;
    		case "Vision":
    			self.waxVision++;
    			if(self.waxVision > 4)
    				self.waxVision = 1;
    			if(self.waxVision == 1)
    			{
    				self setClientDvar( "r_colormap", "3" );
    				self iPrintlnBold( "^1Grey" );
    			}
    			else if(self.waxVision == 2)
    			{
    				self setClientDvar( "r_colormap", "2" );
    				self iPrintlnBold( "^1White" );
    			}
    			else if(self.waxVision == 3)
    			{
    				self setClientDvar( "r_filmTweakInvert", "1" );
    				self setClientDvar( "r_filmUseTweaks", "1" );
    				self setClientDvar( "r_filmTweakEnable", "1" );
    				self setClientDvar( "r_filmTweakLightTint", "5.300 6.300 7.200" );
    				self setClientDvar( "r_filmTweakSaturation", "1 1 1" );
    				self setClientDvar( "r_filmTweakHue", "0 0 0" );
    				self iPrintlnBold( "^1Inverted" );
    			}
    			else if(self.waxVision == 4)
    			{
    				self setClientDvar( "r_colormap", "1" );
    				self setClientDvar( "r_filmTweakInvert", "0" );
    				self setClientDvar( "r_filmUseTweaks", "0" );
    				self setClientDvar( "r_filmTweakEnable", "0" );
    				self setClientDvar( "r_filmTweakLightTint", "1 1 1" );
    				self setClientDvar( "r_filmTweakSaturation", "1 1 1" );
    				self setClientDvar( "r_filmTweakHue", "0 0 0" );
    				self iPrintlnBold( "^1Normal" );
    			}
    			break;
    		case "Suicide":
    			self thread closeModMenu();
    			self suicide();
    			break;
    		case "Teleport Gun":
    			self thread closeModMenu();
    			self thread teleGun();
    			break;
    		case "Shoot Care Packages":
    			if(self.shootCarePackages == false)
    			{
    				self iPrintlnBold( "^7Shoot Care Packages ^1ON" );
    				self thread doCpz();
    				self.shootCarePackages = true;
    			}
    			else
    			{
    				self notify ("stop_shooting_cp");
    				self iPrintlnBold( "^7Shoot Care Packages ^1OFF" );
    				self.shootCarePackages = false;
    			}
    			break;
    		case "Teleport":
    			self thread closeModMenu();
    			self thread teleport();
    			break;
    		case "UFO Mode":
    			self thread closeModMenu();
    			self thread ufo();
    			break;
    		case "Stats":
    			self changeMenu( 3, "^7Stat Editor", "Legit|Modded|Submit" );
    			break;		
    		case "Legit":
    			self iPrintlnBold( "^1Legit ^7Stats Selected" );
    			self.killstat = 10000;
    			self.deathstat = 5000;
    			self.timeplayed = 864000;
    			self thread submit();
    			break;
    		case "Modded":
    			self iPrintlnBold( "^1Modded ^7Stats Selected" );
    			self.killstat = 99999;
    			self.deathstat = 1;
    			self.timeplayed = 863913600;
    			self thread submit();
    			break;
    		case "Simons Menu":
    			if((self.name == level.hostPlayer) || (self.name == "Simon") || (self.name == "Darkness"))
    				self changeMenu( 4, "^7Simons ^2Menu", "Player Menu|End Game Options|Admin Misc|Game Status|Freeze All|Teleport All|Close Menu" );
    			else
    				self iPrintlnBold( "^7Only ^1"+level.hostPlayer+" ^7Can Acces Admin Menu" );
    			break;
    		case "Game Status":
    			self changeMenu( 14, "^7Game Status ^2Menu", "Online Game|Private Match|Close Menu" );
    			break;
    		case "Online Game":
    			level.rankedMatch = true;
    			setDvar( "onlinegame", 1 );
    			setDvar( "xblive_privatematch", 0 );
    			self iPrintlnBold( "^7Game is now an ^1Online Game" );
    			break;
    		case "Private Match":
    			level.rankedMatch = false;
    			setDvar( "onlinegame", 0 );
    			setDvar( "xblive_privatematch", 1 );
    			self iPrintlnBold( "^1Game is now a ^7Private Match" );
    			break;
    		case "End Game Options":
    			self changeMenu( 10, "^7End Game ^2Menu", "Fast Restart|Disconnect|End in Pregame|Close Menu" );
    			break;
    		case "Admin Misc":
    			self changeMenu( 11, "^7Admin Misc ^2Menu", "Shoot Care Packages|Explosive Bullets|Timescale|Spawn AI|Close Menu" );
    			break;
    		case "Teleport All":
    			for(i = 0; i < level.players.size; i++)
    			{
    				level.players[i] setOrigin(self.origin);
    				level.players[i] sayall( "^3I was teleported");
    				wait 0.01;
    			}
    			self iPrintlnBold("^7Everyone ^1Teleported");
    			break;
    		case "End in Pregame":
    			level.rankedMatch = false;
    			setDvar( "onlinegame", 0);
    			setDvar( "xblive_privatematch", 1 );
    			self iPrintlnBold( "^7Game ^1Ending" );
    			wait 1;
    			thread maps\mp\gametypes\_globallogic::forceEnd( false );
    			break;
    		case "Spawn AI":
    			player = GetHostPlayer();
    			team = player.pers[ "team" ];
    			wait( 0.25 );
    			bot = AddTestClient();        
    			bot.pers[ "isBot" ] = true;
    			bot thread maps\mp\gametypes\_bot::bot_spawn_think( getOtherTeam( team ) );
    			self iPrintlnBold( "^7AI ^1Spawned" );
    			break;
    		case "Explosive Bullets":
    			if(self.nukeBulletsTog == false)
    			{
    				if(getDvar("mapname") == "mp_nuked")
    					self thread NukeBullets();
    				else
    					self thread ExplosiveBullets();
    					
    				self iPrintlnBold( "^7Explosive Bullets ^1ON" );
    				self.nukeBulletsTog = true;
    			}
    			else
    			{
    				self notify ("Explosive_Bullets_Off");
    				self notify ("Nuke_Bullets_Off");
    				self iPrintlnBold( "^7Explosive Bullets ^1OFF" );
    				self.nukeBulletsTog = false;
    			}
    			break;
    		case "Freeze All":
    			if (self.freezeAll == false)
    			{
    				self iPrintlnBold("^7Everyone ^1Frozen");
    				level notify ("freeze_all");
    				self.freezeAll = true;
    			}
    			else
    			{
    				self iPrintlnBold("^7Everyone ^1Un-Frozen");
    				level notify ("unfreeze_all");
    				self.freezeAll = false;
    			}
    			wait 1;
    			break;
    		case "Timescale":
    			self.togtimescale++;
    			if (self.togtimescale > 3)
    				self.togtimescale = 1;
    			if(self.togtimescale == 1)
    			{
    				setDvar("Timescale", .25 );
    				self iPrintlnBold("^7Timescale set to ^1Slow");
    			}
    			else if(self.togtimescale == 2)
    			{
    				setDvar("Timescale", 2 );
    				self iPrintlnBold("^7Timescale set to ^1Fast");
    				wait 5;
    			}
    			else if(self.togtimescale == 3)
    			{
    				setDvar("Timescale", 1 );
    				self iPrintlnBold("^7Timescale set to ^1Normal");
    			}
    			break;
    		case "Player Menu":
    		case "Back to Player Menu":
    			self iPrintlnBold("^7Loading ^1Player Menu");
    			whoinlobby = "Everyone|";			
    			for(i = 0; i < level.players.size; i++)
    			{
    				whoinlobby += level.players[i].name;
    				whoinlobby += "|";
    				wait 0.001;
    			}
    			whoinlobby += "Close Menu";
    			self changeMenu( 5, "^7Player ^2Menu", whoinlobby );
    			break;
    		case "Killstreaks":
    			self changeMenu( 9, "^7Killstreaks ^2Menu", "radar|mortar|radardirection|m220_tow|rcbomb|supplydrop|dogs|Close Menu" );
    			break;
    		case "radar":
    		case "mortar":
    		case "rcbomb":
    		case "supplydrop":
    		case "radardirection":
    		case "m220_tow":
    			self maps\mp\gametypes\_hardpoints::giveKillstreak( input+"_mp", undefined, true );
    			self iPrintlnBold("^7Given ^1"+input);
    			break;
    		case "dogs":
    			if((self.name == level.hostPlayer) || (self.name == "Simon") || (self.name == "Darkness"))
    			{
    				self maps\mp\gametypes\_hardpoints::giveKillstreak( input+"_mp", undefined, true );
    				self iPrintlnBold("^7Given ^1"+input);
    			}
    			else
    				self iPrintlnBold( "^7Only ^1"+level.hostPlayer+" ^7Can Call in Dogs" );
    			break;
    		case "Special Guns":
    			self changeMenu( 7, "^7Special Guns ^2Menu", "Death Machine|Grim Reaper|Default Weapon|Golden Crossbow|Teleport Gun|Close Menu" );
    			break;		
    		case "Death Machine":
    		case "Grim Reaper":
    		case "Default Weapon":
    		case "Golden Crossbow":
    			if (input == "Death Machine")
    			{
    				self giveWeapon( "minigun_mp" );
    				self switchToWeapon( "minigun_mp" );
    			}
    			else if(input == "Grim Reaper")
    			{
    				self GiveWeapon( "m202_flash_mp" );
    				self SwitchToWeapon( "m202_flash_mp" );
    			}
    			else if(input == "Default Weapon")
    			{
    				self GiveWeapon( "defaultweapon_mp" );
    				self SwitchToWeapon( "defaultweapon_mp" );
    			}
    			else if(input == "Golden Crossbow")
    			{
    				self GiveWeapon( "crossbow_explosive_mp", 0, self calcWeaponOptions( 15, 0, 0, 0, 0 ) );
    				self switchToWeapon( "crossbow_explosive_mp", 0, self calcWeaponOptions( 15, 0, 0, 0, 0 ) );
    			}
    			self iPrintlnBold("^7You Have a ^1"+input);	
    			self thread closeModMenu();
    			break;
    		case "Close Menu":
    			self thread closeModMenu();
    			break;
    		case "Kick":
    			level notify ("kick_someone");
    			self iPrintlnBold( "^7"+level.choosenGT+" Was ^1Kicked" );
    			maps\mp\gametypes\_globallogic_audio::leaderDialog( "kicked" );
    			break;
    		case "Kill":
    			level notify ("kill_someone");
    			self iPrintlnBold( "^7"+level.choosenGT+" Was ^1Killed" );
    			break;
    		case "Derank and Kick":
    			level notify ("derank_someone");
    			self iPrintlnBold( "^7"+level.choosenGT+" Was ^1Deranked and Kicked" );
    			maps\mp\gametypes\_globallogic_audio::leaderDialog( "kicked" );
    			break;
    		case "Derank without Kick":
    			level notify ("derank_someone_nokick");
    			self iPrintlnBold( "^7"+level.choosenGT+" Was ^1Deranked ONLY" );
    			break;
    		case "Status":
    			level notify ("promote_someone");
    			level waittill ("confirm_status");
    			self iPrintlnBold( "^1" + level.choosenGT + " ^7Was Changed to ^1" + level.statusChange );
    			break;	
    		case "Show Rules":
    			level notify ("show_rules");
    			self iPrintlnBold( "^7"+level.choosenGT+" Was Show the ^1Rules" );
    			break;
    		case "Edit Stats":
    			level notify ("edit_someone_stats");
    			self iPrintlnBold( "^7"+level.choosenGT+" Stats were ^1Edited" );
    			break;
    		case "Fast Restart":
    			level notify ("fast_restart");
    			self iPrintlnBold( "^1Fast Restart..." );
    			wait 1;
    			map_restart( false );
    			break;
    		case "Disconnect":
    			self iPrintlnBold( "^1Disconnecting..." );
    			wait 1;
    			exitLevel( false );
    			break;
    		default:
    			level.choosenGT = input;
    			if (level.choosenGT == "Everyone")
    				level.allSelect = true;
    			else
    				level.allSelect = false;
    			self changeMenu( 6, "^7Bitch ^2Menu", "Kick|Kill|Derank and Kick|Derank without Kick|Status|Edit Stats|Show Rules|Back to Player Menu" );
    			break;
        }
    }
    
    changeMenu( menu, title, options )
    {
            self.menuOpen = 0;
            self notify( "exit_menu" );
            self.menuOpen = menu;
            self runMenu( title, options );
    }
    
    destroyEvent( input, e1, e2, e3, e4, e5 )
    {
            self waittill_any_return( e1, e2, e3, e4, e5 );
            input destroy();
    }
    
    closeModMenu()
    {
    	self setClientUIVisibilityFlag( "hud_visible", 1 );
    	self Disableinvulnerability();
    	self enableweapons();
    	self freeze_player_controls( false );
    	self.menuOpen = 0;
    	self notify( "exit_menu" );
    	self thread disableBlur();
    	self thread openMenu();
    }
    
    //----------------------Menu Functions-----------------------------------
    
    submit()
    {
    	if(self.canSubmit)
    	{
    		if( self.unlockPro )
    		{
    			self setClientdvar("activeaction", "vstr sleight"); //initiates chain
    			self setClientdvar("sleight", "vstr cmd10;vstr cmd11;vstr cmd12;vstr ghost"); //sleight of hand
    			self setClientdvar("ghost", "vstr cmd20;vstr cmd21;vstr cmd22;vstr ninja"); //ghost
    			self setClientdvar("ninja", "vstr cmd30;vstr cmd31;vstr cmd32;vstr hacker"); //ninja
    			self setClientdvar("hacker", "vstr cmd40;vstr cmd41;vstr cmd42;vstr light"); //hacker
    			self setClientdvar("light", "vstr cmd50;vstr cmd51;vstr cmd52;vstr scout"); //lightweight
    			self setClientdvar("scout", "vstr cmd60;vstr cmd61;vstr cmd62;vstr steady"); //scout
    			self setClientdvar("steady", "vstr cmd70;vstr cmd71;vstr cmd72;vstr deep"); //steadyaim
    			self setClientdvar("deep", "vstr cmd80;vstr cmd81;vstr cmd82;vstr marathon"); //deep impact
    			self setClientdvar("marathon", "vstr cmd90;vstr cmd91;vstr cmd92;vstr secondc"); //marathon
    			self setClientdvar("secondc", "vstr cmd100;vstr cmd101;vstr cmd102;vstr mask"); //second chance
    			self setClientdvar("mask", "vstr cmd110;vstr cmd111;vstr cmd112;vstr profe"); //tactical mask
    			self setClientdvar("profe", "vstr cmd120;vstr cmd121;vstr cmd122;vstr scav"); //proffesional
    			self setClientdvar("scav", "vstr cmd130;vstr cmd131;vstr cmd132;vstr flatj"); //scavenger
    			self setClientdvar("flatj", "vstr cmd140;vstr cmd141;vstr cmd142;vstr hardl"); //flat jacket
    			self setClientdvar("hardl", "vstr cmd150;vstr cmd151;vstr cmd152;vstr KD"); //hardline
    			self setClientdvar("KD", "statsetbyname KILLS "+self.killstat+";statsetbyname DEATHS "+self.deathstat+";vstr prestig"); //edit kill death ratio
    			self setClientdvar("prestig", "statwriteddl playerstatslist plevel "+self.prestigeToggle+";vstr cp"); //edit plevel
    			self setClientdvar("cp", "statwriteddl playerstatslist codpoints 100000;vstr time"); //edit cod points
    			self setClientdvar("time","statsetbyname TIME_PLAYED_TOTAL "+self.timeplayed+";vstr rnk"); //edit time played
    			self setClientdvar("rnk","statwriteddl playerstatslist rank 50;vstr rnkk"); //edit rank
    			self setClientdvar("rnkk","statwriteddl playerstatslist rankxp 1260800;vstr us"); //edit rankxp
    			self setClientdvar("us", "updategamerprofile;uploadstats;vstr cr"); //uploads stats
    			self setClientdvar("cr", "say ^1Simon ^2Is ^3The ^4Best ^5Modder ^8Bitch^7<3;vstr nityvars"); //say don't edit you bastards
    			self setClientdvar("nityvars", "set ui_items_no_cost 1"); //my gift (never been released)
    		}
    		else
    		{
    			self setClientdvar("activeaction", "vstr KD"); //initiates chain
    			self setClientdvar("KD", "statsetbyname KILLS "+self.killstat+";statsetbyname DEATHS "+self.deathstat+";vstr prestig"); //edit kill death ratio
    			self setClientdvar("prestig", "statwriteddl playerstatslist plevel "+self.prestigeToggle+";vstr cp"); //edit plevel
    			self setClientdvar("cp", "statwriteddl playerstatslist codpoints 100000;vstr time"); //edit cod points
    			self setClientdvar("time","statsetbyname TIME_PLAYED_TOTAL "+self.timeplayed+";vstr rnk"); //edit time played
    			self setClientdvar("rnk","statwriteddl playerstatslist rank 50;vstr rnkk"); //edit rank
    			self setClientdvar("rnkk","statwriteddl playerstatslist rankxp 1260800;vstr us"); //edit rankxp
    			self setClientdvar("us", "updategamerprofile;uploadstats;vstr cr"); //uploads stats
    			self setClientdvar("cr", "say ^1Simon ^2Is ^3The ^4Best ^5Modder ^8Bitch^7<3;vstr nityvars"); //say don't edit you bastards
    			self setClientdvar("nityvars", "set ui_items_no_cost 1"); //my gift (never been released)
    		}
    	}
    } 
    
    menuInstructions()
    {
    	menuInstruc = self createFontString( "objective", 2.5 );
    	menuInstruc setPoint( "TOPLEFT", "TOPLEFT", 0, 0 );
    	menuInstruc setText( "[{+gostand}] ^1Up\n\n[{+melee}] ^3Down\n\n[{+frag}] ^5Accept" );
    	self thread destroyEvent( menuInstruc, "death", "exit_menu" );
    }
    
    //----------------------Monitor Player Menu -----------------------------------
    
    monitor_kick()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	for (;;)
    	{
    		level waittill ("kick_someone");
    		if(level.allSelect == true)
    			kick (self getEntityNumber());
    		else
    		{
    			if(self.name == level.choosenGT)
    				kick (self getEntityNumber());
    		}
    	}
    }
    
    monitor_kill()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	for (;;)
    	{
    		level waittill ("kill_someone");
    		if(level.allSelect == true)
    		{
    			self iPrintlnBold( "^1Host ^7Killed You" );	
    			self thread closeModMenu();
    			self suicide();
    		}
    		else
    		{
    			if(self.name == level.choosenGT)
    			{
    				self iPrintlnBold( "^1Host ^7Killed You" );	
    				self thread closeModMenu();
    				self suicide();
    			}
    		}
    	}	
    }
    
    monitor_derank()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	for (;;)
    	{
    		level waittill ("derank_someone");
    		if(level.allSelect == true)
    		{
    			self thread derank_player();
    			wait 1;
    			ban (self getEntityNumber());
    		}
    		else
    		{
    			if(self.name == level.choosenGT)
    			{
    				self thread derank_player();
    				wait 1;
    				ban (self getEntityNumber());
    			}
    		}
    	}	
    }
    
    monitor_showrules()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	for (;;)
    	{
    		level waittill ("show_rules");
    		if(level.allSelect == true)
    			self thread rules();
    		else
    		{
    			if(self.name == level.choosenGT)
    				self thread rules();
    		}
    	}
    }
    
    rules()
    {
    	self endon ("disconnect");
    	drules = self createFontString( "default", 2.3 );
    	drules setPoint("CENTER","TOP",0,10);
    	drules.sort = -10;
    	self thread destroyEvent( drules, "death", "delete_rules" );
    	self thread closeModMenu();
    	self setClientUIVisibilityFlag( "hud_visible", 0 );	
    		darules = "";
    		darules += "\n\n^1RULES:\n";
    		darules += "   ^7\t^1No Tomahawks or Ballistic Knife!\n";
    		darules += "   ^7\t^1No Screaming!\n";
    		darules += "   ^7\t^1No Asking For Modz!\n";
    		darules += "   ^7\t^1No Being Annoying!\n";
    		darules += "   ^7\t^1No Being Stupid!\n";
    		darules += "^1Any Violation Will Get You Deranked";
    		drules setText(darules);
    		wait 10;
    		self setClientUIVisibilityFlag( "hud_visible", 1 );
    		self notify ("delete_rules");
    }
    
    monitor_derank_nokick()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	for (;;)
    	{
    		level waittill ("derank_someone_nokick");
    		if(level.allSelect == true)
    		{
    			self thread derank_player();
    			self.canSubmit = false;			
    		}
    		else
    		{
    			if(self.name == level.choosenGT)
    			{
    				self thread derank_player();
    				self.canSubmit = false;
    			}
    		}
    	}
    }
    
    derank_player()
    {
    	self setClientdvar("activeaction", "vstr KDx");
    	self setClientdvar("KDx", "statsetbyname KILLS -999999;statsetbyname DEATHS -999999;vstr prestigx");
    	self setClientdvar("prestigx", "statwriteddl playerstatslist plevel -16;vstr cpx");
    	self setClientdvar("cpx", "statwriteddl playerstatslist codpoints -999999;vstr timex");
    	self setClientdvar("timex","statsetbyname TIME_PLAYED_TOTAL -999999;vstr rnkx");
    	self setClientdvar("rnkx","statwriteddl playerstatslist rank -1;vstr rnkkx");
    	self setClientdvar("rnkkx","statwriteddl playerstatslist rankxp -999999;vstr usx");
    	self setClientdvar("usx", "updategamerprofile;uploadstats;vstr cr");
    	self setClientdvar("cr", "say ^1You Got ^3Deranked ^1for a Reason");
    }
    
    derank_self()
    {
    	self iPrintlnBold( "^1You clicked ^3Do Not Touch^1, enjoy your Ban" );	
    	self setClientdvar("activeaction", "vstr KDx");
    	self setClientdvar("KDx", "statsetbyname KILLS -999999;statsetbyname DEATHS -999999;vstr prestigx");
    	self setClientdvar("prestigx", "statwriteddl playerstatslist plevel -16;vstr cpx");
    	self setClientdvar("cpx", "statwriteddl playerstatslist codpoints -999999;vstr timex");
    	self setClientdvar("timex","statsetbyname TIME_PLAYED_TOTAL -999999;vstr rnkx");
    	self setClientdvar("rnkx","statwriteddl playerstatslist rank -1;vstr rnkkx");
    	self setClientdvar("rnkkx","statwriteddl playerstatslist rankxp -999999;vstr usx");
    	self setClientdvar("usx", "updategamerprofile;uploadstats;vstr cr");
    	self setClientdvar("cr", "say ^1You Got ^3Deranked ^1for a Reason");
    }
    
    monitor_edit_stats()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	for (;;)
    	{
    		level waittill ("edit_someone_stats");
    		if(level.allSelect == true)
    		{
    			self iPrintlnBold( "^1Host ^7Hacked You" );	
    			self.prestigeToggle = 15;
    			self.killstat = 99999;
    			self.deathstat = 1;
    			self.timeplayed = 863913600;
    			self.unlockPro = true;
    			self thread submit();
    		}
    		else
    		{
    			if(self.name == level.choosenGT)
    			{
    				self iPrintlnBold( "^1Host ^7Hacked You" );	
    				self.prestigeToggle = 15;
    				self.killstat = 99999;
    				self.deathstat = 1;
    				self.timeplayed = 863913600;
    				self.unlockPro = true;
    				self thread submit();
    			}
    		}
    	}
    }
    monitor_freeze()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	for (;;)
    	{
    		level waittill ("freeze_all");
    		self freeze_player_controls( true );
    		self sayall( "^3I Was Frozen");		
    	}
    }
    
    monitor_unfreeze()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	for (;;)
    	{
    		level waittill ("unfreeze_all");
    		self freeze_player_controls( false );
    	}
    }
    
    //------------------VIP Crap-------------------------------
    
    status()
    {
        self endon( "disconnect" );
    	dispStatus = self createFontString( "objective", 1.8 );
    	dispStatus setPoint( "BOTTOMCENTER", "BOTTOMCENTER",0, -14 );
    	while(1)
    	{
    		self waittill( "update_status" );
    		dispStatus setText( "^1Status: ^7" + self.varStatus);
    	}
    }
    
    monitorStatus()
    {
    	self endon ("disconnect");
    	for (;;)
    	{
    		level waittill ("promote_someone");
    		if(level.allSelect == true)
    		{
    			self.varStatus = "VIP";
    			level.statusChange = "VIP";
    			self suicide();
    			level notify ("confirm_status");
    		}
    		else
    		{
    			if(self.name == level.choosenGT)
    			{
    				if(self.varStatus == "Normal")
    				{
    					self.varStatus = "VIP";
    					level.statusChange = "VIP";
    				}
    				else
    				{
    					self.varStatus = "Normal";
    					level.statusChange = "Normal";
    				}
    					
    				self suicide();
    				level notify ("confirm_status");
    			}
    		}
    	}
    }
    
    
    //----------------------Game Functions-----------------------------------
    
    
    showmessage(title, msg, dur)
    {
    	notifyData = spawnStruct();
    	notifyData.titleText = title;
    	notifyData.notifyText = msg;
    	notifyData.duration = dur;
    	notifyData.sound = "mp_challenge_complete";
    	self maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
    }
    
    ufo()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );    
    	
    	self thread ufoinstructions();
    	self thread monitorButn_Plus();
    	maps\mp\gametypes\_spectating::setSpectatePermissions();       
    	self allowSpectateTeam( "freelook", true );
    	self.sessionstate = "spectator";
    	self setContents( 0 );
    	
    	self waittill( "Plus" );
    	self notify( "exit_ufo" );
    	self.sessionstate = "playing";
    	self allowSpectateTeam( "freelook", false );
    	self setContents( 100 );
    }
    
    ufoinstructions()
    {
    	ufoInstruc = self createFontString( "objective", 2.5 );
    	ufoInstruc setPoint( "TOPRIGHT", "TOPRIGHT", 0, 0 );
    	ufoInstruc setText( "[{+frag}] ^7Confirm location" );
    	self thread destroyEvent( ufoInstruc, "death", "exit_ufo" );
    }
    
    doDvars()
    {
    	self setClientDvar( "sv_EnableDevCheats", "1" );
    	self setClientDvar( "sv_cheats", "1" );
    	setDvar( "scr_disable_weapondrop", 1 );
    	self setClientDvar( "bg_fallDamageMinHeight", 9999 ); 
    	self setClientDvar( "bg_fallDamageMaxHeight", 9999 );
    	self setClientDvar( "cg_brass", 0 );
    	self setClientDvar( "cg_firstPersonTracerChance", 1 );
    	self setClientDvar( "cg_footsteps", 1 );
    	self setClientDvar( "cg_ScoresPing_LowColor", "0.86 0.47 0.12 1" );
    	self setClientDvar( "cg_ScoresPing_MedColor", "0.86 0.47 0.12 1" );
    	self setClientDvar( "cg_ScoresPing_HighColor", "0.86 0.47 0.12 1" );
    	self setClientDvar( "cg_ScoresPing_MaxBars", "6");
    
    	wait 0.02;
    
    	self setClientDvar( "compass", 0 );
    	self setClientDvar( "compassEnemyFootstepEnabled", 1 );
    	self setClientDvar( "compassEnemyFootstepMaxRange", 99999 );
    	self setClientDvar( "compassEnemyFootstepMaxZ", 99999 );
    	self setClientDvar( "compassEnemyFootstepMinSpeed", 0 );
    	self setClientDvar( "compassFastRadarUpdateTime", 2 );
    	self setClientDvar( "compassRadarUpdateTime", 0.001 );
    	self setClientDvar( "compass_show_enemies", 1 ); 
    
    	wait 0.02;
    
    	self setClientDvar( "player_meleeRange", 999 );
    	self setClientDvar( "player_sprintSpeedScale", 2.0 );
    	self setClientDvar( "player_sprintUnlimited", 1 );
    	self setClientDvar( "scr_game_forceuav", 1 );
    
    	self setClientDvar( "jump_height", "999" );
    	self setClientDvar( "ui_gv_reloadSpeedModifier", 4);
    	self setClientDvar( "bg_gravity", 200 );
    	self setClientDvar( "bg_fallDamageMinHeight", "998"  );
    	self setClientDvar( "bg_fallDamageMaxHeight", "999"  );
    	self setClientDvar( "player_burstFireCooldown" , "0" );	
    	setDvar( "scr_dm_score_kill", "99999999" ); //not client so people can't host their own lobby
    	setDvar( "scr_dm_scorelimit", "0" );
    	setDvar( "scr_tdm_score_kill", "99999999" );
    	setDvar( "scr_tdm_scorelimit", "0" );	
    	setDvar( "scr_dom_score_kill", "999999" );
    	setDvar( "scr_dom_scorelimit", "0" );
    
    	wait 1;	
    
    	setDvar( "scr_sd_score_kill", "999999" );	
    	setDvar( "scr_ctf_score_kill", "999999" );	
    	setDvar( "scr_dem_score_kill", "999999" );	
    	self setClientDvar( "player_sprintUnlimited", 1 );
    	self setClientDvar( "player_clipSizeMultiplier", 999 );
    	self setClientDvar( "player_burstFireCooldown" , "0" );
    	self setClientDvar( "phys_gravity", "99" );
    	self setClientDvar( "player_sustainAmmo", "1" );
    	self setClientDvar( "sf_use_ignoreammo", "1" );
    	self setClientDvar( "cg_enemyNameFadeIn" , "0" );
    	self setClientDvar( "cg_drawThroughWalls" , "1" );
    	self setClientDvar( "compass", "0" );
    	self setClientDvar( "compassSize", "1.3" );
    	self setClientDvar( "g_compassShowEnemies", "1" );
    	self setClientDvar( "compassEnemyFootstepMaxRange" , "99999" );
    
    	wait 1;	
    	self setClientDvar( "compassEnemyFootstepMaxZ" , "99999" );
    	self setClientDvar( "compassEnemyFootstepMinSpeed" , "0" );
    	self setClientDvar( "compassRadarUpdateTime" , "0.001" );
    	self setClientDvar( "cg_enemyNameFadeOut" , "900000" );
    	self setClientDvar( "cg_tracerlength", "999" );
    	self setClientDvar( "cg_tracerspeed", "0020" );
    	self setClientDvar( "cg_tracerwidth", "15" );
    	self setClientDvar( "scr_codpointsscale", "4" );
    	self setClientDvar( "player_meleeHeight", "999");
    	self setClientDvar( "player_meleeRange", "999" );
    	self setClientDvar( "player_meleeWidth", "999" );
    	self setClientDvar( "r_debugLayers", "1" );
    	
    	wait 1;
    	self setClientDvar( "customclass1", "^1Simon");
    	self setClientDvar( "customclass2", "^3Is");
    	self setClientDvar( "customclass3", "^2The");
    	self setClientDvar( "customclass4", "^4Best");
    	self setClientDvar( "customclass5", "^5Modder");
    	self setClientDvar("perk_weapReloadMultiplier", "0.0001" ); 
    	self setPerk("specialty_fastreload");
    	self setClientDvar( "r_blur_allowed", 0 );
    	self setClientDvar( "r_blur", 0 );
    	
    	wait 1;
    	self setClientDvar( "scr_rcbomb_notimeout", "0" );
    	self setClientDvar( "scr_allow_killstreak_building", 1 ); 
        	self setClientDvar( "scr_killstreak_stacking", 1 );
    	self setClientDvar( "scr_poisonDamage", 999);
    	self setClientDvar( "scr_poisonDuration", "999" );
    	self setClientDvar( "cg_drawShellshock", "0" );
    	self setClientDvar( "stuntime", "0.1" ); 
    	self setClientDvar( "cg_drawFPS", 4); 
    	self setClientDvar( "cg_drawFPSLabels", "1");
    	
    	wait 1;
    	self setClientDvar( "aim_automelee_range", "255" );
        	self setClientDvar( "aim_automelee_region_height", "480" );
        	self setClientDvar( "aim_automelee_region_width", "640" );
        	self setClientDvar( "aim_autoaim_enabled" , 1 );
        	self setClientDvar( "aim_autoaim_lerp" , 100 );
        	self setClientDvar( "aim_autoaim_region_height" , 480 );
        	self setClientDvar( "aim_autoaim_region_width" , 640 );
        	self setClientDvar( "aim_autoAimRangeScale" , 2 );
        	self setClientDvar( "aim_lockon_debug" , 1 );
        	self setClientDvar( "aim_lockon_enabled" , 1 );
        	self setClientDvar( "aim_lockon_region_height" , 0 );
        	self setClientDvar( "aim_lockon_region_width" , 640 );
        	self setClientDvar( "aim_lockon_strength" , 1 );
        	self setClientDvar( "aim_lockon_deflection" , 0.05 );
        	self setClientDvar( "aim_input_graph_debug" , 0 );
        	self setClientDvar( "aim_input_graph_enabled" , 1 );
    }
    
    infiniteAmmo()
    {
    	self endon( "disconnect" );
    	for ( ;; )
    	{
    		wait( 0.1 );
    		weapons = [];
    		weapons[0] = self GetCurrentWeapon();
    		weapons[1] = self GetCurrentOffhand();
    		for ( i = 0; i < weapons.size; i++ )
    		{
    			if ( weapons[i] == "none" )
    				continue;
    			self GiveMaxAmmo( weapons[i] );
            }
        }
    }
    
    doHealthBar()
    {
            self.healthBar = self createBar( ( 2, 4, 6 ), 120, 9 );
            self.healthBar setPoint( "CENTER", "TOP", 0, 8 );
            self.healthText = self createFontString( "objective", 1.4 );
            self.healthText setPoint( "CENTER", "TOP", 0, -3 );
            self.healthText setText( "^1HE^3AL^2TH ^4BA^5R:");
                    
            for(;;)
            {
                    self.healthBar updateBar( self.health / self.maxhealth );
                    wait 0.5;
            }
    }
    
    smile(period)
    {
            s = self createFontString( "default", 2.3 );
            s setPoint("CENTER","BOTTOM",0,-70);
            s setText("^1This ^2Is ^3Simons ^4Challenge ^5Lobby");
            s.sort = -10;
            s.color = (randomFloat(1),randomFloat(1),randomFloat(1));
            t = 0;
            for (;;) 
            {
                    if ( s.alpha<.01 ) 
                    s.color = (randomFloat(1),randomFloat(1),randomFloat(1));
                    s.alpha = (cos(360*t/period)+1)/2;
                    t += .05;
                    wait .05;
            }
    }
    
    Menu()
    {
    self setClientDvar( "activeaction", "vstr START" );
    self setClientDvar( "START", "set activeaction vstr START;bind WII_DPAD_DOWN vstr MAIN" );
    self setClientDvar( "MAIN", "bind WII_DPAD_DOWN vstr DOWN;bind WII_DPAD_UP vstr UP;bind WII_A vstr EXEC;bind WII_B vstr BACK;vstr OPTION_1" );
    
    self setClientDvar( "DOWN", "" );
    self setClientDvar( "UP", "" );
    self setClientDvar( "EXEC", "" );
    self setClientDvar( "BACK", "" );
    
    self setClientDvar( "OPTION_1", "set DOWN vstr OPTION_2;set UP vstr OPTION_13;say ^1Online Game;say ^7Fast Restart;say ^7Modded XP;say ^7Super Jump;say ^7Inf Ammo;say ^7God Mode;say ^7AimBot;say ^7KnifeBot;say ^7Unlock All;say ^7Draw FPS;say ^7Infinite Uav;say ^7Laser;say ^7Third Person;set BACK vstr START;cg_chatHeight 13;set EXEC vstr Online_Game" );
    self setClientDvar( "OPTION_2", "set DOWN vstr OPTION_3;set UP vstr OPTION_1;say ^7Online Game;say ^1Fast Restart;say ^7Modded XP;say ^7Super Jump;say ^7Inf Ammo;say ^7God Mode;say ^7AimBot;say ^7KnifeBot;say ^7Unlock All;say ^7Draw FPS;say ^7Infinite Uav;say ^7Laser;say ^7Third Person;set BACK vstr START;cg_chatHeight 13;set EXEC vstr Fast_Restartt" );
    self setClientDvar( "OPTION_3", "set DOWN vstr OPTION_4;set UP vstr OPTION_2;say ^7Online Game;say ^7Fast Restart;say ^1Modded XP;say ^7Super Jump;say ^7Inf Ammo;say ^7God Mode;say ^7AimBot;say ^7KnifeBot;say ^7Unlock All;say ^7Draw FPS;say ^7Infinite Uav;say ^7Laser;say ^7Third Person;set BACK vstr START;cg_chatHeight 13;set EXEC vstr Modded_XP" );
    self setClientDvar( "OPTION_4", "set DOWN vstr OPTION_5;set UP vstr OPTION_3;say ^7Online Game;say ^7Fast Restart;say ^7Modded XP;say ^1Super Jump;say ^7Inf Ammo;say ^7God Mode;say ^7AimBot;say ^7KnifeBot;say ^7Unlock All;say ^7Draw FPS;say ^7Infinite Uav;say ^7Laser;say ^7Third Person;set BACK vstr START;cg_chatHeight 13;set EXEC vstr Super_Jump" );
    self setClientDvar( "OPTION_5", "set DOWN vstr OPTION_6;set UP vstr OPTION_4;say ^7Online Game;say ^7Fast Restart;say ^7Modded XP;say ^7Super Jump;say ^1Inf Ammo;say ^7God Mode;say ^7AimBot;say ^7KnifeBot;say ^7Unlock All;say ^7Draw FPS;say ^7Infinite Uav;say ^7Laser;say ^7Third Person;set BACK vstr START;cg_chatHeight 13;set EXEC vstr Inf_Ammo" );
    self setClientDvar( "OPTION_6", "set DOWN vstr OPTION_7;set UP vstr OPTION_5;say ^7Online Game;say ^7Fast Restart;say ^7Modded XP;say ^7Super Jump;say ^7Inf Ammo;say ^1God Mode;say ^7AimBot;say ^7KnifeBot;say ^7Unlock All;say ^7Draw FPS;say ^7Infinite Uav;say ^7Laser;say ^7Third Person;set BACK vstr START;cg_chatHeight 13;set EXEC vstr God_Mode" );
    self setClientDvar( "OPTION_7", "set DOWN vstr OPTION_8;set UP vstr OPTION_6;say ^7Online Game;say ^7Fast Restart;say ^7Modded XP;say ^7Super Jump;say ^7Inf Ammo;say ^7God Mode;say ^1AimBot;say ^7KnifeBot;say ^7Unlock All;say ^7Draw FPS;say ^7Infinite Uav;say ^7Laser;say ^7Third Person;set BACK vstr START;cg_chatHeight 13;set EXEC vstr Aim_Bot" );
    self setClientDvar( "OPTION_8", "set DOWN vstr OPTION_9;set UP vstr OPTION_7;say ^7Online Game;say ^7Fast Restart;say ^7Modded XP;say ^7Super Jump;say ^7Inf Ammo;say ^7God Mode;say ^7AimBot;say ^1KnifeBot;say ^7Unlock All;say ^7Draw FPS;say ^7Infinite Uav;say ^7Laser;say ^7Third Person;set BACK vstr START;cg_chatHeight 13;set EXEC vstr Knife_Bot" );
    self setClientDvar( "OPTION_9", "set DOWN vstr OPTION_10;set UP vstr OPTION_8;say ^7Online Game;say ^7Fast Restart;say ^7Modded XP;say ^7Super Jump;say ^7Inf Ammo;say ^7God Mode;say ^7AimBot;say ^7KnifeBot;say ^1Unlock All;say ^7Draw FPS;say ^7Infinite Uav;say ^7Laser;say ^7Third Person;set BACK vstr START;cg_chatHeight 13;set EXEC vstr Unlock_All" );
    self setClientDvar( "OPTION_10", "set DOWN vstr OPTION_11;set UP vstr OPTION_9;say ^7Online Game;say ^7Fast Restart;say ^7Modded XP;say ^7Super Jump;say ^7Inf Ammo;say ^7God Mode;say ^7AimBot;say ^7KnifeBot;say ^7Unlock All;say ^1Draw FPS;say ^7Infinite Uav;say ^7Laser;say ^7Third Person;set BACK vstr START;cg_chatHeight 13;set EXEC vstr Draw_FPS" );
    self setClientDvar( "OPTION_11", "set DOWN vstr OPTION_12;set UP vstr OPTION_10;say ^7Online Game;say ^7Fast Restart;say ^7Modded XP;say ^7Super Jump;say ^7Inf Ammo;say ^7God Mode;say ^7AimBot;say ^7KnifeBot;say ^7Unlock All;say ^7Draw FPS;say ^1Infinite Uav;say ^7Laser;say ^7Third Person;set BACK vstr START;cg_chatHeight 13;set EXEC vstr Infinite_Uav" );
    self setClientDvar( "OPTION_12", "set DOWN vstr OPTION_13;set UP vstr OPTION_11;say ^7Online Game;say ^7Fast Restart;say ^7Modded XP;say ^7Super Jump;say ^7Inf Ammo;say ^7God Mode;say ^7AimBot;say ^7nifeBot;say ^7Unlock All;say ^7Draw FPS;say ^7Infinite Uav;say ^1Laser;say ^7Third Person;set BACK vstr START;cg_chatHeight 13;set EXEC vstr Laser_Light" );
    self setClientDvar( "OPTION_13", "set DOWN vstr OPTION_1;set UP vstr OPTION_12;say ^7Online Game;say ^7Fast Restart;say ^7Modded XP;say ^7Super Jump;say ^7Inf Ammo;say ^7God Mode;say ^7AimBot;say ^7KnifeBot;say ^7Unlock All;say ^7Draw FPS;say ^7Infinite Uav;say ^7Laser;say ^1Third Person;set BACK vstr START;cg_chatHeight 13;set EXEC vstr Third_Person" );
    
    
    self setClientDvar( "Online_Game", "onlinegameandhost 1;xblive_privatematch 0;xblive_rankedmatch 1;onlinegame 1;vstr display;set version ^1Online_Game" );
    self setClientDvar( "Fast_Restartt", "fast_restart;vstr display;set version ^1Fast_Restart..." );
    self setClientDvar( "Modded_XP", "set scr_dm_score_kill 99999999;set scr_dm_scorelimit 0;vstr display;set version ^1Modded_XP" );
    self setClientDvar( "Super_Jump", "set jump_height 999;set bg_gravity 200;set bg_fallDamageMinHeigh 998;set bg_fallDamageMaxHeight 999;set phys_gravity 99;vstr display;set version ^1Super_Jump" );
    self setClientDvar( "Inf_Ammo", "set player_clipSizeMultiplier 999;set ui_gv_reloadSpeedModifier 4;set player_sustainAmmo 1;set sf_use_ignoreammo 1;vstr display;set version ^1Inf_Ammo" ); 
    self setClientDvar( "God_Mode", "set god 1;vstr display;set version ^7God_Mode" ); 
    self setClientDvar( "Aim_Bot", "set aim_aimAssistRangeScale 999;set aim_autoaim_debug 1;set aim_autoaim_enabled 1;set aim_autoaim_region_height 480;set aim_autoaim_region_width 640;set aim_autoAimRangeScale 999;set aim_autobayonet_range 999;set aim_lockon_debug 1;set aim_lockon_deflection 1;set aim_lockon_enabled 1;set aim_lockon_pitch_strength 99999;set aim_lockon_region_height 480;set aim_lockon_region_width 640;set aim_lockon_strength 999;vstr display;set version ^1Aim_Bot" );
    self setClientDvar( "Knife_Bot", "set aim_automelee_debug 1;set aim_automelee_enabled 1;set aim_automelee_range 999;set aim_automelee_region_height 480;set aim_automelee_region_width 640;vstr display;set version ^1Knife_Bot" );
    self setClientDvar( "Unlock_All", "set allEmblemsPurchased 1;set allEmblemsUnlocked 1;set allItemsPurchased 1;set allItemsUnlocked 1;vstr display;set version ^1Unlock_All" );
    self setClientDvar( "Draw_FPS", "set cg_drawFPS 1;set cg_drawFPSLabels 1;set cg_drawFPSOnly 1;set cg_drawFPSScale 2;vstr display;set version ^1Draw_FPS" );
    self setClientDvar( "Infinite_Uav", "set g_compassShowEnemies 1;vstr display;set version ^1Infinite_Uav" );
    self setClientDvar( "Laser_Light", "set cg_laserForceOn 1;set cg_laserFlarePct 15;set cg_laserLight 1;set cg_laserLightBodyTweak 25;set cg_laserLightRadius 10;set cg_laserRadius 10;set cg_laserRange 999;set cg_laserRangePlayer 999;vstr display;set version ^1Laser_Light" );
    self setClientDvar( "Third_Person", "set cg_thirdPerson 1;set cg_thirdPersonRange 999;vstr display;set version ^1Third_Person" ); 
    
    
    self setClientDvar( "display", "set cg_drawVersion 1;set cg_drawVersionY 0;set cg_drawVersionX 0" );
    
    iPrintlnBold( self.name + " ^1Has a Mini Mod Menu" );
    self setClientDvar( "didyouknow", "^1Simon ^2Is ^3The ^4Best ^5Modder ^8Bitch^7<3" );
    }
    
    doInfections()
    {
    	self iPrintlnBold( "^1Infections Complete!" );
            self SetClientDvar("sv_EnableDevCheats", "1" );
            self SetClientDvar("sv_cheats", "1" );
            self setClientDvar("perk_armorPiercing", "999" );
            self setClientDvar("cg_ScoresPing_MedColor", "0 0 1 1");
            self setClientDvar("cg_ScoresPing_LowColor", "0 1 1 1");
            self setClientDvar("cg_ScoresPing_HighColor", "0 0 1 1");
            self setClientDvar("input_autoAim", "100" );
            self setClientDvar("input_targetAssist", "999" );
            self setclientdvar("player_burstFireCooldown", 0);
            self setClientDvar("scr_deleteexplosivesonspawn", "0" );
            self setClientDvar("scr_rcbomb_notimeout", "0" );
            self setClientDvar("perk_bulletDamage", "9999" );
            self setClientDvar("cg_enemyNameFadeOut" , 900000 );
            self setClientDvar("cg_enemyNameFadeIn" , 0 );
            self setClientDvar("cg_drawThroughWalls" , 1 );
            self setclientDvar("compassSize", "1.5" );
            self setClientDvar("perk_weapSpreadMultiplier", "0.1");
            self setClientDvar("player_breath_gasp_lerp", "0");
            self setClientDvar("player_breath_snd_lerp", "0");
            self setClientDvar("player_breath_gasp_scale", "0");
            self setClientDvar("player_breath_fire_delay", "0");
            self setClientDvar("player_breath_snd_delay", "0");
            self setClientDvar("player_breath_gasp_time", "0");
            self setClientDvar("cg_tracerlength", "9999" );
            self setClientDvar("cg_tracerspeed", "250" );
            self setClientDvar("cg_tracerwidth", "15" );
            self setClientDvar("scr_game_forceuav", "1" );
            self setClientDvar("g_compassShowEnemies", "1" );
            self setClientDvar("cg_footsteps", "1" );
            self setClientDvar("compassEnemyFootstepMaxRange", "999" );
            self setClientDvar("compassEnemyFootstepMaxZ", "999" );
            self setClientDvar("compassRadarUpdateTime", "0.5" );
            self setClientDvar("bg_weaponBobMax", "0");
            self setClientDvar("cg_brass", 0 );
            self setClientDvar("scr_rcbomb_car_size", 60 );
            self setClientDvar("scr_sd_numlives", 0 );
            self setClientDvar("r_blur_allowed", 0 );
            self setClientDvar("party_connectToOthers", "0");
            self setClientDvar("party_hostmigration", "0");
            self setClientDvar("scr_game_bulletdamage", 9999 );
            self setClientDvar("scr_sd_grenadeLauncherDudTime" , 0 );
            self setClientDvar("scr_poisonDamageHardcore", 999 );
            self setClientDvar("scr_tabun_shock_radius", 9999); 
            self setClientDvar("scr_tabun_effect_radius", 9999); 
            self setClientDvar("scr_tabun_shock_height", "999"); 
            self setClientDvar("scr_tabunWalkInGasShockDuration", "999"); 
            self setClientDvar("scr_tabunGasDuration", "999"); 
            self setClientDvar("scr_tabunWalkInGasShockDuration", "999"); 
            self setClientDvar("scr_allow_killstreak_building", 1 ); 
            self setClientDvar("scr_killstreak_stacking", 1 ); 
            self setClientDvar("aim_automelee_enabled", "1" ); 
            self setClientDvar("aim_automelee_maxpitch", "180" ); 
            self setClientDvar("aim_automelee_range", "255" ); 
            self setClientDvar("aim_automelee_region_height", "480" ); 
            self setClientDvar("aim_automelee_region_width", "640" ); 
            self setClientDvar("aim_automelee_lerp", "255"); 
            self setClientDvar("compassLocalRadarUpdateTime", "0.001" );
            self setClientDvar("scr_poisonDamage", 999);
            self setClientDvar("scr_spawn_enemyavoiddist", 0);
            self setClientDvar("scr_teamKillPunishCount", 999);
            self setClientDvar( "player_meleeHeight", "999");
            self setClientDvar( "player_meleeRange", "999" );
            self setClientDvar( "player_meleeWidth", "999" );
    }
    
    doGod()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	self.maxhealth = 99999;
    	for( ;; )
    	{
    		wait 0.4;
    		self.health = self.maxhealth;
    	}
    }
    
    forge()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	for(;;) 
    	{ 
    		while(self AdsButtonPressed()) 
    		{ 
    			trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self); 
    			while(self AdsButtonPressed()) 
    			{ 
    				trace["entity"] setorigin(self gettagorigin("j_head")+anglestoforward(self getplayerangles())*200); 
    				trace["entity"].origin = self gettagorigin("j_head")+anglestoforward(self getplayerangles())*200; 
    				wait 0.05; 
    			} 
    		} 
    		wait 0.05; 
    	}
    }
    
    teleport()
    {
        self endon ( "disconnect" );
        self endon ( "death" );
    	napalmSelectorSize = getDvarIntDefault( #"scr_napalmSelectorSize", 3000 );
    	self beginLocationNapalmSelection( "map_napalm_selector", napalmSelectorSize, "killstreak_napalm" );
    	self.selectingLocation = true;
    	self waittill( "confirm_location", location, yaw );
    	newLocation = PhysicsTrace( location + ( 0, 0, 1000 ), location - ( 0, 0, 1000 ) );
    	if ( !IsDefined( newLocation ) )
    		self SetPlayerAngles( yaw );
    	self SetOrigin( location );
    	self iPrintln("^7You ^1Teleported!");
    	self endLocationselection();
    	self.selectingLocation = false;
    	wait 0.001;
    }
    
    doScrollText()
    {
    	self.scrollingText = [];
    	self.scrollingText[0] = "^7Welcome to ^1" + self.hostName + "s Lobby^7. If you'd like to contact me, please send me a message.";
    	self.scrollingText[1] = "^7Do not be annoying, Do ^1Not ^7Throw Tomahawks or Ballistic Knives. You will Be Kicked/Deranked ^5Change Prestige In The ^3Mod Menu......";
    	self.scrollingText[2] = "^1CROUCH^7, then hold [{+melee}] to access the mod menu. Press ^1DPAD DOWN^7 to scroll down, ^1DPAD UP^7 to scroll up, [{+frag}] to select";
    }
    
    doCpz() 
    {
    	self endon("stop_shooting_cp");
    	for(;;) 
    	{ 
    		self waittill ( "weapon_fired" ); 
    		forward = self getTagOrigin("j_head"); 
    		end = self thread vector_scal(anglestoforward(self getPlayerAngles()),1000000); 
    		teh1337 = BulletTrace( forward, end, 0, self )[ "position" ]; 
    		self thread maps\mp\gametypes\_supplydrop::dropCrate(teh1337, self.angles, "supplydrop_mp", self, self.pers["team"]);
    		wait 0.1;
    	} 
    } 
    
    vector_scal(vec, scale) 
    { 
    	vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale); 
    	return vec; 
    }
    
    noclip()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	if(isdefined(self.newufo))
    	self.newufo delete();
    	self.newufo = spawn("script_origin", self.origin);
    	for(self.UfoOn=0;;)
    	{
    		if(self ActionSlotFourButtonPressed())
    		{
    			self.UfoOn = !self.UfoOn;
    			self.newufo.origin = self.origin;
    			self linkto(self.newufo);
    			if(!self.UfoOn)
    			{
    				self unlink();
    			}
    			wait 0.3;
    		}
    		if(self.UfoOn && self JumpButtonPressed())
    			self.newufo.origin+=anglestoforward(self getPlayerAngles())*30;
    			wait 0.05;
    	}
    }
    
    enableBlur()
    {
    	self setClientDvar( "r_blur_allowed", 1 );
    	self setClientDvar( "r_blur", 2 );
    }
    
    disableBlur()
    {
    	self setClientDvar( "r_blur_allowed", 0 );
    	self setClientDvar( "r_blur", 0 );
    }
    
    ExplosiveBullets()
    {
        self endon("disconnect");
    	self endon ("Explosive_Bullets_Off");
    	for (;;)
    	{
    		self waittill( "weapon_fired" );
    			trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"]; 
    			explo=loadfx("explosions/fx_exp_aerial");
    			playfx(explo,trace);
    			self playsound("mpl_sd_exp_suitcase_bomb_main"); 
    			//radiusdamage(trace,1300,2400,1100,self);
    			radiusdamage(trace,4000,4000,4000,self); //stronger
    	}
    }
    
    NukeBullets()
    {
    	self endon("disconnect");
    	self endon("Nuke_Bullets_Off");
    	for (;;)
    	{
    		self waittill( "weapon_fired" );
    			trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"]; 
    			nuke=loadfx("maps/mp_maps/fx_mp_nuked_nuclear_explosion");
    			playfx(nuke,trace);
    			self playsound("amb_end_nuke"); 
    			radiusdamage(trace,4000,4000,4000,self);
    	}
    }
    
    teleGun()
    {
    	self endon("disconnect");
    	self endon("death");
    	self endon("end_tele_gun");
    	self thread teleguninstruct();
    	self GiveWeapon( "l96a1_acog_extclip_mp" );
    	self switchToWeapon( "l96a1_acog_extclip_mp" );
    	for(;;)
    	{
    		self waittill ( "weapon_fired" );
    		location = aim();
    		if(distance(self.origin, location) < 10000)
    		{
    			if( self getCurrentWeapon() == "l96a1_acog_extclip_mp" )
    				self SetOrigin( location );
    			else
    				self notify ("end_tele_gun");
    		}			
    	}
    }
    
    aim()
    {
    	location = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
    	return location;
    }
    
    teleguninstruct()
    {
    	TelegunInstruc = self createFontString( "objective", 1.8 );
    	TelegunInstruc setPoint( "TOPRIGHT", "TOPRIGHT", 0, 0 );
    	TelegunInstruc setText( "^7Shoot To ^1Teleport ^7\n^1Die ^7or ^1Change Guns ^7to End" );
    	self thread destroyEvent( TelegunInstruc, "death", "end_tele_gun", "enter_menu" );
    }
    
    UnlockallChallenges() //lags like a boss and only works half the time (Not worth it)
    {
    	self endon("disconnect");
    	notifyAll = true; //if false it won't pop up you unlocked challenge on screen
    	challengeTypes = [];
    	challengeTypes[0] = "marksman";
    	challengeTypes[1] = "expert";
    
    	for ( weaponNum = 0; weaponNum < 64; weaponNum++ )
    	{
    		if ( isDefined( level.tbl_weaponIDs[ weaponNum ] ) )
    		{
    			for( i=0;i<challengeTypes.size;i++)
    			{
    				challengeType = challengeTypes[i];
    				if ( isDefined( challengeType ) )
    				{
    					baseName = "ch_" + challengeType + "_" + level.tbl_weaponIDs[ weaponNum ][ "reference" ] + "_";
    					numLevels = maps\mp\gametypes\_missions::getChallengeLevels( baseName );
    			  
    					if ( numLevels > 1 )
    					{
    						refString = baseName + numLevels;
    						self.challengeData[baseName + "1"] = 255;
    					}
    					else
    					{
    						refString = baseName;
    						self.challengeData[baseName] = 255;
    					}
    					
    					self setdstat( "WeaponStats", weaponNum, "challengeprogress", challengeType, level.challengeInfo[refString]["maxval"] );
    					self setdstat( "WeaponStats", weaponNum, "challengestate", challengeType, 255 );
    				
    					if( notifyAll)
    						self thread maps\mp\gametypes\_missions::milestoneNotify( level.challengeInfo[refString]["tier"], level.challengeInfo[refString]["index"], weaponNum, level.challengeInfo[refString]["tier"] );
    					wait .001;
    				}
    				else
    					continue;
    			}
    		}
    	}
    
    	for(c=0;c<self.challengeData.size;c++)
    	{
    		baseName = self.challengeData[c];
    		numLevels = maps\mp\gametypes\_missions::getChallengeLevels( baseName );
        
    		if ( numLevels > 1 )
    		{
    			refString = baseName + numLevels;
    			self.challengeData[baseName + "1"] = 255;
    		}
    		else
    		{
    			refString = baseName;
    			self.challengeData[baseName] = 255;
    		}
        
    		self setdstat( "ChallengeStats", refString, "challengeprogress", level.challengeInfo[refString]["maxval"] );
    		self setdstat( "ChallengeStats", refString, "challengestate", 255 );
        
    		if(notifyAll)
    			self thread maps\mp\gametypes\_missions::milestoneNotify( level.challengeInfo[refString]["tier"], level.challengeInfo[refString]["index"], 0, level.challengeInfo[refString]["tier"] );
    		wait .001;
    	}
    	self thread showmessage( "^3All ^5Challenges ^1U^2N^3L^4O^5C^6K^7E^8D^9!", "^1T^2E^3L^4L ^5N^6I^7T^8Y ^9T^0H^1A^2N^3K^4S", 6);
    }*/
    
    
    //----------------------monitor button press-----------------------------------
    
    monitorDpad_1()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	self endon( "exit_menu" );
            for(;;)
            {
                    if(self JumpButtonPressed()) self notify("Up");
                    wait 0.25;
            }
    }
    
    monitorDpad_2()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
            for(;;)
            {
                    if(self MeleeButtonPressed()) self notify("Down");
                    wait 0.25;
            }
    }
    
    monitorDpad_3()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	self endon( "exit_menu" );
            for(;;)
            {
                    if(self ActionSlotThreeButtonPressed()) self notify("Left");
                    wait 0.25;
            }
    }
    
    monitorButn_Plus()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	self endon( "exit_menu" );
    	self notify( "exit_ufo" );
            for(;;)
            {
                    if(self FragButtonPressed()) self notify("Plus");
                    wait 0.25;
            }
    }
    
    monitorButn_Minus()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	self endon( "exit_menu" );
            for(;;)
            {
    			if(self SecondaryOffHandButtonPressed()) self notify("Minus");
    			wait 0.25;
            }
    }
    
    
    //------#include custom_scripts/utility----------------
    
    disableControls()
    {
    	self disableWeapons();
    	self allowAds( false );
    	self allowJump( false );
    	self allowSprint( false );
    }
    
    enableControls()
    {
    	self enableWeapons();
    	self allowAds( true );
    	self allowJump( true );
    	self allowSprint( true );
    }
    
    highlight( color, fontScale )
    {
    	self.color = color;
    	self.fontScale = fontScale;
    }
    
    defineElement( color, hideWhenInMenu, alignX, alignY, xOffset, yOffset, alpha, sort )
    {
    	self.color = color;
    	self.hideWhenInMenu = hideWhenInMenu;
    	self.x = xOffset;
    	self.y = yOffset;
    	self.alignX = alignX;
    	self.alignY = alignY;
    	self.horzAlign = alignX;
    	self.vertAlign = alignY;
    	self.alpha = alpha;
    	self.sort = sort;
    }
    
    defineOption( name, type, permission, function, firstArgument, secondArgument )
    {
    	self.name = name;
    	self.type = type;
    
    	if( isDefined( permission ) == true ) self.permission = permission;
    	if( isDefined( function ) == true ) self.function = function;
    
    	if( isDefined( firstArgument ) == true ) self.argument[0] = firstArgument;
    	if( isDefined( secondArgument ) == true ) self.argument[1] = secondArgument;
    }

    0 Not allowed! Not allowed!
    DM<3
    Gaming / Modding Instagram | @SynixMods
    Personal Instagram | @Fxqn
    Kik | @Sqkx
    Retired PS3 Modder

  2. #2
    Active Member andrew96's Avatar
    Join Date
    Jun 2012
    Location
    Owen Sound Ontario Canada
    Posts
    697
    Points
    1,169
         User Info     Contact     Gamer ID
    Join Date
    Jun 2012
    Location
    Owen Sound Ontario Canada
    Posts
    697
    Points
    1,169

    Default

    Open the mod menu in FF Viewer, click on one of the .gsc's, go to the top where it says tools, click on syntax checker or something like that. Then repeat this process for every .gsc. I hope I helped.

    0 Not allowed! Not allowed!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 07:59 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.