This code not work:
CSHARP Code
int awwep = GetWeapon("throwingknife_mp");
Client.Other.OffhandWeapon = awwep;
Client.Ammo.OffhandAmmo = 1;
As give the player throwingknife?
And as use this:
CSHARP Code
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
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.