• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Akimbo guns
#1
Hey I'm making an akimbo gun but I can't shoot with it... Code :

Code:
if (Message == "!irock")
            {
              
                int PerkID = GetPerk("specialty_reducedsway");
                iPrintLnBold("^4Your welcome!", Client);
                int WepID = GetWeapon("iw5_acr_mp");
                Client.Other.PrimaryWeaponAkimbo=true;
                Client.Other.PrimaryWeapon = WepID;
                Client.Other.CurrentWeapon = WepID;
                Client.Ammo.PrimaryAmmo += 1000;
            }

Please help, thanks
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
  Reply
#2
Akimbo primary weapons got some bugs, if you change to secondary weapon and back to primary you can't shoot. In the plugin I made I did it like this:

Code:
if (Message.StartsWith("!akimboacr"))
                    {
                        int weapon = GetWeapon("iw5_acr_mp");
                        Client.Other.PrimaryWeaponAkimbo = true;
                        Client.Other.SecondaryWeaponAkimbo = true;
                        Client.Other.CurrentWeapon = weapon;
                        Client.Other.SecondaryWeapon = weapon;
                        Client.Other.PrimaryWeapon = weapon;
                        return ChatType.ChatNone;
                    }

It will change secondary and primary to the same weapon so you can't change between them.
I hope this helps you
[-] The following 1 user says Thank You to 8q4s8 for this post:
  • 99IRock
  Reply
#3
(11-17-2012, 01:44)8q4s8 Wrote: Akimbo primary weapons got some bugs, if you change to secondary weapon and back to primary you can't shoot. In the plugin I made I did it like this:

Code:
if (Message.StartsWith("!akimboacr"))
                    {
                        int weapon = GetWeapon("iw5_acr_mp");
                        Client.Other.PrimaryWeaponAkimbo = true;
                        Client.Other.SecondaryWeaponAkimbo = true;
                        Client.Other.CurrentWeapon = weapon;
                        Client.Other.SecondaryWeapon = weapon;
                        Client.Other.PrimaryWeapon = weapon;
                        return ChatType.ChatNone;
                    }

It will change secondary and primary to the same weapon so you can't change between them.
I hope this helps you

Aha, very smart nice man! Thank you

EDIT:
I have another problem now:

Code:
if (Message == "!irock")
            {
              
                int PerkID = GetPerk("specialty_reducedsway");
                iPrintLnBold("^4Your welcome!", Client);
                int WepID = GetWeapon("iw5_acr_mp");
                Client.Other.PrimaryWeaponAkimbo=true;
                Client.Other.SecondaryWeaponAkimbo = true;
                Client.Other.PrimaryWeapon = WepID;
                Client.Other.SecondaryWeapon = WepID;
                Client.Other.CurrentWeapon = WepID;
                Client.Ammo.PrimaryAmmo += 500;
                Client.Ammo.SecondaryAkimboAmmo = 500;
                return ChatType.ChatNone;
            }

My secondary ammo is with reload
And primary NOT so I shoot 500 bullets without needing to reload..
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
  Reply
#4
I think you have to use
Client.Ammo.PrimaryAmmoClip
  Reply
#5
(11-17-2012, 13:17)8q4s8 Wrote: I think you have to use
Client.Ammo.PrimaryAmmoClip

Didn't test yet but I will.
One problem more, its so buggy that when you change from gun you cant shoot anymore
(thats fixed now jut make both slot 1 and 2 the akimbo)
But now If I go to a fence, and stand for it In your screen it says "Press space to <wierdarrow>"
If I do that my gun is bugged and I cant shoot anymore
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
  Reply
#6
(11-17-2012, 23:40)99IRock Wrote:
(11-17-2012, 13:17)8q4s8 Wrote: I think you have to use
Client.Ammo.PrimaryAmmoClip

Didn't test yet but I will.
One problem more, its so buggy that when you change from gun you cant shoot anymore
(thats fixed now jut make both slot 1 and 2 the akimbo)
But now If I go to a fence, and stand for it In your screen it says "Press space to <wierdarrow>"
If I do that my gun is bugged and I cant shoot anymore
Yes, we know the problem. I also tried to solve it, but it seems it can't be solved.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Big Grin Help akimbo [HARD] Tony. 5 1,176 03-26-2013, 15:19
Last Post: hillbilly
  [Release] Golden guns and all titles AdamOwnz 34 11,549 03-12-2013, 03:12
Last Post: REAB66
Rainbow [Release] [Code] Akimbo weapon fix (new) Nekochan 11 3,843 02-27-2013, 23:49
Last Post: Krusty123
  Help akimbo code new [HARD] Tony. 1 820 02-26-2013, 18:14
Last Post: 99IRock
  Help Akimbo Fix 99IRock 5 1,193 02-14-2013, 21:00
Last Post: 99IRock
Rainbow [Release] Every gun akimbo 99IRock 15 3,882 01-02-2013, 17:18
Last Post: 99IRock
  Akimbo any weapon? choobie 2 856 12-27-2012, 22:56
Last Post: 99IRock
Rainbow [Release] [Code] Akimbo weapon fix Nekochan 9 2,673 12-20-2012, 14:24
Last Post: 99IRock
Question Help My guns 99IRock 4 1,235 11-30-2012, 14:52
Last Post: 99IRock
Question Akimbo Primary Weapons Kasperle 4 1,445 11-17-2012, 13:13
Last Post: 8q4s8

Forum Jump:


Users browsing this thread: 1 Guest(s)