Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help !Shop TK
#1
Anyone shed any light why using !tk it wont actually give that weapon or indeed a betty?

PHP Code:
if (Message == "!tk")
                
                {
                    
int TKCost2 Convert.ToInt32(TKCost);


                    if ((int)
Points[Client.XUID] < TKCost2)
                    {
                        
iPrintLnBold("^1Not enough points!"Client);
                    }
                    else
                    {
                        
int WepID GetWeapon("throwingknife_mp");
                        
Client.Other.Equipment WepID;
                        
Client.Other.OffhandWeapon WepID;
                        
Client.Ammo.OffhandAmmo 2;
                        
Points[Client.XUID] = ((int)Points[Client.XUID]) - TKCost2;
                    } 
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#2
Code:
if (Message == "!emp")
                    {
                        int EmpGrenadeprice2 = Convert.ToInt32(empprice);


                        if ((int)Points[Client.XUID] < EmpGrenadeprice2)
                        {
                            iPrintLnBold("^1You don't have enough points!", Client);
                        }
                        else
                        {

                            int WepID = GetWeapon("emp_grenade_mp");
                            Client.Other.OffhandWeapon = WepID;
                            Client.Ammo.OffhandAmmo = 2;
                            Points[Client.XUID] = ((int)Points[Client.XUID]) - EmpGrenadeprice2;
                        }
                        return ChatType.ChatNone;

                    }

I guess the Client.Other.OffhandWeapon is wrong.
The emp grenade is OffhandWeapon, I guess there needs to be another one, because The empgrenade is not the same slot as the Throwingknife / grenade.
Maybe this information can help you :p. I will also search for it.
(I also saw this bug I just removed TK)

My inf ammo code gives inf grenades ( Semtex )
Code:
Client.Ammo.OffhandAmmo = 32767 * 32767;
                            Client.Ammo.PrimaryAmmoClip = 32767 * 32767;
                            Client.Ammo.PrimaryAmmo = 32767 * 32767;
                            Client.Ammo.SecondaryAmmoClip = 32767 * 32767;
                            Client.Ammo.SecondaryAmmo = 32767 * 32767;
                            Client.Ammo.WeaponSlot3AmmoClip = 32767 * 32767;
                            Client.Ammo.WeaponSlot3Ammo = 32767 * 32767;
                            Client.Ammo.WeaponSlot4AmmoClip = 32767 * 32767;
                            Client.Ammo.WeaponSlot4Ammo = 32767 * 32767;
                            Client.Ammo.WeaponSlot5AmmoClip = 32767 * 32767;
                            Client.Ammo.WeaponSlot5Ammo = 32767 * 32767;
                            Client.Ammo.WeaponSlot6AmmoClip = 32767 * 32767;
                            Client.Ammo.WeaponSlot6Ammo = 32767 * 32767;
                            Client.Ammo.PrimaryAkimboAmmo = 32767 * 32767;
                            Client.Ammo.SecondaryAkimboAmmo = 32767 * 32767;
                            Client.Ammo.WeaponSlot3AkimboAmmo = 32767 * 32767;
                            Client.Ammo.WeaponSlot4AkimboAmmo = 32767 * 32767;
                            Client.Ammo.WeaponSlot5AkimboAmmo = 32767 * 32767;
                            Client.Ammo.WeaponSlot6AkimboAmmo = 32767 * 32767;

So one of these lines needs to be the fix
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
Reply

#3
just to update, the TK etc only works on addon version 1.414
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#4
Further update:

i have found that using this simple code will replenish c4, bettys and claymore, but not TK or Tactical.


int reward = GetWeapon("iw5_deserteagle_mp");
Client.Ammo.SecondaryAmmoClip = 100;
Client.Ammo.SecondaryAmmo = 20;
Client.Ammo.EquipmentAmmo = 1;
Client.Ammo.OffhandAmmo = 1;
Client.Other.SecondaryWeapon = reward;
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Shop Database Hallla 5 4,437 07-23-2013, 07:33
Last Post: xfxtroll
Wink [Release] Shop system for Infected gametype Nekochan 125 70,197 07-05-2013, 18:09
Last Post: mohammadnanaa
  Help prefix doesnt work with shop koro35 2 2,652 05-18-2013, 10:51
Last Post: koro35
  Moonlight Shop HELP Hallla 4 3,034 05-12-2013, 16:05
Last Post: Hallla
  Help Infected Shop Plugin Problem Hallla 2 2,909 05-06-2013, 18:29
Last Post: Hallla
  shop mySQL [HARD] Tony. 3 2,413 03-19-2013, 17:13
Last Post: [HARD] Tony.
  [Request] !shop hud to show player with highest points hillbilly 3 3,051 02-21-2013, 16:46
Last Post: hillbilly
  Help shop code help hillbilly 2 2,154 02-16-2013, 20:40
Last Post: hillbilly
  shop code funny 10 6,359 02-14-2013, 22:16
Last Post: 99IRock
  Help Mw3 Shop with points + Database 99IRock 2 2,874 12-09-2012, 22:21
Last Post: 99IRock

Forum Jump:


Users browsing this thread:
1 Guest(s)

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