AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   cs_get_weapon_ammo (https://forums.alliedmods.net/showthread.php?t=101370)

NiHiLaNTh 08-23-2009 08:44

cs_get_weapon_ammo
 
How to use cs_get_weapon_ammo? In my case, I want to get clip ammo of AWP

Arkshine 08-23-2009 08:45

Re: cs_get_weapon_ammo
 
Like it's written here , you have to pass the weapon index. ( not the player )

If it's the current weapon you're holding, you can use :
Code:
cs_get_weapon_ammo( get_pdata_cbase( id, 373 ) ); // m_pActiveItem = 373

NiHiLaNTh 08-23-2009 09:55

Re: cs_get_weapon_ammo
 
Once again, thanks!:):):)


All times are GMT -4. The time now is 15:11.

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