ItsMods

Full Version: throwingknife
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This code not work:


CSHARP Code
  1. int awwep = GetWeapon("throwingknife_mp");
  2. Client.Other.OffhandWeapon = awwep;
  3. Client.Ammo.OffhandAmmo = 1;


As give the player throwingknife?

And as use this:

CSHARP Code
  1. EquipementTypes ServerClient.Other.OffhandType
throwknife_mp is a perk not a weapon... I believe. Let me check on that real quick.
My bad guess it wasn't but here this my own code you can try and convert it for the MW3 SA
Code:
entity.Call("SetOffhandPrimaryClass", "throwingknife");
                        entity.GiveWeapon("throwingknife_mp");
                        entity.Call("setweaponammoclip", "throwingknife_mp", 1);
CSHARP Code
  1. Client.Other.OffhandType = EquipementTypes.ThrowingKnife;

if I am not mistaken. I recommend to use Visual Studio, it has Intellisense.
(09-05-2012, 07:02)DidUknowiPwn Wrote: [ -> ]throwknife_mp is a perk not a weapon... I believe. Let me check on that real quick.
My bad guess it wasn't but here this my own code you can try and convert it for the MW3 SA
Code:
entity.Call("SetOffhandPrimaryClass", "throwingknife");
                        entity.GiveWeapon("throwingknife_mp");
                        entity.Call("setweaponammoclip", "throwingknife_mp", 1);

Stop posting infinityscript shit here.
Talk about SA.
Also it useless
That's why I said convert it... I mean what's wrong with it? It's just code ffs.
Stop bitch fighting I already answered.

@jaydi Keep calm, he is just trying to help.