Monthly Target: $400 Donations: $166
 41% 

[L4D2] Infinite Ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Machine
Senior Member
Join Date: Apr 2010
Plugin ID:
1587
Plugin Version:
1.5.5
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Approver:
    Plugin Description:
    Allows admins to toggle infinite ammo to players
    Servers with this Plugin:
     
    Old 04-02-2010 , 11:48   [L4D2] Infinite Ammo
    Reply With Quote #1

    Description:

    Infinite Ammo for L4D2.
    This plugin gives admins more options for infinite ammo.

    Command:
    REQUIRES Admin Ban -
    l4d2_iammo <user id | name | @all> <0 | 1> - Gives or removes infinite ammo to a player.

    Cvar:
    l4d2_iammo_enable <0|1|2> Enable Infinite Ammo? 0=Off 1=On 2=Everyone
    l4d2_iammo_gl <0|1|2> Allow infinite ammo on grenade launcher? 0=Off 1=On 2=Only
    l4d2_iammo_m60 <0|1|2> Allow infinite ammo on the M60? 0=Off 1=On 2=Only
    l4d2_iammo_chainsaw <0|1|2> Allow infinite ammo on the chainsaw? 0=Off 1=On 2=Only
    l4d2_iammo_throwables <0|1|2> Allow Infinite Ammo on Throwables? 0=Off 1=On 2=Only
    l4d2_iammo_upgradeammo <0|1> Allow Infinite Explosive and Incendiary Ammo? 0=Off 1=On
    l4d2_iammo_meds <0|1|2> Allow Infinite Ammo on Medkits? 0=Off 1=On 2=Only
    l4d2_iammo_defibs <0|1|2> Allow Infinite Ammo on Defibrillators? 0=Off 1=On 2=Only
    l4d2_iammo_pills <0|1|2> Allow Infinite Ammo on Pills? 0=Off 1=On 2=Only
    l4d2_iammo_shots <0|1|2> Allow Infinite Ammo on Shots? 0=Off 1=On 2=Only
    l4d2_admin_override <0|1> Admins with infinite ammo always have all settings enabled? 0=Off 1=On

    Changelog:

    1.0
    - Release
    1.1
    - Made the cvar work as intended.
    1.2
    - Bug fixes, can use command in console.
    1.3
    - Fixed clip sizes on some weapons not being correct.
    - Fixed issue with infinite ammo not staying on mapchange.
    1.4
    - Added M60 Support
    - Added new convars for disabling certain weapons
    1.5
    - Added Throwables and Upgrade Ammo Cvars.
    - Updated Cvar options to make only certain weapons have Infinite Ammo.
    - Swapped OnGameFrame for Weapon Fire Events (Better Performance)
    - I renamed the cmds and cvars from sm_ to l4d2_, the new config file will be named l4d2_iammo_config. You may delete the sm_iammo_config.
    1.5.1
    - Extra Error Checking/Bug Fixes
    1.5.5
    - Added support for medkits, defibs, pills and shots
    - Added Adminmenu support
    - Removed config load/save, just use the adminmenu
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_iammo.sp - 3176 views - 34.1 KB)

    Last edited by Machine; 04-03-2013 at 21:42. Reason: Updated to v1.5.5
    Machine is offline
    tmjritz
    Junior Member
    Join Date: Mar 2010
    Old 04-02-2010 , 18:31   Re: [L4D2] Infinite Ammo
    Reply With Quote #2

    i couldn't get it to work i tried sm_iammo_enable 2 in console didn't work
    tmjritz is offline
    Machine
    Senior Member
    Join Date: Apr 2010
    Old 04-02-2010 , 19:06   Re: [L4D2] Infinite Ammo
    Reply With Quote #3

    Its a cvar not a command, so make sure you do sm_cvar sm_iammo_enable 2.
    Machine is offline
    tmjritz
    Junior Member
    Join Date: Mar 2010
    Old 04-02-2010 , 22:48   Re: [L4D2] Infinite Ammo
    Reply With Quote #4

    i set it on the server and it still doesn't work for some reason
    tmjritz is offline
    Machine
    Senior Member
    Join Date: Apr 2010
    Old 04-03-2010 , 01:09   Re: [L4D2] Infinite Ammo
    Reply With Quote #5

    My apologies, cvar wasn't working as intended.

    Updated to 1.1, you should be able to use the cvar in server console now.
    Machine is offline
    REDSCOUT
    Member
    Join Date: Sep 2009
    Old 04-11-2010 , 00:06   Re: [L4D2] Infinite Ammo
    Reply With Quote #6

    Well, I am going to try this out and see for myself if this thing works because all I know is that TF2 Unlimited ammo Works
    REDSCOUT is offline
    ReHAXor
    Member
    Join Date: Dec 2005
    Old 04-18-2010 , 14:12   Re: [L4D2] Infinite Ammo
    Reply With Quote #7

    hi @ all

    i have compiled a version
    without infinite ammo for the
    grenade launcher.

    if anybody is interested in to use - feel free.
    Attached Files
    File Type: smx l4d2_iammo_without_Launcher.smx (6.2 KB, 491 views)

    Last edited by ReHAXor; 04-18-2010 at 14:43. Reason: edit text
    ReHAXor is offline
    quang20082008
    Member
    Join Date: Mar 2010
    Old 04-29-2010 , 08:32   Re: [L4D2] Infinite Ammo
    Reply With Quote #8

    Cool, M60 ), thanks :@)
    test it now :@), why you no notify :@)?
    quang20082008 is offline
    quang20082008
    Member
    Join Date: Mar 2010
    Old 04-29-2010 , 11:15   Re: [L4D2] Infinite Ammo
    Reply With Quote #9

    Tested :@), not different sv_infinite_ammo :@)

    Last edited by quang20082008; 04-29-2010 at 11:17.
    quang20082008 is offline
    REDSCOUT
    Member
    Join Date: Sep 2009
    Old 05-15-2010 , 18:38   Re: [L4D2] Infinite Ammo
    Reply With Quote #10

    Infinite Ammo for Head Admin only >
    REDSCOUT is offline
    Reply


    Thread Tools
    Display Modes

    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 03:52.


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