Raised This Month: $ Target: $400
 0% 

Solved Better way to optimized this code?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 06-20-2017 , 05:10   Re: Better way to optimized this code?
Reply With Quote #1

The best idea is combination of Ham_Item_PrimaryAmmoIndex+Ham_Item_GetItemInf o+new WeaponList message. But that's only for amxx v1.8.3.

If you want to stick with your code, you need to override AmmoX and not CurWeapon (AmmoX is responsible to showing the rest of the ammo). Also you need to update your ammo on Reload and also save it when you drop your weapon and restore on pickup.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode