Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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:
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?
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?
C++ Code
  1. 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?
C++ Code
  1. 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 5,921 11-07-2013, 13:41
Last Post: Nekochan
Question Help Mw2 weapon skin question FroxIVx4 1 2,969 10-13-2013, 16:54
Last Post: hmann
Question Help Weapon Name iRoNinja 8 6,636 10-08-2013, 08:31
Last Post: iRoNinja
  Player can write Fl0w_.JACKDAN 2 3,374 09-19-2013, 16:36
Last Post: Fl0w_.JACKDAN
  Mw2 weapon porting? Cuddlyedits 3 4,770 09-15-2013, 16:43
Last Post: DidUknowiPwn
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,549 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
  Help [C#] WebClient how to know real url [solved] narkos 21 13,076 09-09-2013, 15:21
Last Post: surtek
Information Help How to edit new derived entry? (Solved) SSonic70 1 2,756 08-20-2013, 15:29
Last Post: Nekochan
  Using Cheat Engine 6.2 to change BO2 address values wzlrsaur 6 8,150 08-06-2013, 06:28
Last Post: 14th
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,779 07-27-2013, 23:53
Last Post: DidUknowiPwn

Forum Jump:


Users browsing this thread:
1 Guest(s)

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