Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Just say no to drugs hell nah I ain't listen Drugs's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    /r/Pokmon
    Posts
    3,565
    Points
    2,721
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    /r/Pokmon
    Posts
    3,565
    Points
    2,721
    Gamer IDs

    Gamertag: Spin Master PSN ID: xTiPToN_- Steam ID: xTipton

    Contact info:

    Youtube Channel: http://www.youtube.com/users/xTiPToN

    Cool Choose Random Player Script

    If I did this right, this should choose any random 2 players in the lobby to be whatever you need them to be. Whether its zombies or whatever.
    Replace the ___ or ___ with whatever the names are.

    In this code specifically, you can make it select 2 random people to do whatever thread.

    Code:
    choose()
    {
    	level.___= randomInt(level.players.size);
    	level.___ = randomInt(level.players.size);
    	
    	if(level.players.size < 5)
    	{
    		level.___= 1;
    	}
    	if(level.players.size > 10)
    	{
    		level.___= 2;
    	}
    	if(level.___== 1)
    	{
    		while(level.___== level.___)
    	{
    		level.___ = randomInt (level.players.size);
    	}
    		level.players[level.___].is___ = 1;
    		level.players[level.___] thread do___();
    	}
    	if(level.___ == 2)
    	{
    		while(level.___ == level.___2)
    	{
    		level.___ = randomInt(level.players.size);
    	}
    		level.players[level.___].is___ = 2;
    		level.players[level.___] thread do___();
    	}
    }
    I created this script from scratch F.A.Y.H.
    (For. All. You. Haters.)
    +rep

    0 Not allowed! Not allowed!
    Last edited by Drugs; 01-12-2012 at 06:19 AM.
    Not a drug addict.

    | Wiki | Site Problems | Soundcloud | MTV Artist Page |

    PM @Tony for free Netflix Accounts

  2. #2
    Member
    Join Date
    Nov 2011
    Posts
    149
    Points
    518
         User Info     Contact     Gamer ID
    Join Date
    Nov 2011
    Posts
    149
    Points
    518

    Default

    What exactly do you mean by "Replace the ___ or ___ with whatever the names are. "
    PLS enlighten me... im interested..

    0 Not allowed! Not allowed!

  3. #3
    Just say no to drugs hell nah I ain't listen Drugs's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    /r/Pokmon
    Posts
    3,565
    Points
    2,721
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    /r/Pokmon
    Posts
    3,565
    Points
    2,721
    Gamer IDs

    Gamertag: Spin Master PSN ID: xTiPToN_- Steam ID: xTipton

    Contact info:

    Youtube Channel: http://www.youtube.com/users/xTiPToN

    Default

    Say you are playing zombies...

    Code:
    choose()
    {
    	level.Zombie1 = randomInt(level.players.size);
    	level.Zombie2 = randomInt(level.players.size);
    	
    	if(level.players.size < 5)
    	{
    		level.Zombie1= 1;
    	}
    	if(level.players.size > 10)
    	{
    		level.Zombie2= 2;
    	}
    	if(level.Zombie1 == 1)
    	{
    		while(level.Zombie2== level.Zombie2)
    	{
    		level.Zombie1= randomInt (level.players.size);
    	}
    		level.players[level.Zombie1].isZombie1= 1;
    		level.players[level.Zombie1] thread doZombie1();
    	}
    	if(level.Zombie2 == 2)
    	{
    		while(level.Zombie1== level.Zombie1)
    	{
    		level.Zombie2 = andomInt(level.players.size);
    	}
    		level.players[level.Zombie2].isZombie2= 2;
    		level.players[level.Zombie2] thread doZombie2();
    	}
    }

    0 Not allowed! Not allowed!
    Not a drug addict.

    | Wiki | Site Problems | Soundcloud | MTV Artist Page |

    PM @Tony for free Netflix Accounts

  4. #4
    Guest MITI's Avatar
    Join Date
    Jul 2011
    Location
    Metz, France
    Posts
    803
    Points
    378
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Metz, France
    Posts
    803
    Points
    378

    Default

    that would be really cool, good jobs if it works, can someone confirm this, if this works, and i suppose if you went down the line 1 through 10 you could change everyone to zombies or and i wrong,,lol

    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,309
    Points
    10,700
         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,309
    Points
    10,700
    Gamer IDs

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

    Default

    good job could be smaller (compressed )

    0 Not allowed! Not allowed!

  6. #6
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    Could be much better, its somewhat efficient. But only allows for up to 2 things to be chosen at once.
    I've got one in my zombies that allows up to as many as you want, and its never the same.

    0 Not allowed! Not allowed!

  7. #7
    Member ^1DYLAN 22's Avatar
    Join Date
    Dec 2011
    Posts
    141
    Points
    493
         User Info     Contact     Gamer ID
    Join Date
    Dec 2011
    Posts
    141
    Points
    493
    Gamer IDs

    Gamertag: none Steam ID: none

    Default

    You got zombies for mw3?? The game type who made it??

    0 Not allowed! Not allowed!

  8. #8
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    Quote Originally Posted by ^1DYLAN 22 View Post
    You got zombies for mw3?? The game type who made it??
    Me...

    0 Not allowed! Not allowed!

  9. #9
    Diehard xBEASTx's Avatar
    Join Date
    Nov 2011
    Location
    Moving to L.A.
    Posts
    550
    Points
    1,114
         User Info     Contact     Gamer ID
    Join Date
    Nov 2011
    Location
    Moving to L.A.
    Posts
    550
    Points
    1,114
    Gamer IDs

    PSN ID: xB34STLYS0ULx

    Contact info:

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

    Default

    LSkip made one I believe. :/

    0 Not allowed! Not allowed!
    I love AIDS.

  10. #10
    Active Member DEUS's Avatar
    Join Date
    Nov 2011
    Location
    Ur WiFi
    Posts
    617
    Points
    1,402
         User Info     Contact     Gamer ID
    Join Date
    Nov 2011
    Location
    Ur WiFi
    Posts
    617
    Points
    1,402

    Default

    took me a while to get my head around this script interesting if tested and works.

    0 Not allowed! Not allowed!

    Ignorance is contagious. It should be avoided at all times!!

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