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

[TF2] Set Ammo [v1.0.0]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
2064
Plugin Version:
1.1.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    35 
    Plugin Description:
    Set players ammo (clip and offhand) to any value you like!
    Old 11-11-2010 , 00:45   [TF2] Set Ammo [v1.0.0]
    Reply With Quote #1

    [TF2] Set Ammo
    Version 1.1.0



    Description:
    Allows admins to set players ammo and clip values to anything they want.
    For example, you could use to this to give yourself a 50 shot FaN, a Huntsman that has 500 extra ammo, etc, etc.
    Works on any weapon/item, including sandman balls, sandviches, milk etc.
    Makes you taller or your money back!


    Commands:
    sm_setammo - <Player> <Slot> <Ammo>
    Sets the <Player>'s offhand ammo for the weapon in <Slot> to <Ammo>.
    Eg: sm_setammo @me 1 50 would give me 50 reload ammo.

    sm_setclip - <Player> <Slot> <Ammo>
    Sets the <Player>'s clip size for the weapon in <Slot> to <Ammo>.
    Eg: sm_setclip @me 1 50 would let me fire 50 rockets/FaN shots/etc without reloading.
    Cvars:
    sm_setammo_version - Version
    sm_setammo_showtext - Enable/Disable printing to chat. Default: Enabled.

    Install Instructions:
    1. Place SetAmmo.smx into your addons/sourcemod/plugins/ folder.

    Notes:
    • Slot "1" = Primary weapon
    • Slot "2" = Secondary weapon
    • Slot "3" = Tertiary weapon
    Default admin level is root.


    ToDo:
    • Multi-mod support (maybe).

    Version History:
    • V1.0.0
      • Initial Release
    • V1.1.0
      • Fixed a bug with replying to the target rather then the admin if an invalid weapon slot was specified.
      • Added a cvar to disable ShowActivity2
    78 downloads as of 11/23/2010
    Attached Files
    File Type: sp Get Plugin or Get Source (SetAmmo.sp - 7482 views - 4.0 KB)
    __________________

    Last edited by DarthNinja; 11-23-2010 at 09:42.
    DarthNinja is offline
     


    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 12:20.


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