Raised This Month: $ Target: $400
 0% 

Wanna know how to set weapon clip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr. T
Junior Member
Join Date: Nov 2007
Location: Denemark
Old 11-15-2007 , 09:35   Wanna know how to set weapon clip
Reply With Quote #1

Hey...
I just wanna kow how to set the clip at weapons... I tried to look in "Awp one shot" and replace "awp" with "m4a1"... But then my cs says that i have one shot in my m4a1 but it first reload after firering 30...
Can someone help me? Plz...
Dr. T is offline
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
Reply



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 20:27.


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