Raised This Month: $ Target: $400
 0% 

[HELP]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 10-14-2009 , 05:15   [HELP]
Reply With Quote #1

Hi guys ,i have a simple problem!
How to get the amount of ammo in current weapon ?
Use this func cs_get_weapon_ammo(index) ?
and how to use it ?
Thx !!
__________________
QQ:116268742

Last edited by K.K.Lv; 10-14-2009 at 20:57.
K.K.Lv is offline
Send a message via MSN to K.K.Lv
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 10-14-2009 , 05:17   Re: 【HELP】
Reply With Quote #2

you can check it in curweapon & how to check the ammo :

http://forums.alliedmods.net/showthread.php?p=907798
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 10-14-2009 , 05:44   Re: 【HELP】
Reply With Quote #3

you used get_user_weapon ?
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-14-2009 , 06:55   Re: 【HELP】
Reply With Quote #4

PHP Code:
register_event"CurWeapon" "fw_EvCurWeapon""be" "1=1" );

public 
fw_EvCurWeaponid )
{
    
//weapon id = read_data( 2 )
    //ammo = read_data( 3 )

__________________
Bugsy is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 10-14-2009 , 10:39   Re: 【HELP】
Reply With Quote #5

Quote:
Originally Posted by K.K.Lv View Post
you used get_user_weapon ?
you can use mine or bugs's code. i think bugsy's code is better & faster.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-14-2009 , 11:25   Re: 【HELP】
Reply With Quote #6

You must use descriptive topic titles.
Fix it before posting again.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 22:36.


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