Raised This Month: $ Target: $400
 0% 

New-Style Unlimited Backpack Ammo(bpammo)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-22-2017 , 10:30   Re: New-Style Unlimited Backpack Ammo(bpammo)
Reply With Quote #6

Instead of listing all offsets and then using a constant you can just use const m_rgAmmo = 376 and const m_iPrimaryAmmoType = 49. Then do:
PHP Code:
set_pdata_int(idm_rgAmmo get_pdata_int(ActiveItemm_iPrimaryAmmoType4), ...) 
.
ActiveItem can be retrieved by using get_pdata_cbase and m_pActiveItem.
__________________

Last edited by HamletEagle; 09-22-2017 at 10:30.
HamletEagle is offline
 



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 05:53.


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