View Single Post
Author Message
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
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 - 7506 views - 4.0 KB)
__________________

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