View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-07-2009 , 10:28   Re: Changing clip and backpack ammo in Half-Life
Reply With Quote #4

See this for bpammo offsets : http://forums.alliedmods.net/showthread.php?t=93103

For weapons m_iClip offset you will have to find them by yourself.
For ammo names, you can hook GiveAmmo forward, and for weaponbox ammo names (can be slightly differents like some caps at some places) you have to retrieve weaponbox offset, then convert from iString to szStrind with gbl_SzStringFromIndex or some name like that)

To retrieve weapon by player id, see my snippet (search for id offsets first) :
http://forums.alliedmods.net/showthread.php?t=85962
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline