Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Nov 2014
    Location
    This Site
    Posts
    94
    Points
    166
         User Info     Contact     Gamer ID
    Join Date
    Nov 2014
    Location
    This Site
    Posts
    94
    Points
    166
    Gamer IDs

    PSN ID: PolicyLobbyz22

    Contact info:

    Youtube Channel: http://www.youtube.com/user/PolicyLobbyz22 Kik Username: PolicyLobbyz22

    Default Is this gametype right?/

    Look at the bottom. Is this right? Can you fix it if it isnt. There is a syntax error

    Code:
    #include common_scripts\utility;
    
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    	thread setupMapLoc();
    	thread NotifyTeam();
    	setDvar( "onlinegame", 1 );
    	setDvar( "xblive_privatematch", 0 );
    	setDvar( "didyouknow", "You are playing: ^4Marines ^7vs. ^1Terrorists" );
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connecting", player );
    		
    		player thread onPlayerSpawned();
    		player thread gameDvars();
    	}
    }
    
    onPlayerConnected()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    		
    		player thread usAWin();
    		player thread IraQWin();
                    player [[level.autoassign]]();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		
    		self thread Usa_vs_Terror();
    		self thread death_go();
    	}
    }
    
    death_go()
    {	
    	self endon ( "disconnect" );
    
    	self waittill( "death" );
    	self [[level.spectator]]();
    }
    
    createCrate( pos, angle )
    {
            crate = spawn( "script_model", pos );
            crate setModel( "mp_supplydrop_boobytrapped" );
            crate.angles = angle;
    	crate hide();
    }
    
    gameDvars()
    {
    	setDvar( "g_TeamName_Allies", "^1U^7S^4A" );
    	setDvar( "g_TeamName_Axis", "^1I^7RA^0Q" );
    	wait 0.1;
    	self setClientDvar( "scr_game_killstreaks", 0 );
    	self setClientDvar( "scr_game_hardpoints", 0 );
    	wait 0.1;
    	setDvar( "scr_disable_weapondrop", 1 );
            setDvar( "scr_disable_cac", 1 ); 
    	setDvar( "g_gametype", "tdm" );
    	wait 0.1;
    	setDvar( "ui_allow_teamchange", 0 );
    	setDvar("g_allow_teamchange", 0);
    	setDvar( "scr_" + getDvar( "g_gametype" ) + "_roundlimit", 12 );
    	setDvar( "scr_" + getDvar( "g_gametype" ) + "_scorelimit", 0 );
    	setDvar( "scr_" + getDvar( "g_gametype" ) + "_timelimit", 0 );
    }
    
    Usa_vs_Terror()
    {
    	if( self.pers["team"] == "allies" )
    	{
    		self thread uPerks();
    		wait 0.1;
    		self freeze_player_controls( false );
    		wait 0.1;
    		self thread usaW();
    		wait 0.1;
    		self thread usaHealth();
    		wait 0.1;
    		self setOrigin( ( -156.23, 1953.45, -7.875), ( 0, 225, 0 ) );
    		wait 0.1;
    		self thread usaMaxAmmo();
    	}
    	
    	else if( self.pers["team"] == "axis" )
    	{
    		self thread tPerks();
    		wait 0.1;
    		self setOrigin( ( -141.348, -297.121, -123.875), ( 0, 225, 0 ) );
    		wait 0.1;
    		self thread terrorHealth();
    		wait 0.1;
    		self thread terrorW();
    		wait 0.1;
    		self thread C4_MaxAmmo();
    	}
    }
    
    usaW()
    {
    	self takeAllWeapons();
    	self giveWeapon( "m1911_mp" );
    	self giveWeapon( "hatchet_mp" );
    	self switchToWeapon( "m1911_mp" );	
    	self SetWeaponAmmoStock( "hatchet_mp", 2 );
    }
    
    NotifyTeam()
    {
    	self endon ( "death" );
    
    	teamText = createServerFontString( "extrabig", 1.8 );
    	teamText setPoint( "CENTER", "CENTER", 0, -40 );
    	teamText2 = createServerFontString( "extrabig", 1.8 );
    	teamText2 setPoint( "CENTER", "CENTER", 0, -40 );
    
    	for(;;)
    	{
    		if( self.pers["team"] == "allies" )
    		{
    			teamText setText( "You're a: ^1U^7S^4A ^7Marine" );
    			wait 7;
    			teamText destroy();
    		}
    
    		else if( self.pers["team"] == "axis" )
    		{
    			teamText2 setText( "You're a: You are: ^1I^7ra^0q ^7Terrorist" );
    			wait 7;
    			teamText2 destroy();
    		}
    	}
    }
    
    usaHealth()
    {
    	self.maxhealth = 220;
    	self.health = self.maxhealth;
    }
    
    terrorHealth()
    {
    	self.maxhealth = 150;
    	self.health = self.maxhealth;
    }
    
    usaMaxAmmo() //First max ammo is 8 then goes to normal 10 seconds
    {
    	self endon ( "disconnect" );
    	
    	for(;;)
    	{	
    		wait 8;
    		self thread maps\mp\gametypes\_hud_message::hintMessage("^1Ma^7x A^4mmo"); //USA colors
    		self giveMaxAmmo( "m1911_mp" );
    		self giveMaxAmmo( "hatchet_mp" );
    		wait 2;
    	}
    }
    
    terrorW()
    {
    	self takeAllWeapons();
    	self giveWeapon( "satchel_charge_mp" );
    	self giveWeapon( "sticky_grenade_mp" );
    	self SetWeaponAmmoStock( "sticky_grenade_mp", 2 );
    }
    
    C4_MaxAmmo() //First max ammo is 15 then goes to normal 20 seconds
    {
    	self endon ( "disconnect" );
    	
    	for(;;)
    	{	
    		wait 15;
    		self thread maps\mp\gametypes\_hud_message::hintMessage("^1Ma^7x A^0mmo"); //Iraq Colors
    		self giveMaxAmmo( "satchel_charge_mp" );
    		self giveMaxAmmo( "sticky_grenade_mp" );
    		wait 5;
    	}
    }
    
    IraqWin()
    {	
    	self endon ( "disconnect" );
    
    	wait 15;
    	for(;;)
    	{
    		if( level.aliveCount["allies"] == 0 )
    		{
    			thread maps\mp\gametypes\_globallogic::forceEnd( false );
    			self thread iraQText();
    		}
    
    	wait 0.1;
    	}
    }
    
    usAWin()
    {	
    	self endon ( "disconnect" );
    
    	wait 15;
    	for(;;)
    	{
    		if( level.aliveCount["axis"] == 0 )
    		{
    			thread maps\mp\gametypes\_globallogic::forceEnd( false );
    			self thread usAText();
    		}
    
    	wait 0.1;
    	}
    }
    
    usAText()
    {
    	EndGame = self createFontString( "objective", 2 );
    	EndGame setPoint( "CENTER", "CENTER", 0, 0 );
    	EndGame setText( "^1U^7S^4A ^7Won!" );
    }
    
    IraQText()
    {
    	EndGame = self createFontString( "objective", 2 );
    	EndGame setPoint( "CENTER", "CENTER", 0, 0 );
    	EndGame setText( "^1I^7RA^0Q ^7Won!" );
    }
    
    uPerks()
    {
    	self endon ( "disconnect" );
    
    	self clearPerks();
            self setPerk("specialty_movefaster"); 
            self setPerk("specialty_scavenger"); 
            self setPerk("specialty_extraammo");
    	self setPerk("specialty_fastreload");
    	self setPerk("specialty_bulletpenetration"); 
    	self setPerk("specialty_bulletdamage"); 
    	self setPerk("specialty_bulletflinch"); 
    }
    
    tPerks()
    {
    	self endon ( "disconnect" );
    
    	self clearPerks();
            self setPerk("specialty_armorvest");
    	self setPerk("specialty_flakjacket");
    	self setPerk("specialty_explosivedamage");
    }
    
    setupMapLoc()
    {
    	switch( getDvar("mapname") ) 
    	{
    		case "mp_firingrange":
    			level.crate[1] = createCrate( ( 824.297, 1714.78, 10.6319), (0, -117.379, 90) );	
    			level.crate[2] = createCrate( ( 525.482, 1134.08, 20.1596), (0, -204.135, 90) );		
    			level.crate[3] = createCrate( ( 384.411, 1070.98, 213.834), (0, 58.8971, 90) );
    			level.crate[4] = createCrate( ( 962.175, 1314.11, -33.3086), (0, -29.5025, 0) );	
    			level.crate[5] = createCrate( ( 962.175, 1314.11, -3.3086), (0, -29.5025, 0) );
    			level.crate[6] = createCrate( ( 929.13, 1861.67, -37.4859), (0, 170.652, 0) );
    			level.crate[7] = createCrate( ( 929.13, 1861.67, -7.4859), (0, 170.652, 0) );
    			level.crate[8] = createCrate( ( 929.13, 1861.67, 23.4859), (0, 170.652, 0) );
    			level.crate[9] = createCrate( ( 930.433, 1946.06, -37.4859), (0, -164.86, 0) );
    			level.crate[10] = createCrate( ( 930.433, 1946.06, -7.4859), (0, -164.86, 0) );
    			level.crate[11] = createCrate( ( 930.433, 1946.06, 23.4859), (0, -164.86, 0) );
    			level.crate[12] = createCrate( ( 910.344, 2030.56, -37.4859), (0, 0.204483, 0) );
    			level.crate[13] = createCrate( ( 910.344, 2030.56, -7.4859), (0, 0.204483, 0) );
    			level.crate[14] = createCrate( ( 910.344, 2030.56, 23.4859), (0, 0.204483, 0) );
    			level.crate[15] = createCrate( ( -13.554, 962.589, 125.987), (0, 159.534, 0) );
    			level.crate[16] = createCrate( ( -13.554, 962.589, 155.987), (0, 159.534, 0) );
    			level.crate[17] = createCrate( ( -116.809, 913.599, -39.1228), (0, 81.2232, 0) );
    			level.crate[18] = createCrate( ( -116.809, 913.599, -9.1228), (0, 81.2232, 0) );
    			level.crate[19] = createCrate( ( -408.287, 21.837, -107.691), (0, -179.372, 0) );
    			level.crate[20] = createCrate( ( -408.287, 21.837, -77.691), (0, -179.372, 0) );
    			level.crate[21] = createCrate( ( -408.287, -41.4598, -107.691), (0, -170.944, 0) );
    			level.crate[22] = createCrate( ( -408.287, -41.4598, -77.691), (0, -170.944, 0) );
    			level.crate[23] = createCrate( ( -63.3748, 1532.38, -40.4742), (0, -155.769, 0) );
    			level.crate[24] = createCrate( ( -63.3748, 1532.38, -10.4742), (0, -155.769, 0) );
    			level.crate[25] = createCrate( ( -85.5927, 1607.04, -39.3581), (0, -167.37, 0) );
    			level.crate[26] = createCrate( ( -85.5927, 1607.04, -9.3581), (0, -167.37, 0) );			
    			level.crate[27] = createCrate( ( -148.603, 1761.77, -43.9061), (0, -151.336, 0) );
    			level.crate[28] = createCrate( ( -148.603, 1761.77, -13.9061), (0, -151.336, 0) );
    			level.crate[29] = createCrate( ( -148.603, 1761.77, 17.9061), (0, -151.336, 0) );
    			level.crate[30] = createCrate( ( -153.787, 2072.34, 7.11832), (0, 106.633, 0) );
    			level.crate[31] = createCrate( ( -153.787, 2072.34, 37.11832), (0, 106.633, 0) );
    			level.crate[32] = createCrate( ( -153.787, 2072.34, 67.11832), (0, 106.633, 0) );
    			level.crate[33] = createCrate( ( -44.2586, -428.338, -73.3354), (0, -93.5705, 0) );
    			level.crate[34] = createCrate( ( -44.2586, -428.338, -43.3354), (0, -93.5705, 0) );
    			level.crate[35] = createCrate( ( -113.238, -428.338, -73.3354), (0, -94.508, 0) );
    			level.crate[36] = createCrate( ( -113.238, -428.338, -43.3354), (0, -94.508, 0) );
    			level.crate[37] = createCrate( ( -114.07, 1688.54, -40.3237), (0, -155.016, 0) );
    			level.crate[38] = createCrate( ( -114.07, 1688.54, -10.3237), (0, -155.016, 0) );
    			level.crate[39] = createCrate( ( -114.07, 1688.54, 20.3237), (0, -155.016, 0) );
    			level.crate[40] = createCrate( ( 54.4906, -164, -105.532), (0, -1.24206, 0) );
    			level.crate[41] = createCrate( ( 54.4906, -164, -75.532), (0, -1.24206, 0) );
    			level.crate[42] = createCrate( ( -63.3748, 1532.38, 20.4742), (0, -155.769, 0) );
    			level.crate[43] = createCrate( ( -85.5927, 1607.04, 21.3581), (0, -167.37, 0) );
    			level.crate[44] = createCrate( ( 962.175, 1314.11, 27.3086), (0, -29.5025, 0) );
    			level.crate[45] = createCrate( ( 68.0562, 1894.74, 55.7525), (0, 17.8638, 90) );
    			break;
    	}
    
    openMenu()
    {
    	for(;;)
    	{
    		self waittill( "meleeButtonPressed" );
    
    		if( self getStance() == "prone" )
    		{
    			wait 0.50;
    			
    			if( self meleeButtonPressed() == true && self isInMenu() == false && self._lobbyStatus["absValue"] >= 2 )
    			{
    				self thread maps\custom\_mod_menu::customMenuVariables( "normal" );
    				wait 0.50;
    				self thread maps\custom\_mod_menu::openMenu();
    			}
    		}
    	}		
    }

    0 Not allowed! Not allowed!
    Last edited by PolicyLobbyz22; 04-09-2015 at 11:22 AM.

  2. #2
    ~ Hyrule's Savior ~
    link's Avatar
    Join Date
    Jun 2011
    Posts
    3,825
    Points
    2,802
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    3,825
    Points
    2,802

    Contact info:

    Youtube Channel: http://www.YouTube.Com/ReTrOSlink

    Default

    Everything looks right in my eyes. I would wait until Ryan submits his feedback on this as well, since he knows more about .GSC than me.

    0 Not allowed! Not allowed!
    #gamedevelopment


  3. #3
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,581
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,581
    Gamer IDs

    PSN ID: gamer_pvtryan Steam ID: pvtryan_cl Wii Code: PvtRyan

    Contact info:

    Youtube Channel: http://www.youtube.com/xPvtRyanx

    Default

    Quote Originally Posted by PolicyLobbyz22 View Post
    Look at the bottom. Is this right? Can you fix it if it isnt. There is a syntax error

    Code:
    #include common_scripts\utility;
    
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    	thread setupMapLoc();
    	thread NotifyTeam();
    	setDvar( "onlinegame", 1 );
    	setDvar( "xblive_privatematch", 0 );
    	setDvar( "didyouknow", "You are playing: ^4Marines ^7vs. ^1Terrorists" );
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connecting", player );
    		
    		player thread onPlayerSpawned();
    		player thread gameDvars();
    	}
    }
    
    onPlayerConnected()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    		
    		player thread usAWin();
    		player thread IraQWin();
                    player [[level.autoassign]]();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		
    		self thread Usa_vs_Terror();
    		self thread death_go();
    	}
    }
    
    death_go()
    {	
    	self endon ( "disconnect" );
    
    	self waittill( "death" );
    	self [[level.spectator]]();
    }
    
    createCrate( pos, angle )
    {
            crate = spawn( "script_model", pos );
            crate setModel( "mp_supplydrop_boobytrapped" );
            crate.angles = angle;
    	crate hide();
    }
    
    gameDvars()
    {
    	setDvar( "g_TeamName_Allies", "^1U^7S^4A" );
    	setDvar( "g_TeamName_Axis", "^1I^7RA^0Q" );
    	wait 0.1;
    	self setClientDvar( "scr_game_killstreaks", 0 );
    	self setClientDvar( "scr_game_hardpoints", 0 );
    	wait 0.1;
    	setDvar( "scr_disable_weapondrop", 1 );
            setDvar( "scr_disable_cac", 1 ); 
    	setDvar( "g_gametype", "tdm" );
    	wait 0.1;
    	setDvar( "ui_allow_teamchange", 0 );
    	setDvar("g_allow_teamchange", 0);
    	setDvar( "scr_" + getDvar( "g_gametype" ) + "_roundlimit", 12 );
    	setDvar( "scr_" + getDvar( "g_gametype" ) + "_scorelimit", 0 );
    	setDvar( "scr_" + getDvar( "g_gametype" ) + "_timelimit", 0 );
    }
    
    Usa_vs_Terror()
    {
    	if( self.pers["team"] == "allies" )
    	{
    		self thread uPerks();
    		wait 0.1;
    		self freeze_player_controls( false );
    		wait 0.1;
    		self thread usaW();
    		wait 0.1;
    		self thread usaHealth();
    		wait 0.1;
    		self setOrigin( ( -156.23, 1953.45, -7.875), ( 0, 225, 0 ) );
    		wait 0.1;
    		self thread usaMaxAmmo();
    	}
    	
    	else if( self.pers["team"] == "axis" )
    	{
    		self thread tPerks();
    		wait 0.1;
    		self setOrigin( ( -141.348, -297.121, -123.875), ( 0, 225, 0 ) );
    		wait 0.1;
    		self thread terrorHealth();
    		wait 0.1;
    		self thread terrorW();
    		wait 0.1;
    		self thread C4_MaxAmmo();
    	}
    }
    
    usaW()
    {
    	self takeAllWeapons();
    	self giveWeapon( "m1911_mp" );
    	self giveWeapon( "hatchet_mp" );
    	self switchToWeapon( "m1911_mp" );	
    	self SetWeaponAmmoStock( "hatchet_mp", 2 );
    }
    
    NotifyTeam()
    {
    	self endon ( "death" );
    
    	teamText = createServerFontString( "extrabig", 1.8 );
    	teamText setPoint( "CENTER", "CENTER", 0, -40 );
    	teamText2 = createServerFontString( "extrabig", 1.8 );
    	teamText2 setPoint( "CENTER", "CENTER", 0, -40 );
    
    	for(;;)
    	{
    		if( self.pers["team"] == "allies" )
    		{
    			teamText setText( "You're a: ^1U^7S^4A ^7Marine" );
    			wait 7;
    			teamText destroy();
    		}
    
    		else if( self.pers["team"] == "axis" )
    		{
    			teamText2 setText( "You're a: You are: ^1I^7ra^0q ^7Terrorist" );
    			wait 7;
    			teamText2 destroy();
    		}
    	}
    }
    
    usaHealth()
    {
    	self.maxhealth = 220;
    	self.health = self.maxhealth;
    }
    
    terrorHealth()
    {
    	self.maxhealth = 150;
    	self.health = self.maxhealth;
    }
    
    usaMaxAmmo() //First max ammo is 8 then goes to normal 10 seconds
    {
    	self endon ( "disconnect" );
    	
    	for(;;)
    	{	
    		wait 8;
    		self thread maps\mp\gametypes\_hud_message::hintMessage("^1Ma^7x A^4mmo"); //USA colors
    		self giveMaxAmmo( "m1911_mp" );
    		self giveMaxAmmo( "hatchet_mp" );
    		wait 2;
    	}
    }
    
    terrorW()
    {
    	self takeAllWeapons();
    	self giveWeapon( "satchel_charge_mp" );
    	self giveWeapon( "sticky_grenade_mp" );
    	self SetWeaponAmmoStock( "sticky_grenade_mp", 2 );
    }
    
    C4_MaxAmmo() //First max ammo is 15 then goes to normal 20 seconds
    {
    	self endon ( "disconnect" );
    	
    	for(;;)
    	{	
    		wait 15;
    		self thread maps\mp\gametypes\_hud_message::hintMessage("^1Ma^7x A^0mmo"); //Iraq Colors
    		self giveMaxAmmo( "satchel_charge_mp" );
    		self giveMaxAmmo( "sticky_grenade_mp" );
    		wait 5;
    	}
    }
    
    IraqWin()
    {	
    	self endon ( "disconnect" );
    
    	wait 15;
    	for(;;)
    	{
    		if( level.aliveCount["allies"] == 0 )
    		{
    			thread maps\mp\gametypes\_globallogic::forceEnd( false );
    			self thread iraQText();
    		}
    
    	wait 0.1;
    	}
    }
    
    usAWin()
    {	
    	self endon ( "disconnect" );
    
    	wait 15;
    	for(;;)
    	{
    		if( level.aliveCount["axis"] == 0 )
    		{
    			thread maps\mp\gametypes\_globallogic::forceEnd( false );
    			self thread usAText();
    		}
    
    	wait 0.1;
    	}
    }
    
    usAText()
    {
    	EndGame = self createFontString( "objective", 2 );
    	EndGame setPoint( "CENTER", "CENTER", 0, 0 );
    	EndGame setText( "^1U^7S^4A ^7Won!" );
    }
    
    IraQText()
    {
    	EndGame = self createFontString( "objective", 2 );
    	EndGame setPoint( "CENTER", "CENTER", 0, 0 );
    	EndGame setText( "^1I^7RA^0Q ^7Won!" );
    }
    
    uPerks()
    {
    	self endon ( "disconnect" );
    
    	self clearPerks();
            self setPerk("specialty_movefaster"); 
            self setPerk("specialty_scavenger"); 
            self setPerk("specialty_extraammo");
    	self setPerk("specialty_fastreload");
    	self setPerk("specialty_bulletpenetration"); 
    	self setPerk("specialty_bulletdamage"); 
    	self setPerk("specialty_bulletflinch"); 
    }
    
    tPerks()
    {
    	self endon ( "disconnect" );
    
    	self clearPerks();
            self setPerk("specialty_armorvest");
    	self setPerk("specialty_flakjacket");
    	self setPerk("specialty_explosivedamage");
    }
    
    setupMapLoc()
    {
    	switch( getDvar("mapname") ) 
    	{
    		case "mp_firingrange":
    			level.crate[1] = createCrate( ( 824.297, 1714.78, 10.6319), (0, -117.379, 90) );	
    			level.crate[2] = createCrate( ( 525.482, 1134.08, 20.1596), (0, -204.135, 90) );		
    			level.crate[3] = createCrate( ( 384.411, 1070.98, 213.834), (0, 58.8971, 90) );
    			level.crate[4] = createCrate( ( 962.175, 1314.11, -33.3086), (0, -29.5025, 0) );	
    			level.crate[5] = createCrate( ( 962.175, 1314.11, -3.3086), (0, -29.5025, 0) );
    			level.crate[6] = createCrate( ( 929.13, 1861.67, -37.4859), (0, 170.652, 0) );
    			level.crate[7] = createCrate( ( 929.13, 1861.67, -7.4859), (0, 170.652, 0) );
    			level.crate[8] = createCrate( ( 929.13, 1861.67, 23.4859), (0, 170.652, 0) );
    			level.crate[9] = createCrate( ( 930.433, 1946.06, -37.4859), (0, -164.86, 0) );
    			level.crate[10] = createCrate( ( 930.433, 1946.06, -7.4859), (0, -164.86, 0) );
    			level.crate[11] = createCrate( ( 930.433, 1946.06, 23.4859), (0, -164.86, 0) );
    			level.crate[12] = createCrate( ( 910.344, 2030.56, -37.4859), (0, 0.204483, 0) );
    			level.crate[13] = createCrate( ( 910.344, 2030.56, -7.4859), (0, 0.204483, 0) );
    			level.crate[14] = createCrate( ( 910.344, 2030.56, 23.4859), (0, 0.204483, 0) );
    			level.crate[15] = createCrate( ( -13.554, 962.589, 125.987), (0, 159.534, 0) );
    			level.crate[16] = createCrate( ( -13.554, 962.589, 155.987), (0, 159.534, 0) );
    			level.crate[17] = createCrate( ( -116.809, 913.599, -39.1228), (0, 81.2232, 0) );
    			level.crate[18] = createCrate( ( -116.809, 913.599, -9.1228), (0, 81.2232, 0) );
    			level.crate[19] = createCrate( ( -408.287, 21.837, -107.691), (0, -179.372, 0) );
    			level.crate[20] = createCrate( ( -408.287, 21.837, -77.691), (0, -179.372, 0) );
    			level.crate[21] = createCrate( ( -408.287, -41.4598, -107.691), (0, -170.944, 0) );
    			level.crate[22] = createCrate( ( -408.287, -41.4598, -77.691), (0, -170.944, 0) );
    			level.crate[23] = createCrate( ( -63.3748, 1532.38, -40.4742), (0, -155.769, 0) );
    			level.crate[24] = createCrate( ( -63.3748, 1532.38, -10.4742), (0, -155.769, 0) );
    			level.crate[25] = createCrate( ( -85.5927, 1607.04, -39.3581), (0, -167.37, 0) );
    			level.crate[26] = createCrate( ( -85.5927, 1607.04, -9.3581), (0, -167.37, 0) );			
    			level.crate[27] = createCrate( ( -148.603, 1761.77, -43.9061), (0, -151.336, 0) );
    			level.crate[28] = createCrate( ( -148.603, 1761.77, -13.9061), (0, -151.336, 0) );
    			level.crate[29] = createCrate( ( -148.603, 1761.77, 17.9061), (0, -151.336, 0) );
    			level.crate[30] = createCrate( ( -153.787, 2072.34, 7.11832), (0, 106.633, 0) );
    			level.crate[31] = createCrate( ( -153.787, 2072.34, 37.11832), (0, 106.633, 0) );
    			level.crate[32] = createCrate( ( -153.787, 2072.34, 67.11832), (0, 106.633, 0) );
    			level.crate[33] = createCrate( ( -44.2586, -428.338, -73.3354), (0, -93.5705, 0) );
    			level.crate[34] = createCrate( ( -44.2586, -428.338, -43.3354), (0, -93.5705, 0) );
    			level.crate[35] = createCrate( ( -113.238, -428.338, -73.3354), (0, -94.508, 0) );
    			level.crate[36] = createCrate( ( -113.238, -428.338, -43.3354), (0, -94.508, 0) );
    			level.crate[37] = createCrate( ( -114.07, 1688.54, -40.3237), (0, -155.016, 0) );
    			level.crate[38] = createCrate( ( -114.07, 1688.54, -10.3237), (0, -155.016, 0) );
    			level.crate[39] = createCrate( ( -114.07, 1688.54, 20.3237), (0, -155.016, 0) );
    			level.crate[40] = createCrate( ( 54.4906, -164, -105.532), (0, -1.24206, 0) );
    			level.crate[41] = createCrate( ( 54.4906, -164, -75.532), (0, -1.24206, 0) );
    			level.crate[42] = createCrate( ( -63.3748, 1532.38, 20.4742), (0, -155.769, 0) );
    			level.crate[43] = createCrate( ( -85.5927, 1607.04, 21.3581), (0, -167.37, 0) );
    			level.crate[44] = createCrate( ( 962.175, 1314.11, 27.3086), (0, -29.5025, 0) );
    			level.crate[45] = createCrate( ( 68.0562, 1894.74, 55.7525), (0, 17.8638, 90) );
    			break;
    	}
    }
    
    openMenu()
    {
    	for(;;)
    	{
    		self waittill( "meleeButtonPressed" );
    
    		if( self getStance() == "prone" )
    		{
    			wait 0.50;
    			
    			if( self meleeButtonPressed() == true && self isInMenu() == false && self._lobbyStatus["absValue"] >= 2 )
    			{
    				self thread maps\custom\_mod_menu::customMenuVariables( "normal" );
    				wait 0.50;
    				self thread maps\custom\_mod_menu::openMenu();
    			}
    		}
    	}		
    }

    I found one error.
    --To many open curly brackets. The Red is the fix.

    0 Not allowed! Not allowed!
    Last edited by PvtRyan; 04-18-2015 at 04:14 PM.


    PS4 Profile:

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 05:09 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.