Raised This Month: $ Target: $400
 0% 

[HELP] Setting user's weapon ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 11-09-2009 , 08:54   [HELP] Setting user's weapon ammo
Reply With Quote #1

I used this(in cstrike.inc)
Code:
native cs_set_weapon_ammo(index, newammo);
In my code it is shown like this
Code:
cs_set_weapon_ammo(CSW_SCOUT, 0);
When I host a room, it shows 0 ammo but the weapon still have 10 bullets.
Or i can only set a minimum of 1?
Excalibur.007 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-09-2009 , 08:55   Re: [HELP] Setting user's weapon ammo
Reply With Quote #2

index is the weapon entity, not the weapon type.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 11-09-2009 , 09:44   Re: [HELP] Setting user's weapon ammo
Reply With Quote #3

Oh didn't notice that. Thanks.
EDIT: It compiles fine but still same thing. Shows 0 ammo but the user still can shoot 10 bullets(Scout)

Last edited by Excalibur.007; 11-09-2009 at 20:35.
Excalibur.007 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 17:46.


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