Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    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 [Release]Create-A-Sharpshooter

    NOTE:
    Add to onPlayerConnected()
    if you add to onPlayerSpawned then it will restart when you die

    Code:
    sharp( one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen )
    {
    	self endon("death");
    	self endon("disconnect");
    
    	self.game = 1;
    
    	for(;;)
    	{
    
    		while( self.game == 1 )
    		{
    			self takeAllWeapons();
    			self giveWeapon( one );
    			self giveMaxAmmo( one );
    			self switchToWeapon( one );
    			wait 40;
    			self takeAllWeapons();
    			self giveWeapon( two );
    			self giveMaxAmmo( two );
    			self switchToWeapon( two );
    			wait 40;
    			self takeAllWeapons();
    			self giveWeapon( three );
    			self giveMaxAmmo( three );
    			self switchToWeapon( three );
    			wait 40;
    			self takeAllWeapons();
    			self giveWeapon( four );
    			self giveMaxAmmo( four );
    			self switchToWeapon( four );
    			wait 40;
    			self takeAllWeapons();
    			self giveWeapon( five );
    			self giveMaxAmmo( five );
    			self switchToWeapon( five );
    			wait 40;
    			self takeAllWeapons();
    			self giveWeapon( six );
    			self giveMaxAmmo( six );
    			self switchToWeapon( six );
    			wait 40;
    			self takeAllWeapons();
    			self giveWeapon( seven );
    			self giveMaxAmmo( seven );
    			self switchToWeapon( seven );
    			wait 40;
    			self takeAllWeapons();
    			self giveWeapon( eight );
    			self giveMaxAmmo( eight );
    			self switchToWeapon( eight );
    			wait 40;
    			self takeAllWeapons();
    			self giveWeapon( nine );
    			self giveMaxAmmo( nine );
    			self switchToWeapon( nine );
    			wait 40;
    			self takeAllWeapons();
    			self giveWeapon( ten );
    			self giveMaxAmmo( ten );
    			self switchToWeapon( ten );
    			wait 40;
    			self takeAllWeapons();
    			self giveWeapon( eleven );
    			self giveMaxAmmo( eleven );
    			self switchToWeapon( eleven );
    			wait 40;
    			self takeAllWeapons();
    			self giveWeapon( twelve );
    			self giveMaxAmmo( twelve );
    			self switchToWeapon( twelve );
    			wait 40;
    			self takeAllWeapons();
    			self giveWeapon( thirteen );
    			self giveMaxAmmo( thirteen );
    			self switchToWeapon( thirteen );
    			wait 40;
    			self takeAllWeapons();
    			self giveWeapon( fourteen );
    			self giveMaxAmmo( fourteen );
    			self switchToWeapon( fourteen );
    			wait 40;
    			self takeAllWeapons();
    			self giveWeapon( fifteen );
    			self giveMaxAmmo( fifteen );
    			self switchToWeapon( fifteen );
    			wait 40;
    			self.game = 0;
    			thread maps\mp\gametypes\_globallogic::forceEnd( false );
    		}
    
    	}
    }
    what you would add to onPlayerConnected() would be:
    Code:
    player thread sharp( "gun_mp", "gun_mp", "gun_mp", "gun_mp", "gun_mp", "gun_mp", "gun_mp", "gun_mp", "gun_mp", "gun_mp", "gun_mp", "gun_mp", "gun_mp", "gun_mp", "gun_mp" );

    0 Not allowed! Not allowed!

  2. #2
    Member
    Join Date
    Jul 2011
    Posts
    51
    Points
    122
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Posts
    51
    Points
    122

    Contact info:

    Youtube Channel: http://www.youtube.com/user/KMLP589

    Default

    nice, did u make this?

    0 Not allowed! Not allowed!

  3. #3
    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

    Quote Originally Posted by Amadeus View Post
    nice, did u make this?
    yes i made it

    0 Not allowed! Not allowed!

  4. #4
    Wii U Section Moderator
    Computer Engineer
    MrOwnership's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
    Gamer IDs

    Steam ID: MrOwnership Wii Code: MrOwnership

    Default

    your while loop only cycles through once so there is no point of it

    0 Not allowed! Not allowed!

  5. #5
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,304
    Points
    10,693
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,304
    Points
    10,693
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    there is a easier way of doing this

    grey if u aplie this like this it is smaller and works better

    blah()
    {
    self.selc = 0;
    self.gun = [];
    self.gun[0] = gun;
    self.gun[1] = gun;
    for(;;)
    {
    if( self.selc = self.gun.size -1 )
    {
    self.selc
    }
    else
    {
    self.selc++;
    wait 0.01;
    }
    self takeAllWeapons();
    self giveWeapon( self.gun[self.selc] );
    self giveMaxAmmo(self.gun[self.selc]);
    self switchToWeapon(self.gun[self.selc]);
    wait 20;
    }
    }

    0 Not allowed! Not allowed!

  6. #6
    Wii U Section Moderator
    Computer Engineer
    MrOwnership's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
    Gamer IDs

    Steam ID: MrOwnership Wii Code: MrOwnership

    Default

    or something like this
    Code:
    sharp( one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen )
    {
    	self endon("death");
    	self endon("disconnect");
    
    	self.gun = [];
    	self.gun[0]=one
    	self.gun[1]=two
    	...
    	self.gun[14]=fifteen
    	
    	for(i=0;i<15;i++)
    	{
    	self takeAllWeapons();
    	self giveWeapon( self.gun[i] );
    	self giveMaxAmmo( self.gun[i] );
    	self switchToWeapon( self.gun[i] );
    	wait 40;
    	}
    	thread maps\mp\gametypes\_globallogic::forceEnd( false );
    }

    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

    Quote Originally Posted by tony View Post
    there is a easier way of doing this

    grey if u aplie this like this it is smaller and works better
    i know there is always an easier way when i make something...i'm just doing it because i want to try to make things without ppl's help

    0 Not allowed! Not allowed!

  8. #8
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,304
    Points
    10,693
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,304
    Points
    10,693
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    @ overachiver, it loops, if you look youl see its in a while statement which continues forever (or until while(0) instead of (1))

    @grey, no need to snap i was just pointing out a better way of doing it to help you get better at scripting

    0 Not allowed! Not allowed!

  9. #9
    Member
    Join Date
    Jul 2011
    Posts
    51
    Points
    122
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Posts
    51
    Points
    122

    Contact info:

    Youtube Channel: http://www.youtube.com/user/KMLP589

    Default

    dont u care about what they say g-rey, ur doin nice work

    0 Not allowed! Not allowed!

  10. #10
    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

    Quote Originally Posted by tony View Post
    @grey, no need to snap i was just pointing out a better way of doing it to help you get better at scripting
    srry i didn't mean to a be a hater just sayin i'm trying to find me own way of coding and yeh....

    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 10:42 PM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.