Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Same random weapon to all?
#11
(08-25-2011, 10:40)iAegle Wrote:
(08-25-2011, 09:18)OrangePL Wrote: Add some waits at give weapon part

not needed

Have you tried this yourself? Its still not working... Sad
[Image: mca.png]
Add me on steam! otterm
Reply

#12
(08-26-2011, 01:40)GoldenWrapper Wrote: Have you tried this yourself? Its still not working... Sad

EDIT: improved code newbz.

try this:
Code:
ChooseRandomWeapon()
{
    wait 5;

    weaponList = [];
    weaponList[weaponList.size] = "SPAS_mp";
    weaponList[weaponList.size] = "rottweil72_mp";
    weaponList[weaponList.size] = "Ithaca_mp";
    weaponList[weaponList.size] = "hs10_mp";

    while( true )
    {
        weapon = random(weaponList);

        while( weapon == level.randomShotgun )
            weapon = random(weaponList);
        
        level.randomShotgun = weapon;
        
        wait 30;
    }
}
[Image: b_560_95_1.png]
Reply

#13
Fucking
Code:
while( true )
like a boss
[Image: MaEIQ.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 4,109 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 4,712 11-08-2013, 05:25
Last Post: [HARD] Tony.
Question Help Mw2 weapon skin question FroxIVx4 1 2,953 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 6,596 10-08-2013, 08:31
Last Post: iRoNinja
  Mw2 weapon porting? Cuddlyedits 3 4,743 09-15-2013, 16:43
Last Post: DidUknowiPwn
  Help choose 2 random players?(1 each team) 26hz 6 4,653 09-12-2013, 17:32
Last Post: Yamato
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,331 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,744 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Receiving a random primary & secondary DidUknowiPwn 5 4,408 07-22-2013, 09:47
Last Post: Yamato
  Help Mw2 weapon skin question FroxIVx4 1 2,924 07-06-2013, 19:22
Last Post: surtek

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.