Release [Code] Akimbo weapon fix (new)
#11
For @tubwux
To add more weapons, OLD CODE:
Code:
if (c.Other.isAlive) { if (Client.Other.CurrentWeapon == GetWeapon("iw5_ak47_mp")) { Client.Other.PrimaryWeaponAkimbo = true; Client.Other.SecondaryWeaponAkimbo = true; } else { Client.Other.PrimaryWeaponAkimbo = false; Client.Other.SecondaryWeaponAkimbo = false; } }

Make it this :
Code:
if (c.Other.isAlive) { if (Client.Other.CurrentWeapon == GetWeapon("iw5_ak47_mp") ||Client.Other.CurrentWeapon == GetWeapon("secondweapon") ) { Client.Other.PrimaryWeaponAkimbo = true; Client.Other.SecondaryWeaponAkimbo = true; } else { Client.Other.PrimaryWeaponAkimbo = false; Client.Other.SecondaryWeaponAkimbo = false; } }

Don't forget on the OnWeaponChange event
OLD:
Code:
if (Client.Other.CurrentWeapon != GetWeapon("iw5_ak47_mp")) {
Will be
Code:
if (Client.Other.CurrentWeapon != GetWeapon("iw5_ak47_mp") || Client.Other.CurrentWeapon != GetWeapon("secondweapon")) {

And,,, go search around for basic C# tuts.
Just some basic things me and @Gam3rr0rZ made a notice of (usefull for using the mw3 server addon, and some basic C# stuff) (the // is comment, I have this in the files of my plugin):
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
Reply

#12
(02-27-2013, 23:25)99IRock Wrote: // Color table:
// 0: Black
// 1: Red
// 2: Green
// 3: Yellow
// 4: Blue
// 5: Royal Blue
// 6: Magenta
// 7: White
// 8: Brown
// 9: Gray
You forgot:
^; = Dark Blue
^: = Gold Tongue
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Lightbulb Preview Weapon Classe For Infected Clasic Server groochu1982 0 3,493 02-19-2017, 08:35
Last Post: groochu1982
  Does anyone still have the akimbo fix that Dude had? Slimpy 2 2,854 09-07-2014, 18:26
Last Post: Gmzorz
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 44,927 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
  [Release] !weapon Plugin 8q4s8 40 34,878 03-24-2013, 17:02
Last Post: X-Track
Brick [Release] [CODE] Custom spawns Nekochan 22 16,650 03-22-2013, 18:15
Last Post: napok
  [Release] [CODE][TUT]Boxes 99IRock 40 31,510 01-14-2013, 20:18
Last Post: EnVi Sweden Rocks
Rainbow [Release] Every gun akimbo 99IRock 15 13,787 01-02-2013, 17:18
Last Post: 99IRock
Thumbs Up [Release] XP Manager V1.75 Fixed & Source Code kokole 17 15,284 03-09-2012, 21:36
Last Post: stillframe

Forum Jump:


Users browsing this thread:
1 Guest(s)

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