Raised This Month: $ Target: $400
 0% 

Wanna know how to set weapon clip


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-15-2007 , 11:15   Re: Wanna know how to set weapon clip
Reply With Quote #2

cs_set_weapon_ammo ( index, 1 ), where index is the index of the entity, not player.
So you have first to get the index of "your" m4a1.

http://www.amxmodx.org/funcwiki.php?go=func&id=208


So for a m4a1 for example :

new entity_index = fm_get_user_weapon_entity(id, CSW_M4A1)
cs_set_weapon_ammo (entity_index, 1 )

Open fakemeta_util to see fm_get_user_weapon_entity source code

Last edited by ConnorMcLeod; 11-15-2007 at 11:19.
ConnorMcLeod 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 01:17.


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