Better way to optimized this code?
I am trying to make Glock's based weapon don't have the same ammo with MP5 Navy.
I used CurWeapon. it work well but I think i bad for server and I want to find another way :( Can I anyone help me? PHP Code:
|
Re: Better way to optimized this code?
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. |
| All times are GMT -4. The time now is 23:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.