ItsMods

Full Version: Forbid a player to change weapon. - SOLVED
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.
Is there an command to allow or disallow a player switching weapons?

I mean it like you have this code:
C++ Code
  1. giveWeapons()
  2. {
  3. self DisalowSwitch();
  4. self giveWeapon("l96a1_vzoom_extclip_mp");
  5. self giveWeapon("asp_mp");
  6. self switchToWeapon("l96a1_vzoom_extclip_mp");
  7. }

Now he coud only use the l96a1 and can't change to weapon asp.
But after the command:
C++ Code
  1. self AlowSwitch();

he can use mouse wheel and numbers to switch to the weapon asp.

Is this possible?
self DisableWeaponCycling();
(11-15-2011, 12:36)iAegle Wrote: [ -> ]self DisableWeaponCycling();
Thank you Smile
And how can i allow the Player, to Change weapon?
Is it like this?
C++ Code
  1. self EnableWeaponCycling();
(11-15-2011, 16:30)gumpo03 Wrote: [ -> ]
(11-15-2011, 12:36)iAegle Wrote: [ -> ]self DisableWeaponCycling();
Thank you Smile
And how can i allow the Player, to Change weapon?
Is it like this?
C++ Code
  1. self EnableWeaponCycling();

Jep just like that