Raised This Month: $ Target: $400
 0% 

cs_get/set_user_bpammo Issues


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 08-08-2010 , 01:33   Re: cs_get/set_user_bpammo Issues
Reply With Quote #2

Code:
enum WeaponStruct {     CSWID,     Ammo,     Bpammo } new WeaponJam[33][WeaponStruct] public WeaponJam( id ) {     WeaponJam[id][CSWID] = get_user_weapon( id, WeaponJam[id][Ammo], WeaponJam[id][Bpammo] )         new cswid = WeaponJam[id][CSWID]     new name[20]     get_weaponname( cswid, name, 19 )     new wepID = find_ent_by_owner( -1, name, id )         if( wepID )     {         cs_set_weapon_ammo( wepID, 0 )         cs_set_user_bpammo( id, cswid, 0 )     }         // WeaponJam[id][CSWID] is the CSW_* constant of the weapon     // WeaponJam[id][Ammo] holds the ammo     // WeaponJam[id][Bpammo] holds the backpack ammo         // ... }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 00:06.


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