Raised This Month: $ Target: $400
 0% 

Weapon owner


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 11-30-2014 , 06:21   Weapon owner
Reply With Quote #1

For my nightcrawler unlimmited clip,
I tought to make an easy way for it.

Tho easy doesnt always work, sometimes it does, sometime it doesnt.
Any impovements, fix sugguestions?

Thx

PHP Code:
            if(get_pcvar_num(g_pAdrenalineUnlimmitedClip))
            {
                new 
arrayWeapons[32], intWeaponsstrWeaponname[32], intEntity
                get_user_weapons
(idarrayWeaponsintWeapons)
                
                for(new 
0intWeaponsi++)
                {
                    if(
g_iMaxClipAmmo[arrayWeapons[i]])
                    {
                        
get_weaponname(arrayWeapons[i], strWeaponname31)
                        
                        if(
pev_valid( (intEntity engfunc(EngFunc_FindEntityByStringid"classname"strWeaponname)) ))
                        {
                            
cs_set_weapon_ammo(intEntity5000)
                        }
                    }
                }
            } 
__________________
Retired.
Xalus 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 15:19.


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