Raised This Month: $51 Target: $400
 12% 

Unlimited Clip Ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-30-2013 , 04:06   Re: Unlimited Clip Ammo
Reply With Quote #31

Quote:
Originally Posted by ScoobyDooo View Post
im sorry for reviving this topic, but i still need help about this..

i have the same problem as claudiuhks ..can someone solve it ?
Errm, this is impossible, because plugin checks when a shot is made, that's 30-1=29, that's why.... It's not that bad you know
Unkolix is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-30-2013 , 04:54   Re: Unlimited Clip Ammo
Reply With Quote #32

Use this instead :

PHP Code:
/*    Formatright © 2009, ConnorMcLeod

    Infinite BpAmmo is free software;
    you can redistribute it and/or modify it under the terms of the
    GNU General Public License as published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Infinite BpAmmo; if not, write to the
    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
*/

#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define VERSION "0.0.1"

enum
{
    
CurWeapon_IsActive 1// byte
    
CurWeapon_WeaponID// byte
    
CurWeapon_ClipAmmo // byte
}

const 
XO_CBASEPLAYERWEAPON 4
const m_iClip 51
const m_iClientClip 52

const m_pActiveItem 373

new const g_iMaxClip[CSW_P90+1] = {
    -
1,  13, -110,  1,  7,    13030,  1,  30
        
2025303525,   12201030100
        
303020,  2,    73030, -1,  50
}

public 
plugin_init()
{
    
register_plugin("Infinite Ammo"VERSION"ConnorMcLeod")

    
register_message(get_user_msgid("CurWeapon"), "Message_CurWeapon")
}

public 
Message_CurWeapon(iMsgIdiMsgDestid)
{
    if( 
get_msg_arg_int(CurWeapon_IsActive) )
    {
        new 
iMaxClip g_iMaxClip[  get_msg_arg_intCurWeapon_WeaponID )  ]
        if( 
iMaxClip && get_msg_arg_int(CurWeapon_ClipAmmo) < iMaxClip )
        {
            new 
iWeapon get_pdata_cbase(idm_pActiveItem)
            if( 
iWeapon )
            {
                
set_pdata_int(iWeaponm_iClipiMaxClipXO_CBASEPLAYERWEAPON)
                
set_pdata_int(iWeaponm_iClientClipiMaxClipXO_CBASEPLAYERWEAPON)

                
set_msg_arg_int(CurWeapon_ClipAmmoARG_BYTEiMaxClip)
            }
        }
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
hoainam123
Member
Join Date: May 2014
Location: Viet Nam
Old 06-28-2016 , 10:06   Re: Unlimited Clip Ammo
Reply With Quote #33

how about unlimited BP ammo ? ( not ammo clip )
I need the scripts

Last edited by hoainam123; 06-28-2016 at 10:06.
hoainam123 is offline
-Acid-
Senior Member
Join Date: Feb 2009
Old 07-19-2016 , 18:58   Re: Unlimited Clip Ammo
Reply With Quote #34

Thinking of coming back! Does anyone still need any updates on this plugin?
__________________
-Acid- is offline
Visinescu
Senior Member
Join Date: Dec 2015
Location: England now,Home Romania
Old 06-05-2017 , 06:24   Re: Unlimited Clip Ammo
Reply With Quote #35

Quote:
Originally Posted by -Acid- View Post
Thinking of coming back! Does anyone still need any updates on this plugin?
Yeah , make another version with admin flag support .
Visinescu 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 12:28.


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