Raised This Month: $ Target: $400
 0% 

Unlimited Ammo With Reload + Cvar


Post New Thread Reply   
 
Thread Tools Display Modes
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 04-24-2013 , 11:26   Re: Unlimited Ammo With Reload + Cvar
Reply With Quote #11

Try:

PHP Code:
#include <amxmodx>
#include <fakemeta>

new const VERSION[] = "0.0.1"

enum /*_:AmmoX_Structure*/ {
    
AmmoX_AmmoID 1,
    
AmmoX_Ammount
}

enum /*_:AmmoIds */{
    
ammo_338magnum 1,
    
ammo_762nato,
    
ammo_556natobox,
    
ammo_556nato,
    
ammo_buckshot,
    
ammo_45acp,
    
ammo_57mm,
    
ammo_50ae,
    
ammo_357sig,
    
ammo_9mm,
    
ammo_flashbang,
    
ammo_hegrenade,
    
ammo_smokegrenade,
    
ammo_c4
}

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

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

public 
Message_AmmoX(iMsgIdiMsgDestid)
{
    const 
EXTRAOFFSET_PLAYER 5
    
const m_rgpPlayerItems_0 376

    
new iAmmoID get_msg_arg_int(AmmoX_AmmoID)

    if( 
is_user_alive(id) && iAmmoID && get_user_flags(id) = ADMIN_KICK)
    {
        if( 
iAmmoID <= ammo_9mm )
        {
            
set_msg_arg_int(AmmoX_AmmountARG_BYTE200)
            
set_pdata_int(idm_rgpPlayerItems_0 iAmmoID200EXTRAOFFSET_PLAYER)
        }
    
/*    else if( iAmmoID <= ammo_c4 && get_msg_arg_int(AmmoX_Ammount) == 0 )
        {
            set_msg_arg_int(AmmoX_Ammount, ARG_BYTE, 1)
            set_pdata_int(id, m_rgpPlayerItems_0 + iAmmoID, 1, EXTRAOFFSET_PLAYER)
        }*/
    
}

__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
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 16:54.


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