• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help throwingknife
#1
Question 
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
  Reply
#2
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);
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
  Reply
#3
CSHARP Code
  1. Client.Other.OffhandType = EquipementTypes.ThrowingKnife;

if I am not mistaken. I recommend to use Visual Studio, it has Intellisense.
[Image: azuw.jpg]
  Reply
#4
(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
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
  Reply
#5
That's why I said convert it... I mean what's wrong with it? It's just code ffs.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
  Reply
#6
Stop bitch fighting I already answered.

@jaydi Keep calm, he is just trying to help.
[Image: azuw.jpg]
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)