Raised This Month: $ Target: $400
 0% 

[CS:GO] Get max ammo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 03-18-2016 , 20:50   [CS:GO] Get max ammo
Reply With Quote #1

May be somebody need this

PHP Code:
/**
 * Max amount of ammo for weapon.
 **/
static int CS_WeaponMaxAmmo[56] = 
{
    -
1,20,120,90,-1,32,-1,100,90,-1,120,100,100,90,90,90,52,30,120,200,32,40,120,90,-1,35,90,90,-1,100,-1,-1,-1,-1,90,120,32,200,32,120,-1,52,120,120,32,12,90,90,90,90,-1,-1,-1,-1,-1
};

// Get player weapon
                    
char szWeapon[NORMAL_LINE_LENGTH];
                    
GetEntityClassname(iWeaponszWeaponsizeof(szWeapon) );
                    
ReplaceString(szWeaponsizeof(szWeapon), "weapon_""");
                    
                    
// Initialize max ammo amount
                    
int iMaxAmmo CS_WeaponMaxAmmoCS_AliasToWeaponID(szWeapon) ]; 
__________________
gubka is offline
Send a message via ICQ to gubka
 



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 18:38.


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