This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Infinite ammo only for ct


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
superang
Senior Member
Join Date: Apr 2009
Location: Portugal
Old 09-26-2010 , 14:06   Infinite ammo only for ct
Reply With Quote #1

Can anyone make a plugin that ct's have infinite ammo?, thanks
__________________

Last edited by superang; 09-26-2010 at 14:22.
superang is offline
Send a message via MSN to superang
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-26-2010 , 14:19   Re: Infinite reload only for ct
Reply With Quote #2

infinite reloads ????????????
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
superang
Senior Member
Join Date: Apr 2009
Location: Portugal
Old 09-26-2010 , 14:22   Re: Infinite ammo only for ct
Reply With Quote #3

lol i'm sorry, i wanna say infinite ammo to reload :S
__________________
superang is offline
Send a message via MSN to superang
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-26-2010 , 16:24   Re: Infinite ammo only for ct
Reply With Quote #4

So, infinite BpAmmo (still need to reload), or infinite Ammo (no need to reload at all) ?

I guess BpAmmo :

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>

#define VERSION "0.0.1"

#define AmmoX_AmmoID 1
#define AmmoX_Ammount 2

#define ammo_9mm 10

new const g_iMaxBpAmmo[] = {
    
0,
    
30,
    
90,
    
200,
    
90,
    
32,
    
100,
    
100,
    
35,
    
52,
    
120
}

#define XO_PLAYER 5
#define m_iTeam 114
#define m_rgpPlayerItems_0 376

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

    
register_message(get_user_msgid("AmmoX"), "Message_AmmoX")
}

public 
Message_AmmoX(iMsgIdiMsgDestid)
{

    if( !
is_user_alive(id) || get_pdata_int(idm_iTeamXO_PLAYER) != )
    {
        return
    }

    new 
iAmmoID get_msg_arg_int(AmmoX_AmmoID)

    if( 
iAmmoID <= ammo_9mm )
    {
        
set_msg_arg_int(AmmoX_AmmountARG_BYTEg_iMaxBpAmmo[iAmmoID])
        
set_pdata_int(idm_rgpPlayerItems_0 iAmmoIDg_iMaxBpAmmo[iAmmoID], XO_PLAYER)
    }

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 09-26-2010 at 16:29.
ConnorMcLeod is offline
superang
Senior Member
Join Date: Apr 2009
Location: Portugal
Old 09-27-2010 , 16:56   Re: Infinite ammo only for ct
Reply With Quote #5

thanks connor, i will test it soon i can, thanks alot
__________________
superang is offline
Send a message via MSN to superang
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 01:24.


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