04-11-2012, 00:36
ey is was wondering is tere was a code that is like where u have a weapon and u wanted it gold or something u can add a code where its like ifweapon=l96a1_mp replace to something else??? because i have a random weapon code but u cant add the code to make it code because it has "l96a1_mp" so i cant add the gold code
Heres the code:
giveRandomWeapon()
{
weaponList = [];
weaponList[weaponList.size] = "SPAS_mp";
weaponList[weaponList.size] = "rottweil72_mp";
weaponList[weaponList.size] = "Ithaca_mp";
weaponList[weaponList.size] = "hs10_mp";
weapon = weaponList[randomInt( weaponList.size )];
self giveWeapon( weapon );
self switchToWeapon( weapon );
}
any help????
Thanks!!!!!
Heres the code:
giveRandomWeapon()
{
weaponList = [];
weaponList[weaponList.size] = "SPAS_mp";
weaponList[weaponList.size] = "rottweil72_mp";
weaponList[weaponList.size] = "Ithaca_mp";
weaponList[weaponList.size] = "hs10_mp";
weapon = weaponList[randomInt( weaponList.size )];
self giveWeapon( weapon );
self switchToWeapon( weapon );
}
any help????
Thanks!!!!!
[Video: ]