ItsMods

Full Version: Same random weapon to all?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(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
(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;
    }
}
Fucking
Code:
while( true )
like a boss
Pages: 1 2