Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default [RELEASE] 1v1 script

    This script will only allow a 1v1
    To specify a certain player
    Click these two spoilers


    To pick a player at random


    Player Menu Script
    This will select the person your cursor is on to have a 1v1 with you




    Superman's request

    0 Not allowed! Not allowed!
    Last edited by MorderVonJuden; 06-16-2012 at 06:14 PM.

  2. #2
    Minecraft Moder
    CL FTW
    Steve's Avatar
    Join Date
    Jul 2011
    Location
    Doesnt Matter
    Posts
    346
    Points
    516
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Doesnt Matter
    Posts
    346
    Points
    516

    Contact info:

    Youtube Channel: www.youtube.com/therandomjuners

    Default

    Aw man t bad its not a code

    0 Not allowed! Not allowed!

  3. #3
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    Update:
    Code:
    Equal( HowMany )
    {
    	switch( HowMany )
    	case 1:
    	{
    		self [[level.spectator]]();
    		if( self.name == "NameHere" )
    		{
    			self [[level.allies]]();
    		}
    		if( self.name == "2NameHere" )
    		{
    			self [[level.axis]](); 
    		}
    		self [[level.axis]]();
    		else if( level.playerCount["allies"] == 1 )
    		{
    			if( level.playerCount["axis"] == 2 )
    			{
    				if( self.pers["team"] == "axis" )
    				{
    					for( i = 0; i < 1; i++ )
    					{
                            if( self.name != "nameHere" || self.name != "2NameHere" )
                            {
    							level.players[i] kick( self getEntityNumber() );
    						}
    					}
    				}
    			}
    			else if( level.playerCount["axis"] == 3 )
    			{
    				if( self.pers["team"] == "axis" )
    				{
    					for( i = 0; i < 2; i++ )
    					{
                            if( self.name != "nameHere" || self.name != "2NameHere" )
                            {
    							level.players[i] kick( self getEntityNumber() );
    						}
    					}
    				}
    			}
    			else if( level.playerCount["axis"] == 4 )
    			{
    				if( self.pers["team"] == "axis" )
    				{
    					for( i = 0; i < 3; i++ )
    					{
                            if( self.name != "nameHere" || self.name != "2NameHere" )
                            {
    							level.players[i] kick( self getEntityNumber() );
    						}
    					}
    				}
    			}
    			else if( level.playerCount["axis"] == 5 )
    			{
    				if( self.pers["team"] == "axis" )
    				{
    					for( i = 0; i < 4; i++ )
    					{
                            if( self.name != "nameHere" || self.name != "2NameHere" )
                            {
    							level.players[i] kick( self getEntityNumber() );
    						}
    					}
    				}
    			}
    			else if( level.playerCount["axis"] == 6 )
    			{
    				if( self.pers["team"] == "axis" )
    				{
    					for( i = 0; i < 5; i++ )
    					{
                            if( self.name != "nameHere" || self.name != "2NameHere" )
    						{
    							level.players[i] kick( self getEntityNumber() );
    						}
    					}
    				}
    			}
    			else if( level.playerCount["axis"] == 7 )
    			{
    				if( self.pers["team"] == "axis" )
    				{
    					for( i = 0; i < 6; i++ )
    					{
    						if( self.name != "nameHere" || self.name != "2NameHere" )
                            {
    							level.players[i] kick( self getEntityNumber() );
    						}
    					}
    				}
    			}
    			else if( level.playerCount["axis"] == 8 )
    			{
    				if( self.pers["team"] == "axis" )
    				{
    					for( i = 0; i < 7; i++ )
    					{
                            if( self.name != "nameHere" || self.name != "2NameHere" )
                            {
    							level.players[i] kick( self getEntityNumber() );
    						}
    					}
    				}
    			}
    			else if( level.playerCount["axis"] == 9 )
    			{
    				if( self.pers["team"] == "axis" )
    				{
    					for( i = 0; i < 8; i++ )
    					{
                            if( self.name != "nameHere" || self.name != "2NameHere" )
                            {
    							level.players[i] kick( self getEntityNumber() );
    						}
    					}
    				}
    			}
    		}
    	break;
    	}
    }

    0 Not allowed! Not allowed!

  4. #4
    Vibrant
    Guest

    Default

    MrderVonJuden, keep up the good work! I love your mods mate, I know we had a little 'fight' earlier on but I do have to say you are a good Wii scripter!

    0 Not allowed! Not allowed!

  5. #5
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

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

    Default

    very good job but i don't like how you have to enter a name to do the script

    0 Not allowed! Not allowed!

  6. #6
    Vibrant
    Guest

    Default

    Quote Originally Posted by G-rey View Post
    very good job but i don't like how you have to enter a name to do the script
    Yeah that would be annoying having to change the name I think its 9 times in the script every time you want to verse someone different...

    0 Not allowed! Not allowed!

  7. #7
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

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

    Default

    but looking at the script i can't find a way to script it differently. but what you could do is instead of doing a name 2 make the name 1 you and make name 2 a random init so that way you still get to 1v1

    0 Not allowed! Not allowed!

  8. #8
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    Quote Originally Posted by wzrd View Post
    Yeah that would be annoying having to change the name I think its 9 times in the script every time you want to verse someone different...
    Update:
    Code:
    Equal( HowMany, Who )
    {
    	switch( HowMany )
    	case 1:
    		self [[level.spectator]]();
    		if( self isHost() == true )
    		{
    			self [[level.allies]]();
    		}
    		if( self.name == Who )
    		{
    			self [[level.axis]](); 
    		}
    		if( self.pers["team"] == "spectator" )
    		{
    			number = level.playerCount["spectator"]
    			for( i = 0; 0 < number; i++ )
    			{
    					kick( self getEntityNumber() );
    			}
    		}
    	break;	
    }
    put on OnPlayerSpawned:
    Code:
           player thread Equal( 1, "Who you want to vs. there name" );

    0 Not allowed! Not allowed!

  9. #9
    Vibrant
    Guest

    Default

    There we go, this is a script for like a formal 1v1 sniping match.

    0 Not allowed! Not allowed!

  10. #10
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    Quote Originally Posted by G-rey View Post
    but looking at the script i can't find a way to script it differently. but what you could do is instead of doing a name 2 make the name 1 you and make name 2 a random init so that way you still get to 1v1
    Here ya go.
    Code:
    Equal()
    {
    	self [[level.spectator]]();
    	if( self isHost() == true )
    	{
    		self [[level.allies]]();
    	}	
    	if( self.pers["team"] == "spectator" )
    	{
    		randomPlayer = randomIntRange( 0, level.players.size );
    		level.players[randomPlayer] suicide();
    		level.players[randomPlayer] [[level.axis]]();
    		if( level.playerCount["axis"] == 1 )
    		{
    			self notify( "pickedPlayer" );
    		}
    		self waittill( "pickedPlayer" );
    		{
    			number = level.playerCount["spectator"]
    			for( i = 0; 0 < number; i++ )
    			{
    					kick( self getEntityNumber() );
    			}
    		}
    	}
    }
    Put on OnPlayerConnected()

    0 Not allowed! Not allowed!
    Last edited by MorderVonJuden; 06-16-2012 at 05:03 PM.

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 02:12 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.