AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Set Ammo [v1.0.0] (https://forums.alliedmods.net/showthread.php?t=142855)

DarthNinja 11-11-2010 00:45

[TF2] Set Ammo [v1.0.0]
 
1 Attachment(s)
[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

FlaminSarge 11-11-2010 01:33

Re: [TF2] Set Ammo [v1.0.0]
 
daww make it "SetSpeshulAmmo" :C
Also, set Build PDA ammo with this? lol.

This nullifies your Have some Piss and Have some Ballz plugins to some extent, doesn't it...

BTW isn't SetAmmo copypasta'd from those two plugins^?

OOH! Make one for fire rate!

Btw why does setclip have <offhand ammo> as the command help thing if setammo does offhand ammo?

DarthNinja 11-11-2010 03:42

Re: [TF2] Set Ammo [v1.0.0]
 
Quote:

Originally Posted by FlaminSarge (Post 1347013)
daww make it "SetSpeshulAmmo" :C
Also, set Build PDA ammo with this? lol.

This nullifies your Have some Piss and Have some Ballz plugins to some extent, doesn't it...

BTW isn't SetAmmo copypasta'd from those two plugins^?

OOH! Make one for fire rate!

Btw why does setclip have <offhand ammo> as the command help thing if setammo does offhand ammo?

Build metal? I dunno, didn't try it.

Yes a bit, but this is for any weapon, whereas the others are just balls/jarate.
Idea being root admins get this, and lower ranked admins get just balls etc.

Yeah, you copypasta'd from mine, then I copy pasta'd from you, so yeah. :P

That's a thought

I dun goof'd

FlaminSarge 11-11-2010 12:22

Re: [TF2] Set Ammo [v1.0.0]
 
SetSpeshulAmmo.
And build pda ammo =/= metal.
I believe slot 6 is the builder. so THAT'd be build ammo? Or wrench ammo? Hm...

SgtScorpio 11-14-2010 05:59

Re: [TF2] Set Ammo [v1.0.0]
 
Is it possible to stop it from announcing every time I use a command?

DarthNinja 11-15-2010 00:28

Re: [TF2] Set Ammo [v1.0.0]
 
Quote:

Originally Posted by SgtScorpio (Post 1349084)
Is it possible to stop it from announcing every time I use a command?

Comment out the line.

SgtScorpio 11-15-2010 10:36

Re: [TF2] Set Ammo [v1.0.0]
 
I couldnt find a config file created by the mod, they are usually in team fortress 2\tf\cfg\sourcemod but this mod didnt have one in there.

So how do I comment out the line?

Tylerst 11-15-2010 11:38

Re: [TF2] Set Ammo [v1.0.0]
 
Quote:

Originally Posted by SgtScorpio (Post 1349972)
I couldnt find a config file created by the mod, they are usually in team fortress 2\tf\cfg\sourcemod but this mod didnt have one in there.

So how do I comment out the line?

He wasn't talking about a config file, he meant to download the source, put // in front of these 2 lines(or just delete them):

Code:

ShowActivity2(client, "\x04[\x03SetAmmo\x04]:"," \x01gave \x05%s \x04%i\x01 offhand ammo for the weapon in slot \x04%i\x01!", target_name, Ammo, Slot+1);
Code:

ShowActivity2(client, "\x04[\x03SetAmmo\x04]:"," \x01gave \x05%s\x01 a clip size of \x04%i\x01 in weapon slot \x04%i\x01!", target_name, Ammo, Slot+1);
and then recompile.

danmon 11-15-2010 21:47

Re: [TF2] Set Ammo [v1.0.0]
 
Quote:

Originally Posted by DarthNinja (Post 1349755)
I'll do an ammopack one soon

You said this on your medipacks plugin..is this what you were talking about? :)

DarthNinja 11-16-2010 01:07

Re: [TF2] Set Ammo [v1.0.0]
 
Quote:

Originally Posted by danmon (Post 1350359)
You said this on your medipacks plugin..is this what you were talking about? :)

Nope, but I will do that some time soon


All times are GMT -4. The time now is 10:36.

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