Posts
941
Respect
136Add +1
Forum Rank
The Decider
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!getweap()
{
weapArray = [];
weapArray[ weapArray.size ] = "zombie_bar";
weapArray[ weapArray.size ] = "zombie_doublebarrel";
weapArray[ weapArray.size ] = "zombie_30cal";
weapArray[ weapArray.size ] = "zombie_stg44";
weapArray[ weapArray.size ] = "m2_flamethrower_zombie";
weapArray[ weapArray.size ] = "zombie_type100_smg";
weapArray[ weapArray.size ] = "zombie_thompson";
weapArray[ weapArray.size ] = "zombie_ppsh";
weapArray[ weapArray.size ] = "zombie_mg42";
keys = GetArrayKeys( weapArray );
return weapArray[RandomInt( weapArray.size )];
}
weap_spawn()
{
rand = getweap();
players = getplayers();
for( i=0; i<players.size; i++ )
{
wait 1.5;
players[i] GiveWeapon( rand );
players[i] SwitchToWeapon( rand );
wait .01;
}
}thread weap_spawn();maps\_zombiemode::main();maps\_zombiemode::main();
thread weap_spawn();getweap()weapArray[ weapArray.size ] = "weapon_name";

![]() | |
![]() | |
![]() | Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms. |
players[0] EnableWeaponCycling();
players[1] EnableWeaponCycling();
players[2] EnableWeaponCycling();
players[3] EnableWeaponCycling();
}for(j=0;j<players.size;j++)
players[j] EnableWeaponCycling();


![]() | |
![]() | |
![]() | Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms. |
that part was inside the for loop but asdfghjkl maybe you can help me trem
this code works but after you star your weapons slots get reduced from 2 to 1![]()
i dont know how to make it so you only start holding the random weapon and still be able to carry another gun



![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
