AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] (https://forums.alliedmods.net/showthread.php?t=106340)

K.K.Lv 10-14-2009 05:15

[HELP]
 
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 !!

One 10-14-2009 05:17

Re: 【HELP】
 
you can check it in curweapon & how to check the ammo :

http://forums.alliedmods.net/showthread.php?p=907798

K.K.Lv 10-14-2009 05:44

Re: 【HELP】
 
you used get_user_weapon ?

Bugsy 10-14-2009 06:55

Re: 【HELP】
 
PHP Code:

register_event"CurWeapon" "fw_EvCurWeapon""be" "1=1" );

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



One 10-14-2009 10:39

Re: 【HELP】
 
Quote:

Originally Posted by K.K.Lv (Post 961466)
you used get_user_weapon ?

you can use mine or bugs's code. i think bugsy's code is better & faster.

Exolent[jNr] 10-14-2009 11:25

Re: 【HELP】
 
You must use descriptive topic titles.
Fix it before posting again.


All times are GMT -4. The time now is 22:36.

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