Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help akimbo
#1
Big Grin 
hey my code is not trading in, Could not you fix me, only work two akimbo P90 and AK47 and others do not work when I say,!dia, mage, not what happens here is the code
using System.Collections.Generic;
using System.IO;
using System;
using Addon;

namespace AkimboFix
{
public class CMain : CPlugin
{
public override ChatType OnSay(String Message, ServerClient Client, bool Teamchat)
{
if (Message == "!p90a")
{
if (Client.XUID == "011000010782a850" || Client.XUID == "01100001075c77b8") // Your XUIDS
{
int fad = GetWeapon("iw5_p90_mp_camo08");

Client.Other.PrimaryWeaponAkimbo = true;
Client.Other.PrimaryWeapon = fad;
Client.Ammo.PrimaryAmmoClip = 5000;
Client.Ammo.PrimaryAmmoClip = 5000;
return ChatType.ChatNone;
}

}
if (Message == "!ak47a")
{
if (Client.XUID == "011000010782a850" || Client.XUID == "01100001075c77b8") // Your XUIDS
{
int fad = GetWeapon("iw5_ak47_mp_camo08");

Client.Other.PrimaryWeaponAkimbo = true;
Client.Other.PrimaryWeapon = fad;
Client.Ammo.PrimaryAmmoClip = 5000;
Client.Ammo.PrimaryAmmoClip = 5000;
return ChatType.ChatNone;
}

}
return ChatType.ChatContinue;
if (Message == "!acra")
{
if (Client.XUID == "011000010782a850" || Client.XUID == "01100001075c77b8") // Your XUIDS
{
int fad = GetWeapon("iw5_acr_mp_camo02");

Client.Other.PrimaryWeaponAkimbo = true;
Client.Other.PrimaryWeapon = fad;
Client.Ammo.PrimaryAmmoClip = 5000;
Client.Ammo.PrimaryAmmoClip = 5000;
return ChatType.ChatNone;
}

}
if (Message == "!dia")
{
if (Client.XUID == "011000010782a850" || Client.XUID == "01100001075c77b8") // Your XUIDS
{
int fad = GetWeapon("iw5_deserteagle_mp");

Client.Other.PrimaryWeaponAkimbo = true;
Client.Other.PrimaryWeapon = fad;
Client.Ammo.PrimaryAmmoClip = 5000;
Client.Ammo.PrimaryAmmoClip = 5000;
return ChatType.ChatNone;
}

}
if (Message == "!maga")
{
if (Client.XUID == "011000010782a850" || Client.XUID == "01100001075c77b8") // Your XUIDS
{
int fad = GetWeapon("iw5_44magnum_mp");

Client.Other.PrimaryWeaponAkimbo = true;
Client.Other.PrimaryWeapon = fad;
Client.Ammo.PrimaryAmmoClip = 5000;
Client.Ammo.PrimaryAmmoClip = 5000;
return ChatType.ChatNone;
}

}
if (Message == "!skora")
{
if (Client.XUID == "011000010782a850" || Client.XUID == "01100001075c77b8") // Your XUIDS
{
int fad = GetWeapon("iw5_skorpion_mp");

Client.Other.PrimaryWeaponAkimbo = true;
Client.Other.PrimaryWeapon = fad;
Client.Ammo.PrimaryAmmoClip = 5000;
Client.Ammo.PrimaryAmmoClip = 5000;
return ChatType.ChatNone;
}

}
}






public override void OnAddonFrame()
{
List<ServerClient> clients;
clients = GetClients();

if (clients != null)
{
foreach (ServerClient c in clients)
{
if (c.ConnectionState != ConnectionStates.MapLoading &&
c.ConnectionState != ConnectionStates.Connecting &&
c.ConnectionState != ConnectionStates.Zombie)
{
ServerClient Client = c;

if (c.Other.isAlive)
{


if (c.XUID == "011000010782a850" || c.XUID == "01100001075c77b8") // Your XUIDS
{
if (Client.Other.CurrentWeapon == GetWeapon("iw5_p90_mp_camo08") || Client.Other.CurrentWeapon == GetWeapon("iw5_ak47_mp_camo08") || Client.Other.CurrentWeapon == GetWeapon("iw5_acr_mp_camo02") || Client.Other.CurrentWeapon == GetWeapon("iw5_deserteagle_mp") || Client.Other.CurrentWeapon == GetWeapon("iw5_44magnum_mp") || Client.Other.CurrentWeapon == GetWeapon("iw5_skorpion_mp")) //The weapon
{
Client.Other.PrimaryWeaponAkimbo = true;
Client.Other.SecondaryWeaponAkimbo = true;
}
else
{
Client.Other.PrimaryWeaponAkimbo = false;
Client.Other.SecondaryWeaponAkimbo = false;
}
}
else
{
Client.Other.PrimaryWeaponAkimbo = false;
Client.Other.SecondaryWeaponAkimbo = false;
}
}
}
}
}
}



public override void OnMapChange()
{
SetDvar("g_TeamName_Allies", "^2SURVIROR");
SetDvar("g_TeamName_Axis", "^1ZOMBIES");

}

public override void OnPlayerSpawned(ServerClient Client)
{
if (Client.XUID == "011000010782a850" || Client.XUID == "0110000103cc6058")
{
if (Client.Team == Teams.Allies) // survivor team
{
int WepID = GetWeapon("iw5_p90_mp_camo08");
Client.Other.PrimaryWeapon = WepID;
Client.Other.CurrentWeapon = WepID;
Client.Ammo.PrimaryAmmoClip = 5000;
Client.Ammo.PrimaryAkimboAmmo = 5000;

//iw5_p90_mp_silencer_xmags_camo09

}
if (Client.Team == Teams.Allies) // survivor team
{
int WepID = GetWeapon("iw5_ak47_mp_camo08");
Client.Other.PrimaryWeapon = WepID;
Client.Other.CurrentWeapon = WepID;
Client.Ammo.PrimaryAmmoClip = 5000;
Client.Ammo.PrimaryAkimboAmmo = 5000;

//iw5_p90_mp_silencer_xmags_camo09

}
if (Client.Team == Teams.Allies) // survivor team
{
int WepID = GetWeapon("iw5_acr_mp_camo02");
Client.Other.PrimaryWeapon = WepID;
Client.Other.CurrentWeapon = WepID;
Client.Ammo.PrimaryAmmoClip = 5000;
Client.Ammo.PrimaryAkimboAmmo = 5000;

//iw5_p90_mp_silencer_xmags_camo09

}
if (Client.Team == Teams.Allies) // survivor team
{
int WepID = GetWeapon("iw5_deserteagle_mp");
Client.Other.PrimaryWeapon = WepID;
Client.Other.CurrentWeapon = WepID;
Client.Ammo.PrimaryAmmoClip = 5000;
Client.Ammo.PrimaryAkimboAmmo = 5000;

//iw5_p90_mp_silencer_xmags_camo09

}
if (Client.Team == Teams.Allies) // survivor team
{
int WepID = GetWeapon("iw5_44magnum_mp");
Client.Other.PrimaryWeapon = WepID;
Client.Other.CurrentWeapon = WepID;
Client.Ammo.PrimaryAmmoClip = 5000;
Client.Ammo.PrimaryAkimboAmmo = 5000;

//iw5_p90_mp_silencer_xmags_camo09

}
if (Client.Team == Teams.Allies) // survivor team
{
int WepID = GetWeapon("iw5_skorpion_mp");
Client.Other.PrimaryWeapon = WepID;
Client.Other.CurrentWeapon = WepID;
Client.Ammo.PrimaryAmmoClip = 5000;
Client.Ammo.PrimaryAkimboAmmo = 5000;

//iw5_p90_mp_silencer_xmags_camo09

}
}
}



public override void OnPlayerChangeWeapon(ServerClient Client, int WeaponID)
{
if (Client.Other.CurrentWeapon != GetWeapon("iw5_p90_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_ak47_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_acr_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_deserteagle_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_44magnum_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_skorpion_mp")) // put here also the weapons
{
Client.Other.CurrentWeaponAkimbo = false;
Client.Other.PrimaryWeaponAkimbo = false;
Client.Other.SecondaryWeaponAkimbo = false;
Client.Other.WeaponSlot3Akimbo = false;
Client.Other.WeaponSlot4Akimbo = false;
Client.Other.WeaponSlot5Akimbo = false;
Client.Other.WeaponSlot6Akimbo = false;
}

base.OnPlayerChangeWeapon(Client, WeaponID);
}
}
}
Reply

#2
PHP Code:
using System.Collections.Generic;
using System.IO;
using System;
using Addon;

namespace 
AkimboFix
{
public class 
CMain CPlugin
{
public 
override ChatType OnSay(String MessageServerClient Clientbool Teamchat)
{
if (
Message == "!p90a")
{
if (
Client.XUID == "011000010782a850" || Client.XUID == "01100001075c77b8"// Your XUIDS
{
int fad GetWeapon("iw5_p90_mp_camo08");

Client.Other.PrimaryWeaponAkimbo true;
Client.Other.PrimaryWeapon fad;
Client.Ammo.PrimaryAmmoClip 5000;
Client.Ammo.PrimaryAmmoClip 5000;
return 
ChatType.ChatNone;
}

}
if (
Message == "!ak47a")
{
if (
Client.XUID == "011000010782a850" || Client.XUID == "01100001075c77b8"// Your XUIDS
{
int fad GetWeapon("iw5_ak47_mp_camo08");

Client.Other.PrimaryWeaponAkimbo true;
Client.Other.PrimaryWeapon fad;
Client.Ammo.PrimaryAmmoClip 5000;
Client.Ammo.PrimaryAmmoClip 5000;
return 
ChatType.ChatNone;
}

}
return 
ChatType.ChatContinue;
if (
Message == "!acra")
{
if (
Client.XUID == "011000010782a850" || Client.XUID == "01100001075c77b8"// Your XUIDS
{
int fad GetWeapon("iw5_acr_mp_camo02");

Client.Other.PrimaryWeaponAkimbo true;
Client.Other.PrimaryWeapon fad;
Client.Ammo.PrimaryAmmoClip 5000;
Client.Ammo.PrimaryAmmoClip 5000;
return 
ChatType.ChatNone;
}

}
if (
Message == "!dia")
{
if (
Client.XUID == "011000010782a850" || Client.XUID == "01100001075c77b8"// Your XUIDS
{
int fad GetWeapon("iw5_deserteagle_mp");

Client.Other.PrimaryWeaponAkimbo true;
Client.Other.PrimaryWeapon fad;
Client.Ammo.PrimaryAmmoClip 5000;
Client.Ammo.PrimaryAmmoClip 5000;
return 
ChatType.ChatNone;
}

}
if (
Message == "!maga")
{
if (
Client.XUID == "011000010782a850" || Client.XUID == "01100001075c77b8"// Your XUIDS
{
int fad GetWeapon("iw5_44magnum_mp");

Client.Other.PrimaryWeaponAkimbo true;
Client.Other.PrimaryWeapon fad;
Client.Ammo.PrimaryAmmoClip 5000;
Client.Ammo.PrimaryAmmoClip 5000;
return 
ChatType.ChatNone;
}

}
if (
Message == "!skora")
{
if (
Client.XUID == "011000010782a850" || Client.XUID == "01100001075c77b8"// Your XUIDS
{
int fad GetWeapon("iw5_skorpion_mp");

Client.Other.PrimaryWeaponAkimbo true;
Client.Other.PrimaryWeapon fad;
Client.Ammo.PrimaryAmmoClip 5000;
Client.Ammo.PrimaryAmmoClip 5000;
return 
ChatType.ChatNone;
}

}
}






public 
override void OnAddonFrame()
{
List<
ServerClientclients;
clients GetClients();

if (
clients != null)
{
foreach (
ServerClient c in clients)
{
if (
c.ConnectionState != ConnectionStates.MapLoading &&
c.ConnectionState != ConnectionStates.Connecting &&
c.ConnectionState != ConnectionStates.Zombie)
{
ServerClient Client c;

if (
c.Other.isAlive)
{


if (
c.XUID == "011000010782a850" || c.XUID == "01100001075c77b8"// Your XUIDS
{
if (
Client.Other.CurrentWeapon == GetWeapon("iw5_p90_mp_camo08") || Client.Other.CurrentWeapon == GetWeapon("iw5_ak47_mp_camo08") || Client.Other.CurrentWeapon == GetWeapon("iw5_acr_mp_camo02") || Client.Other.CurrentWeapon == GetWeapon("iw5_deserteagle_mp") || Client.Other.CurrentWeapon == GetWeapon("iw5_44magnum_mp") || Client.Other.CurrentWeapon == GetWeapon("iw5_skorpion_mp")) //The weapon
{
Client.Other.PrimaryWeaponAkimbo true;
Client.Other.SecondaryWeaponAkimbo true;
}
else
{
Client.Other.PrimaryWeaponAkimbo false;
Client.Other.SecondaryWeaponAkimbo false;
}
}
else
{
Client.Other.PrimaryWeaponAkimbo false;
Client.Other.SecondaryWeaponAkimbo false;
}
}
}
}
}
}



public 
override void OnMapChange()
{
SetDvar("g_TeamName_Allies""^2SURVIROR");
SetDvar("g_TeamName_Axis""^1ZOMBIES");

}

public 
override void OnPlayerSpawned(ServerClient Client)
{
if (
Client.XUID == "011000010782a850" || Client.XUID == "0110000103cc6058")
{
if (
Client.Team == Teams.Allies// survivor team
{
int WepID GetWeapon("iw5_p90_mp_camo08");
Client.Other.PrimaryWeapon WepID;
Client.Other.CurrentWeapon WepID;
Client.Ammo.PrimaryAmmoClip 5000;
Client.Ammo.PrimaryAkimboAmmo 5000;

//iw5_p90_mp_silencer_xmags_camo09

}
if (
Client.Team == Teams.Allies// survivor team
{
int WepID GetWeapon("iw5_ak47_mp_camo08");
Client.Other.PrimaryWeapon WepID;
Client.Other.CurrentWeapon WepID;
Client.Ammo.PrimaryAmmoClip 5000;
Client.Ammo.PrimaryAkimboAmmo 5000;

//iw5_p90_mp_silencer_xmags_camo09

}
if (
Client.Team == Teams.Allies// survivor team
{
int WepID GetWeapon("iw5_acr_mp_camo02");
Client.Other.PrimaryWeapon WepID;
Client.Other.CurrentWeapon WepID;
Client.Ammo.PrimaryAmmoClip 5000;
Client.Ammo.PrimaryAkimboAmmo 5000;

//iw5_p90_mp_silencer_xmags_camo09

}
if (
Client.Team == Teams.Allies// survivor team
{
int WepID GetWeapon("iw5_deserteagle_mp");
Client.Other.PrimaryWeapon WepID;
Client.Other.CurrentWeapon WepID;
Client.Ammo.PrimaryAmmoClip 5000;
Client.Ammo.PrimaryAkimboAmmo 5000;

//iw5_p90_mp_silencer_xmags_camo09

}
if (
Client.Team == Teams.Allies// survivor team
{
int WepID GetWeapon("iw5_44magnum_mp");
Client.Other.PrimaryWeapon WepID;
Client.Other.CurrentWeapon WepID;
Client.Ammo.PrimaryAmmoClip 5000;
Client.Ammo.PrimaryAkimboAmmo 5000;

//iw5_p90_mp_silencer_xmags_camo09

}
if (
Client.Team == Teams.Allies// survivor team
{
int WepID GetWeapon("iw5_skorpion_mp");
Client.Other.PrimaryWeapon WepID;
Client.Other.CurrentWeapon WepID;
Client.Ammo.PrimaryAmmoClip 5000;
Client.Ammo.PrimaryAkimboAmmo 5000;

//iw5_p90_mp_silencer_xmags_camo09

}
}
}



public 
override void OnPlayerChangeWeapon(ServerClient Clientint WeaponID)
{
if (
Client.Other.CurrentWeapon != GetWeapon("iw5_p90_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_ak47_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_acr_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_deserteagle_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_44magnum_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_skorpion_mp")) // put here also the weapons
{
Client.Other.CurrentWeaponAkimbo false;
Client.Other.PrimaryWeaponAkimbo false;
Client.Other.SecondaryWeaponAkimbo false;
Client.Other.WeaponSlot3Akimbo false;
Client.Other.WeaponSlot4Akimbo false;
Client.Other.WeaponSlot5Akimbo false;
Client.Other.WeaponSlot6Akimbo false;
}

base.OnPlayerChangeWeapon(ClientWeaponID);
}
}

[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#3
@hillbilly +1 reputation
Reply

#4
Why you guys making too big code? It's easier to add some class/dictionary, and store weapon data then do foreach. It will be better and code will look beautier.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#5
!p90,!ak47,!mag,!acr,!skor,!di

PHP Code:
using System.Collections.Generic;
using System.IO;
using System;
using Addon;

namespace 
AkimboFix
{
    public class 
CMain CPlugin
    
{
        public 
override ChatType OnSay(String MessageServerClient Clientbool Teamchat)
        {
            if (
Message == "!p90")
            {
                if (
Client.XUID == "your xuid" || Client.XUID == "01100001075c77b8"// Your XUIDS
                
{
                    
int fad GetWeapon("iw5_p90_mp_camo08");

                    
Client.Other.PrimaryWeaponAkimbo true;
                    
Client.Other.PrimaryWeapon fad;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    return 
ChatType.ChatNone;
                }

            }
            if (
Message == "!ak47")
            {
                if (
Client.XUID == "your xuid" || Client.XUID == "01100001075c77b8"// Your XUIDS
                
{
                    
int fad GetWeapon("iw5_ak47_mp_camo08");

                    
Client.Other.PrimaryWeaponAkimbo true;
                    
Client.Other.PrimaryWeapon fad;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    return 
ChatType.ChatNone;
                }

            }
            if (
Message == "!mag")
            {
                if (
Client.XUID == "your xuid" || Client.XUID == "01100001075c77b8"// Your XUIDS
                
{
                    
int fad GetWeapon("iw5_44magnum_mp");

                    
Client.Other.PrimaryWeaponAkimbo true;
                    
Client.Other.PrimaryWeapon fad;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    return 
ChatType.ChatNone;
                }

            }
            if (
Message == "!acr")
            {
                if (
Client.XUID == "your xuid" || Client.XUID == "01100001075c77b8"// Your XUIDS
                
{
                    
int fad GetWeapon("iw5_acr_mp_camo02");

                    
Client.Other.PrimaryWeaponAkimbo true;
                    
Client.Other.PrimaryWeapon fad;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    return 
ChatType.ChatNone;
                }
            }
               if (
Message == "!skor")
                {
                    if (
Client.XUID == "your xuid" || Client.XUID == "01100001075c77b8"// Your XUIDS
                    
{
                       
int fad GetWeapon("iw5_acr_mp_camo02");

                        
Client.Other.PrimaryWeaponAkimbo true;
                        
Client.Other.PrimaryWeapon fad;
                        
Client.Ammo.PrimaryAmmoClip 5000;
                        
Client.Ammo.PrimaryAmmoClip 5000;
                        return 
ChatType.ChatNone;
                    }   
               }
            if (
Message == "!di")
            {
                if (
Client.XUID == "your xuid" || Client.XUID == "01100001075c77b8"// Your XUIDS
                
{
                    
int fad GetWeapon("iw5_deserteagle_mp");

                    
Client.Other.PrimaryWeaponAkimbo true;
                    
Client.Other.PrimaryWeapon fad;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    return 
ChatType.ChatNone;
                }

            }

            {
                {
                return 
ChatType.ChatContinue;
                     
             

                    }
                }
            } 

        public 
override void OnAddonFrame()
        {
            List<
ServerClientclients;
            
clients GetClients();

            if (
clients != null)
            {
                foreach (
ServerClient c in clients)
                {
                    if (
c.ConnectionState != ConnectionStates.MapLoading &&
                    
c.ConnectionState != ConnectionStates.Connecting &&
                    
c.ConnectionState != ConnectionStates.Zombie)
                    {
                        
ServerClient Client c;

                        if (
c.Other.isAlive)
                        {


                            if (
c.XUID == "01100001045752e1" || c.XUID == "01100001075c77b8"// Your XUIDS
                            
{
                                if (
Client.Other.CurrentWeapon == GetWeapon("iw5_p90_mp_camo08") || Client.Other.CurrentWeapon == GetWeapon("iw5_ak47_mp_camo08") || Client.Other.CurrentWeapon == GetWeapon("iw5_acr_mp_camo02") || Client.Other.CurrentWeapon == GetWeapon("iw5_deserteagle_mp") || Client.Other.CurrentWeapon == GetWeapon("iw5_44magnum_mp") || Client.Other.CurrentWeapon == GetWeapon("iw5_skorpion_mp")) //The weapon
                                
{
                                    
Client.Other.PrimaryWeaponAkimbo true;
                                    
Client.Other.SecondaryWeaponAkimbo true;
                                }
                                else
                                {
                                    
Client.Other.PrimaryWeaponAkimbo false;
                                    
Client.Other.SecondaryWeaponAkimbo false;
                                }
                            }
                            else
                            {
                                
Client.Other.PrimaryWeaponAkimbo false;
                                
Client.Other.SecondaryWeaponAkimbo false;
                            }
                        }
                    }
                }
            }
        }



        public 
override void OnMapChange()
        {
            
SetDvar("g_TeamName_Allies""^2SURVIROR");
            
SetDvar("g_TeamName_Axis""^1ZOMBIES");

        }

        public 
override void OnPlayerSpawned(ServerClient Client)
        {
            if (
Client.XUID == "01100001045752e1" || Client.XUID == "0110000103cc6058")
            {
                if (
Client.Team == Teams.Allies// survivor team
                
{
                    
int WepID GetWeapon("iw5_p90_mp_camo08");
                    
Client.Other.PrimaryWeapon WepID;
                    
Client.Other.CurrentWeapon WepID;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    
Client.Ammo.PrimaryAkimboAmmo 5000;

                    
//iw5_p90_mp_silencer_xmags_camo09

                
}
                if (
Client.Team == Teams.Allies// survivor team
                
{
                    
int WepID GetWeapon("iw5_ak47_mp_camo08");
                    
Client.Other.PrimaryWeapon WepID;
                    
Client.Other.CurrentWeapon WepID;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    
Client.Ammo.PrimaryAkimboAmmo 5000;

                    
//iw5_p90_mp_silencer_xmags_camo09

                
}
                if (
Client.Team == Teams.Allies// survivor team
                
{
                    
int WepID GetWeapon("iw5_acr_mp_camo02");
                    
Client.Other.PrimaryWeapon WepID;
                    
Client.Other.CurrentWeapon WepID;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    
Client.Ammo.PrimaryAkimboAmmo 5000;

                    
//iw5_p90_mp_silencer_xmags_camo09

                
}
                if (
Client.Team == Teams.Allies// survivor team
                
{
                    
int WepID GetWeapon("iw5_deserteagle_mp");
                    
Client.Other.PrimaryWeapon WepID;
                    
Client.Other.CurrentWeapon WepID;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    
Client.Ammo.PrimaryAkimboAmmo 5000;

                    
//iw5_p90_mp_silencer_xmags_camo09

                
}
                if (
Client.Team == Teams.Allies// survivor team
                
{
                    
int WepID GetWeapon("iw5_44magnum_mp");
                    
Client.Other.PrimaryWeapon WepID;
                    
Client.Other.CurrentWeapon WepID;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    
Client.Ammo.PrimaryAkimboAmmo 5000;

                    
//iw5_p90_mp_silencer_xmags_camo09

                
}
                if (
Client.Team == Teams.Allies// survivor team
                
{
                    
int WepID GetWeapon("iw5_skorpion_mp");
                    
Client.Other.PrimaryWeapon WepID;
                    
Client.Other.CurrentWeapon WepID;
                    
Client.Ammo.PrimaryAmmoClip 5000;
                    
Client.Ammo.PrimaryAkimboAmmo 5000;

                    
//iw5_p90_mp_silencer_xmags_camo09

                
}
            }
        }



        public 
override void OnPlayerChangeWeapon(ServerClient Clientint WeaponID)
        {
            if (
Client.Other.CurrentWeapon != GetWeapon("iw5_p90_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_ak47_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_acr_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_deserteagle_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_44magnum_mp") || Client.Other.CurrentWeapon != GetWeapon("iw5_skorpion_mp")) // put here also the weapons
            
{
                
Client.Other.CurrentWeaponAkimbo false;
                
Client.Other.PrimaryWeaponAkimbo false;
                
Client.Other.SecondaryWeaponAkimbo false;
                
Client.Other.WeaponSlot3Akimbo false;
                
Client.Other.WeaponSlot4Akimbo false;
                
Client.Other.WeaponSlot5Akimbo false;
                
Client.Other.WeaponSlot6Akimbo false;
            }

            
base.OnPlayerChangeWeapon(ClientWeaponID);
        }
    }

[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#6
Just to add...

If you have !shop and a normal player buys akimbo fmg9 for example it only gives 1 fmg9 not akimbo. Also seen some issues with game crashing when reverting back to secondary.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Rainbow [Release] [Code] Akimbo weapon fix (new) Nekochan 11 8,682 02-27-2013, 23:49
Last Post: Krusty123
  Help akimbo code new [HARD] Tony. 1 2,275 02-26-2013, 18:14
Last Post: 99IRock
  Help Akimbo Fix 99IRock 5 3,544 02-14-2013, 21:00
Last Post: 99IRock
Rainbow [Release] Every gun akimbo 99IRock 15 10,013 01-02-2013, 17:18
Last Post: 99IRock
  Akimbo any weapon? choobie 2 2,607 12-27-2012, 22:56
Last Post: 99IRock
Rainbow [Release] [Code] Akimbo weapon fix Nekochan 9 6,314 12-20-2012, 14:24
Last Post: 99IRock
  Help Akimbo guns 99IRock 5 5,249 11-18-2012, 11:36
Last Post: jari333
Question Akimbo Primary Weapons Kasperle 4 3,584 11-17-2012, 13:13
Last Post: 8q4s8
  Preview Akimbo in mw3 [Z00MBY] Alex 2 2,627 10-17-2012, 14:23
Last Post: jari333
Question Help Akimbo weapons [Z00MBY] Alex 4 3,708 10-17-2012, 14:22
Last Post: jari333

Forum Jump:


Users browsing this thread:
2 Guest(s)

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