Help Forbid a player to change weapon. - SOLVED
#1
Hi.
Is there an command to allow or disallow a player switching weapons?

I mean it like you have this code:
Code:
giveWeapons() { self DisalowSwitch(); self giveWeapon("l96a1_vzoom_extclip_mp"); self giveWeapon("asp_mp"); self switchToWeapon("l96a1_vzoom_extclip_mp"); }
Now he coud only use the l96a1 and can't change to weapon asp.
But after the command:
Code:
self AlowSwitch();
he can use mouse wheel and numbers to switch to the weapon asp.

Is this possible?
Sorry for bad English Blush -> *GERMAN*
Reply

#2
self DisableWeaponCycling();
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#3
(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?
Code:
self EnableWeaponCycling();
Sorry for bad English Blush -> *GERMAN*
Reply

#4
(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?
Code:
self EnableWeaponCycling();

Jep just like that
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Sentry Gun kill = Player kill Snake 8 8,251 11-07-2013, 13:41
Last Post: Nekochan
Question Help Mw2 weapon skin question FroxIVx4 1 3,878 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 8,825 10-08-2013, 08:31
Last Post: iRoNinja
  Player can write Fl0w_.JACKDAN 2 5,136 09-19-2013, 16:36
Last Post: Fl0w_.JACKDAN
  Mw2 weapon porting? Cuddlyedits 3 6,523 09-15-2013, 16:43
Last Post: DidUknowiPwn
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 44,653 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
  Help [C#] WebClient how to know real url [solved] narkos 21 17,855 09-09-2013, 15:21
Last Post: surtek
Information Help How to edit new derived entry? (Solved) SSonic70 1 3,599 08-20-2013, 15:29
Last Post: Nekochan
  Using Cheat Engine 6.2 to change BO2 address values wzlrsaur 6 10,707 08-06-2013, 06:28
Last Post: 14th
Exclamation [Request] Random Weapon At Spawn Scripts18 3 6,804 07-27-2013, 23:53
Last Post: DidUknowiPwn

Forum Jump:


Users browsing this thread:
1 Guest(s)

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