03-18-2013, 04:42
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);
}
}
}
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);
}
}
}