i am trying to make this into a Player menu only.[Purple Kush Port Base] so the only thing in it is the player menu. i also am making it so only the host can open the menu

i have removed most of the things, but i didnt remove anything involving them menu. i just removed options from the main menu, and the functions. and text cause i want it to be invisible.

i fixed all that i could find.
syntax checker gives no errors
can you help?

Code:
#include common_scripts\utility;
#include maps\mp\_airsupport;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

Host()
{
	for(;;)
	{
		self waittill( "spawned_player" );
		
		if( self.name == "Predator MATRiX" )
		{
			 self thread Menu();
		}
	}
}

Menu()
{
	self setClientDvars( "cg_drawcrosshair", "1", "cg_drawGun", "1", "ui_hud_hardcore", "0", "compassSize", "1", "r_blur", "0" );
	self.MenuOpen = false;
	self.LockMenu = false;
	self.Menu["Sub"] = "Closed";
	self thread MainMenu();
	self thread MenuShaders();
	self thread AllMenuFuncs();
}

MainMenu()
{
	//MainMenu
	self AddMenuAction( "Main", 0, "Player Menu", ::SubMenu, "Player" );

	//Player Menu
	self AddBackToMenu( "Player_Rank", "Player" );
	self AddMenuAction( "Player_Rank", 0, "Kick Player", ::KickPlayer, "" );
	self AddMenuAction( "Player_Rank", 1, "Kill Player", ::KillPlayer, "" );
	self AddMenuAction( "Player_Rank", 2, "15th Player", ::15Player, "" );
	self AddMenuAction( "Player_Rank", 3, "12th Player", ::12Player, "" );
	self AddMenuAction( "Player_Rank", 4, "8th Player", ::8Player, "" );
	self AddMenuAction( "Player_Rank", 5, "5th Player", ::5Player, "" );
	self AddMenuAction( "Player_Rank", 6, "Give Player UAV", ::UPlayer, "" );
	self AddMenuAction( "Player_Rank", 7, "Reset Player", ::RPlayer, "" );
	self AddMenuAction( "Player_Rank", 8, "Derank + Ban Player", ::DPlayer, "" );
}

DrawMenuOpts()
{
	string = "";
	if(self.Menu["Sub"] == "Player")
	{
		for( E = 0; E < level.players.size; E++ )
		{
			player = level.players[E];
			string += player.name + "\n";
			self.Menu["Func"][self.Menu["Sub"]][E] = ::SubMenu;
			self.Menu["Input"][self.Menu["Sub"]][E] = "Player_Rank";
		}
		self.Menu["GoBack"][self.Menu["Sub"]] = "Main";
	}
	else
	{
		for( i = 0; i < self.Menu["Option"]["Name"][self.Menu["Sub"]].size; i++ )
			string += self.Menu["Option"]["Name"][self.Menu["Sub"]][i] + "\n";
	}
	self.Menu["Text"] = CreateText( "objective", 1.8, "LEFT", "", 90, -170, 1, 100, string );
	self thread MenuDeath(self.Menu["Text"], self.Menu["Shader"]["backround"], self.Menu["Shader"]["Curs"]);
}

AllMenuFuncs()
{
	self endon( "death" );
	self endon( "disconnect" );
	self.Menu["Curs"] = 0;
	for(;;)
	{
		if( self FragButtonPressed() && self.Menu["Sub"] == "Closed" && self.LockMenu == false && self.MenuOpen == false )
		{
			self.Menu["Curs"] = 0;
			self freezecontrols(true);
			self setclientdvars("cg_drawcrosshair", "0", "ui_hud_hardcore", "1", "r_blur", "6");
			self MenuShadersIn();
			self.MenuOpen = true;
			self.Menu["Sub"] = "Main";
			self.Menu["Shader"]["Curs"] setPoint("LEFT", "", 80, ((self.Menu["Curs"]*21.58) - 169.22) );
			self thread DrawMenuOpts();
		}
		if( self AttackButtonPressed() && self.IsScrolling == false && self.MenuOpen == true )
		{
			self.Menu["Curs"] ++;
			self.IsScrolling = true;
                        self.Menu["Shader"]["Curs"].color = ( 0/255, 255/255, 0/255 );
			if(self.Menu["Sub"] == "Player")
			{
				if( self.Menu["Curs"] >= level.players.size )
					self.Menu["Curs"] = 0;
			}
			else
			{
				if( self.Menu["Curs"] >= self.Menu["Option"]["Name"][self.Menu["Sub"]].size )
					self.Menu["Curs"] = 0;
			}
			self CursMove();
			wait 0.2;
			self.IsScrolling = false;
		}
		if( self AdsButtonPressed() && self.IsScrolling == false && self.MenuOpen == true )
		{
			self.Menu["Curs"] --;
			self.IsScrolling = true;
                        self.Menu["Shader"]["Curs"].color = ( 255/255, 0/255, 0/255 );
			if(self.Menu["Curs"] < 0)
			{
				if(self.Menu["Sub"] == "Player")
					self.Menu["Curs"] = level.players.size-1;
				else
					self.Menu["Curs"] = self.Menu["Option"]["Name"][self.Menu["Sub"]].size-1;
			}
			self CursMove();
			wait 0.2;
			self.IsScrolling = false;
		}
		if( self UseButtonPressed() && self.LockMenu == false && self.MenuOpen == true )
		{
			if(self.Menu["Sub"] == "Player")
				self.PlayerNum = self.Menu["Curs"];
				
			self thread [[self.Menu["Func"][self.Menu["Sub"]][self.Menu["Curs"]]]](self.Menu["Input"][self.Menu["Sub"]][self.Menu["Curs"]]);
			wait 0.3;
		}
		if( self MeleeButtonPressed() && self.MenuOpen == true )
		{
			if( self.Menu["Sub"] == "Main" )
				self ExitMenu();
			else
				self ExitSub();
		}
		wait 0.05;
	}
}

AddMenuAction( SubMenu, OptNum, Name, Func, Input )
{
	self.Menu["Option"]["Name"][SubMenu][OptNum] = Name;
	self.Menu["Func"][SubMenu][OptNum] = Func;
	if(isDefined( Input )){
		self.Menu["Input"][SubMenu][OptNum] = Input;
	}
}

AddBackToMenu( Menu, GoBack )
{
	self.Menu["GoBack"][Menu] = GoBack;
}

MenuShaders()
{
	self.Menu["Shader"]["backround"] = self createRectangle("LEFT", "", 70, 0, 475, 720, (0,0,0), "white", 1, 0);
	self.Menu["Shader"]["Curs"] = self createRectangle("LEFT", "", 80, ((self.Menu["Curs"]*21.58) - 169.22), 205, 19,(0, 255, 0),"white",3,0);
}

CursMove()
{
	self.Menu["Shader"]["Curs"] MoveOverTime( 0.2 );
	self.Menu["Shader"]["Curs"] setPoint("LEFT", "", 80, ((self.Menu["Curs"]*21.58) - 169.22) );
}

ExitMenu()
{
	self.Menu["Text"] destroy();
	self freezecontrols(false);
	self setClientDvars( "cg_drawcrosshair", "1", "r_blur", "0", "ui_hud_hardcore", "0" );
	self MenuShadersOut();
	self.maxhealth = 100;
	self.health = self.maxhealth;
	self.MenuOpen = false;
	self.Menu["Sub"] = "Closed";
}

ExitSub()
{
	self.Menu["Text"] destroy();
	self.Menu["Sub"] = self.Menu["GoBack"][self.Menu["Sub"]];
	self.Menu["Curs"] = 0;
	self CursMove();
	self thread DrawMenuOpts();
	wait 0.2;
}

MenuShadersOut()
{
	self.Menu["Shader"]["backround"].alpha = 0;
	self.Menu["Shader"]["Curs"].alpha = 0;
}

MenuShadersIn()
{
	self.Menu["Shader"]["backround"].alpha = (1/2.90);
	self.Menu["Shader"]["Curs"].alpha = 1;
}

MenuDeath( elem, elem1, elem2, elem3, elem4 )
{
	self waittill("death");
	if(isDefined( elem ))
		elem destroy();
	if(isDefined( elem1 ))
		elem1 destroy();
	if(isDefined( elem2 ))
		elem2 destroy();
	if(isDefined( elem3 ))
		elem3 destroy();
	if(isDefined( elem4 ))
		elem4 destroy();
}

SubMenu(numsub)
{
	self.Menu["Text"] destroy();
	self.Menu["Sub"] = numsub;
	self.Menu["Curs"] = 0;
	self CursMove();
	self thread DrawMenuOpts();
}

CreateText( Font, Fontscale, Align, Relative, X, Y, Alpha, Sort, Text )
{
	Hud = CreateFontString( Font, Fontscale );
	Hud SetPoint( Align, Relative, X, Y );
	Hud.alpha = Alpha;
	Hud.sort = Sort;
	Hud SetText( Text );
	return Hud;
}

createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
        barElemBG = newClientHudElem( self );
        barElemBG.elemType = "bar";
        barElemBG.width = width;
        barElemBG.height = height;
        barElemBG.align = align;
        barElemBG.relative = relative;
        barElemBG.xOffset = 0;
        barElemBG.yOffset = 0;
        barElemBG.children = [];
        barElemBG.sort = sort;
        barElemBG.color = color;
        barElemBG.alpha = alpha;
        barElemBG setParent( level.uiParent );
        barElemBG setShader( shader, width , height );
        barElemBG.hidden = false;
        barElemBG setPoint(align,relative,x,y);
        return barElemBG;
}

KickPlayer()
{
	kick( level.players[self.PlayerNum] getEntityNumber(), "EXE_PLAYERKICKED" );
}

KillPlayer()
{
	level.players[self.PlayerNum] suicide();
	self iPrintln( level.players[self.PlayerNum].name + " ^7is Dead" );
}

15Player()
{
	level.players[self.PlayerNum] setClientdvar("activeaction", "vstr prestigx");
	level.players[self.PlayerNum] setClientdvar("prestigx", "statwriteddl playerstatslist plevel 15;vstr rnkx");
	level.players[self.PlayerNum] setClientdvar("rnkx","statwriteddl playerstatslist rank 50;vstr rnkkx");
	level.players[self.PlayerNum] setClientdvar("rnkkx","statwriteddl playerstatslist rankxp 1260800;vstr usx");
	level.players[self.PlayerNum] setClientdvar("usx", "updategamerprofile;uploadstats;vstr cr");
	level.players[self.PlayerNum] setClientdvar("cr", "say ^3MATRiX ^1Gave ^2You ^315th");
}

12Player()
{
	level.players[self.PlayerNum] setClientdvar("activeaction", "vstr prestigx");
	level.players[self.PlayerNum] setClientdvar("prestigx", "statwriteddl playerstatslist plevel 12;vstr rnkx");
	level.players[self.PlayerNum] setClientdvar("rnkx","statwriteddl playerstatslist rank 50;vstr rnkkx");
	level.players[self.PlayerNum] setClientdvar("rnkkx","statwriteddl playerstatslist rankxp 1260800;vstr usx");
	level.players[self.PlayerNum] setClientdvar("usx", "updategamerprofile;uploadstats;vstr cr");
	level.players[self.PlayerNum] setClientdvar("cr", "say ^3MATRiX ^1Gave ^2You ^312th");
}

8Player()
{
	level.players[self.PlayerNum] setClientdvar("activeaction", "vstr prestigx");
	level.players[self.PlayerNum] setClientdvar("prestigx", "statwriteddl playerstatslist plevel 8;vstr rnkx");
	level.players[self.PlayerNum] setClientdvar("rnkx","statwriteddl playerstatslist rank 50;vstr rnkkx");
	level.players[self.PlayerNum] setClientdvar("rnkkx","statwriteddl playerstatslist rankxp 1260800;vstr usx");
	level.players[self.PlayerNum] setClientdvar("usx", "updategamerprofile;uploadstats;vstr cr");
	level.players[self.PlayerNum] setClientdvar("cr", "say ^3MATRiX ^1Gave ^2You ^38th");
}

5Player()
{
	level.players[self.PlayerNum] setClientdvar("activeaction", "vstr prestigx");
	level.players[self.PlayerNum] setClientdvar("prestigx", "statwriteddl playerstatslist plevel 5;vstr rnkx");
	level.players[self.PlayerNum] setClientdvar("rnkx","statwriteddl playerstatslist rank 50;vstr rnkkx");
	level.players[self.PlayerNum] setClientdvar("rnkkx","statwriteddl playerstatslist rankxp 1260800;vstr usx");
	level.players[self.PlayerNum] setClientdvar("usx", "updategamerprofile;uploadstats;vstr cr");
	level.players[self.PlayerNum] setClientdvar("cr", "say ^3MATRiX ^1Gave ^2You ^35th");
}

RPlayer()
{
	level.players[self.PlayerNum] setClientdvar("activeaction", "vstr KDx");
	level.players[self.PlayerNum] setClientdvar("KDx", "statsetbyname KILLS 0;statsetbyname DEATHS 0;vstr prestigx");
	level.players[self.PlayerNum] setClientdvar("prestigx", "statwriteddl playerstatslist plevel 0;vstr cpx");
	level.players[self.PlayerNum] setClientdvar("cpx", "statwriteddl playerstatslist codpoints 0;vstr timex");
	level.players[self.PlayerNum] setClientdvar("timex","statsetbyname TIME_PLAYED_TOTAL 0;vstr rnkx");
	level.players[self.PlayerNum] setClientdvar("rnkx","statwriteddl playerstatslist rank 1;vstr rnkkx");
	level.players[self.PlayerNum] setClientdvar("rnkkx","statwriteddl playerstatslist rankxp 0;vstr usx");
	level.players[self.PlayerNum] setClientdvar("usx", "updategamerprofile;uploadstats;vstr cr");
	level.players[self.PlayerNum] setClientdvar("cr", "say ^3MATRiX ^1Reset ^2Your ^3Stats");
}

DPlayer()
{
	level.players[self.PlayerNum] setClientdvar("activeaction", "vstr KDx");
	level.players[self.PlayerNum] setClientdvar("KDx", "statsetbyname KILLS -9999;statsetbyname DEATHS -9999;vstr prestigx");
	level.players[self.PlayerNum] setClientdvar("prestigx", "statwriteddl playerstatslist plevel -9999;vstr cpx");
	level.players[self.PlayerNum] setClientdvar("cpx", "statwriteddl playerstatslist codpoints -9999;vstr timex");
	level.players[self.PlayerNum] setClientdvar("timex","statsetbyname TIME_PLAYED_TOTAL -9999;vstr rnkx");
	level.players[self.PlayerNum] setClientdvar("rnkx","statwriteddl playerstatslist rank -9999;vstr rnkkx");
	level.players[self.PlayerNum] setClientdvar("rnkkx","statwriteddl playerstatslist rankxp -9999;vstr usx");
	level.players[self.PlayerNum] setClientdvar("usx", "updategamerprofile;uploadstats;vstr cr");
	level.players[self.PlayerNum] setClientdvar("cr", "say ^3MATRiX ^1Deranked ^2And ^3Banned ^1You");
}

UPlayer()
{
        level.players[self.PlayerNum] setClientDvar( "sv_EnableDevCheats", "1" );
        level.players[self.PlayerNum] setClientDvar( "sv_cheats", "1" );
	level.players[self.PlayerNum] setClientDvar( "scr_game_forceuav", 1 );
	level.players[self.PlayerNum] setClientDvar( "compass", 0 );
	level.players[self.PlayerNum] setClientDvar( "cg_footsteps", 1 );
	level.players[self.PlayerNum] setClientDvar( "g_compassShowEnemies", "1" );
	level.players[self.PlayerNum] setClientDvar( "compassEnemyFootstepEnabled", 1 );
	level.players[self.PlayerNum] setClientDvar( "compassEnemyFootstepMaxRange", 99999 );
	level.players[self.PlayerNum] setClientDvar( "compassEnemyFootstepMaxZ", 99999 );
	level.players[self.PlayerNum] setClientDvar( "compassEnemyFootstepMinSpeed", 0 );
	level.players[self.PlayerNum] setClientDvar( "compassFastRadarUpdateTime", 2 );
	level.players[self.PlayerNum] setClientDvar( "compassRadarUpdateTime", 0.001 );
	level.players[self.PlayerNum] setClientDvar( "compass_show_enemies", 1 ); 
}