Redirecting weapon HUD/Sprite
I've only included part of the code but it should be enough to see what my problem is. Right now it's in first slot, first spot - and here it works. But when I try to redirect it to any other slot/spot it just disappears and nothing is on my HUD besides my regular weapons. I'd like to know what I am doing wrong with this to cause the problem. Some people have reported that the weapon appears above and below their primary weapon, for me it is only above the primary weapon (where according to the code it should be - but there is probably something wrong). I'd like to know if you could offer some help.
Something else is when an attack is made with this weapon it says "C4 must be planted at a bomb site!" and I want to remove this. Currently the code that I have doesn't work. Would be much appreciated! PHP Code:
PHP Code:
|
Re: Redirecting weapon HUD/Sprite
write_byte( 0 );
SetHamReturnInteger(5); The latter is wrong, it should SlotID + 1, so SetHamReturnInteger(1); |
Re: Redirecting weapon HUD/Sprite
Ah perfect. Thanks a lot man!
Edit: Actually when I change the slots again to anything but 0, let's say I changed to this, to put in pistol slot: write_byte( 1 ); SetHamReturnInteger(2); It just doesn't show up. |
| All times are GMT -4. The time now is 15:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.