AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   DoD:S Admin Weapons v0.4 Updated 5/2/2011 (https://forums.alliedmods.net/showthread.php?t=76442)

Lebson506th 08-24-2008 15:06

DoD:S Admin Weapons v0.4 Updated 5/2/2011
 
2 Attachment(s)
DoD:S Admin Weapons
by Lebson506th

Description

This plugin was inspired by a plugin I saw for DoD:S a long time ago. Don't remember what it was called or who it was by, and I couldn't find it. So I made this one.

This plugin allows admins with the "t" (ADMFLAG_CUSTOM6) flag to get any weapon in the game. Automatically gives full ammo for the weapon selected including rifle grenades for the Garand and K98.

This plugin also allows admins to give any weapon to any player, or let any player decide which weapon they want. It also allows admin to remove 1 or all of any player's weapons.

The only limitation right now is that the user can only get 1 of each thrown grenade at a time. However, because it is possible to get the grenades of the other team as well, you can get a total of 2 of each. (IE, US and German frag grenade = 2 frag grenades total)

Commands

sm_weapon - Brings up the menu that allows admin to get any weapon.
sm_weapon "Name" - Brings up the menu on the named client's side that allows them to choose the weapon they want.
sm_giveweapon "Name" - Brings up the menu that allows admin to choose which weapon to give a player.
sm_removeweapons "Name" - Removes all weapons from a given player.
sm_removeweapon "Name" <slot# (0-3)> - Removes a weapon from the given slot from a given player.

Special Thanks
  • DJ Tsunami for helping me fix a few issues while I was developing this in the IRC channel.
  • monkie for suggesting the translation and menu integration, beta testing the plugin for me, and translating the plugin into Chinese.
  • FeuerSturm for showing me the RemoveEdict bug.
  • GoD-Tony for writing out the fix for the translation issue.
Installation Instructions
  1. Copy dod_adminweapon.smx to addons/sourcemod/plugins
  2. Copy adminweapon.phrases.txt to addons/sourcemod/translations
  3. Using RCON, do "sm plugins load dod_adminweapon"
Current Languages
  • English
  • Chinese
Change Log

5/2/2011 - v0.4
  • Fixed translations potentially acting weirdly.
11/1/2008 - v0.3
  • Added translations.
  • Added commands to admin menu by default.
  • Fixed a bug when removing weapons that could cause server crashes after a while.
8/24/2008 - v0.2
  • Added sm_giveweapon "Name" that lets an admin choose what weapon to give to a player.
  • Added sm_weapon "Name" that opens the weapon menu on the given player so they can choose.
  • Added sm_removeweapons "Name" that removes all the weapons of a given player.
  • Added sm_removeweapon "Name" <slot# (0-3)> that removes the weapon in the given slot of the given player.
8/24/2008 - v0.1
  • Initial release

Lebson506th 08-24-2008 23:18

Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
 
8/24/2008 - v0.2
  • Added sm_giveweapon "Name" that lets an admin choose what weapon to give to a player.
  • Added sm_weapon "Name" that opens the weapon menu on the given player so they can choose.
  • Added sm_removeweapons "Name" that removes all the weapons of a given player.
  • Added sm_removeweapon "Name" <slot# (0-3)> that removes the weapon in the given slot of the given player.
Cause so many people seemed interested in it, I thought I would make it better.

ProjectManhatten 08-27-2008 22:10

Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
 
OMG THIS IS AWESOME! I've been waiting for it for sooo long... You rock!

Lebson506th 08-28-2008 08:44

Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
 
Quote:

Originally Posted by ProjectManhatten (Post 677007)
OMG THIS IS AWESOME! I've been waiting for it for sooo long... You rock!


Thanks =)


I made an adminmenu_custom.txt that adds these commands to a "Admin Weapon" category in the menu.

menotyou 08-28-2008 20:46

Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
 
can i use this for non admin player like in DoD Weapons Mod 2.0 http://www.dodplugins.net/forums/showthread.php?t=699 and if so how?

Lebson506th 08-28-2008 21:02

Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
 
sm_weapons "Name" Lets them choose.

If you want it so everyone can use the sm_weapon command, remove the "ADMFLAG_CUSTOM6" part of each command you want them to have in OnPluginStart()

menotyou 08-29-2008 23:59

Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
 
1 Attachment(s)
for puplic use with mod i use this key for non-admin
bind ] "sm_weapon"
Almost like DoD Weapons Mod 2.0
http://www.dodplugins.net/forums/showthread.php?t=699
Soo close

mgbadboyz 09-03-2008 16:39

Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
 
Great plugin. I got the menu to work but when i choose a weapon nothing happens. Any reason??

Lebson506th 09-03-2008 17:03

Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
 
Any errors in the logs?

mgbadboyz 09-03-2008 17:07

Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
 
only thing i noticed was this in console when i try to remove a weapon
09/03/2008 - 16:05:36: [SM] Native "GetPlayerWeaponSlot" reported: "Weapon_GetSlot" not supported by this mod
L 09/03/2008 - 16:05:36: [SM] Debug mode is not enabled for "dod_adminweapon.smx"
L 09/03/2008 - 16:05:36: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 5 on
does this mean my sourcemod version is to old?

Lebson506th 09-03-2008 18:40

Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
 
Running DoD:S?

What version of SourceMod are you using?

DoD:S works best with the 1.1.0 snapshots.

monkie 10-27-2008 07:50

Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
 
Request:

could u make the menu automatically integrated into sourcemod admin menu and make the interface multi-lingual?

Lebson506th 10-27-2008 07:59

Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
 
Yea, i can do that.

Lebson506th 11-01-2008 08:35

Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
 
11/1/2008 - v0.3
  • Added translations.
  • Added commands to admin menu by default.
  • Fixed a bug when removing weapons that could cause server crashes after a while.

cobra157 11-01-2008 13:26

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
Quote:

Originally Posted by Lebson506th (Post 674949)
DoD:S Admin Weapons
by Lebson506th

Description

This plugin was inspired by a plugin I saw for DoD:S a long time ago. Don't remember what it was called or who it was by, and I couldn't find it. So I made this one.

This plugin allows admins with the "t" (ADMFLAG_CUSTOM6) flag to get any weapon in the game. Automatically gives full ammo for the weapon selected including rifle grenades for the Garand and K98.

This plugin also allows admins to give any weapon to any player, or let any player decide which weapon they want. It also allows admin to remove 1 or all of any player's weapons.

The only limitation right now is that the user can only get 1 of each thrown grenade at a time. However, because it is possible to get the grenades of the other team as well, you can get a total of 2 of each. (IE, US and German frag grenade = 2 frag grenades total)

Commands

sm_weapon - Brings up the menu that allows admin to get any weapon.
sm_weapon "Name" - Brings up the menu on the named client's side that allows them to choose the weapon they want.
sm_giveweapon "Name" - Brings up the menu that allows admin to choose which weapon to give a player.
sm_removeweapons "Name" - Removes all weapons from a given player.
sm_removeweapon "Name" <slot# (0-3)> - Removes a weapon from the given slot from a given player.

Special Thanks
  • DJ Tsunami for helping me fix a few issues while I was developing this in the IRC channel.
  • monkie for suggesting the translation and menu integration and beta testing the plugin for me.
  • FeuerSturm for showing me the RemoveEdict bug.
Installation Instructions
  1. Copy dod_adminweapon.smx to addons/sourcemod/plugins
  2. Copy adminweapon.phrases.txt to addons/sourcemod/translations
  3. Using RCON, do "sm plugins load dod_adminweapon"
Change Log

11/1/2008 - v0.3
  • Added translations.
  • Added commands to admin menu by default.
  • Fixed a bug when removing weapons that could cause server crashes after a while.
8/24/2008 - v0.2
  • Added sm_giveweapon "Name" that lets an admin choose what weapon to give to a player.
  • Added sm_weapon "Name" that opens the weapon menu on the given player so they can choose.
  • Added sm_removeweapons "Name" that removes all the weapons of a given player.
  • Added sm_removeweapon "Name" <slot# (0-3)> that removes the weapon in the given slot of the given player.
8/24/2008 - v0.1
  • Initial release

Hi, can you help me? I'm not sure what you mean by

3. Using RCON, do "sm plugins load dod_adminweapon"

I put the above line in the rconlist.txt , was that the wrong place to put it? If so, where should I enter "sm plugins load dod_adminweapon"

FeuerSturm 11-01-2008 13:27

Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
 
You can use HLSW (www.hlsw.org) for remote console actions.

Lebson506th 11-01-2008 14:15

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
Alternatively, you could just restart the server or change the map. That has the same effect =)

monkie 11-01-2008 20:42

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
1 Attachment(s)
thank you so much for the update :)

here is the Chinese Simplified translation file

Lebson506th 11-01-2008 20:58

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
Quote:

Originally Posted by monkie (Post 708678)
thank you so much for the update :)

here is the Chinese Simplified translation file

Thanks very much

cobra157 11-02-2008 22:08

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
Hi, can you help me? I'm not sure what you mean by

3. Using RCON, do "sm plugins load dod_adminweapon"

I put the above line in the rconlist.txt , was that the wrong place to put it? If so, where should I enter "sm plugins load dod_adminweapon"

Lebson506th 11-03-2008 07:18

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
...you already asked that question.

Read FeuerSturm's and my answer starting at post #16

C. Arnold 12-14-2008 11:49

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
L 12/14/2008 - 10:41:38: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 12/14/2008 - 10:41:38: [SM] Native "SetMenuTitle" reported: Language phrase "MenuTitle" not found
L 12/14/2008 - 10:41:38: [SM] Displaying call stack trace for plugin "dod_adminweapon.smx":
L 12/14/2008 - 10:41:38: [SM] [0] Line 507, /home/groups/alliedmodders/forums/files/3/9/5/3/8/33253.attach::Weapon_Menu()
L 12/14/2008 - 10:41:38: [SM] [1] Line 168, /home/groups/alliedmodders/forums/files/3/9/5/3/8/33253.attach::AdminWeapon()

Lebson506th 12-14-2008 18:21

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
You didn't install the translations correctly.

Make sure adminweapon.phrases.txt is in your sourcemod/translations/ folder

C. Arnold 12-15-2008 00:26

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
ah that was simple enough, ok yeah i feel dumb now I threw that in there.. but it probably was in a different directory thanks.

Lebson506th 12-15-2008 07:08

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
Not a problem =)

C. Arnold 12-16-2008 19:05

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
would it be possible to later on down the road make it restore ammo also rather than weapons entirely. like an extra option for ammo replacement. we use it for practice with rifle nade priming and itd be simpler than just suiciding and returning.

Lebson506th 12-16-2008 20:32

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
What happens when you just give them the same gun again?

Lebson506th 05-03-2009 23:46

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
I no longer have the motivation to maintain this plugin and my life has gotten busy doing other things.

If you would like to take over development, please send me a PM and we will talk about it.

HyPhon 12-14-2009 16:12

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
1 Attachment(s)
Hey Lebson! Added german phrases!

Enjoy! :)

Greetings Hyphon

dungeon 12-15-2009 12:58

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
Hi, amazing plugin but can anyone please tell me why it doesn't intergrate into my admin menu??

I am running MM 1.8b and SM 1.2.4

dave223 02-04-2010 07:14

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
1. thank you, for making this Plugin

2. Since the DoD:S update Yesterday (03.02.2010) has the plugin a bug.
when I use the plugin crashes the server, and make a restart.
Crash your server if you use the plugin, too?

3. Sorry for my Bad English

Lebson506th 02-04-2010 08:31

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
That's probably because the offsets changed and need to be updated.

We'll have to wait for the SM team to update them.

dedodanny 03-16-2010 02:03

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
does any1 know how to set this so a menu pops up everytime a player spawns and lets them choose between maybe 5 weapons. dont want players to use the command or navigate thru the menus just open a list of a few weaps at every spawn. was on a server that had it set like this and cant figure out how to do it.

Lebson506th 05-02-2011 09:21

Re: DoD:S Admin Weapons v0.4 Updated 5/2/2011
 
5/2/2011 - v0.4
  • Fixed translations potentially acting weirdly.

paupav 08-12-2011 19:37

Re: DoD:S Admin Weapons v0.4 Updated 5/2/2011
 
does exist something like that for team fortress 2?

bludevs01 08-29-2012 20:32

Re: DoD:S Admin Weapons v0.3 Updated 11/1/2008
 
Quote:

Originally Posted by dedodanny (Post 1118910)
does any1 know how to set this so a menu pops up everytime a player spawns and lets them choose between maybe 5 weapons. dont want players to use the command or navigate thru the menus just open a list of a few weaps at every spawn. was on a server that had it set like this and cant figure out how to do it.


Yeah, the same with me. I'd love to have this plugin, but so it can show something like this when a player respawns:

1. K98 Scoped
2. Springfrield
3. Thompson
4. MP40
5. Garand
6. K98

That way if a player wants to choose the rocket class and keep the carbine and choose a Springfield, he/she can.

Kleiner 03-03-2021 09:31

Re: DoD:S Admin Weapons v0.4 Updated 5/2/2011
 
1 Attachment(s)
Russian translation update

playboycyberclub 01-10-2023 01:33

Re: DoD:S Admin Weapons v0.4 Updated 5/2/2011
 
3 Attachment(s)
DoD:S Admin Weapons Fix for SourceMod v1.11 or v1.12


All times are GMT -4. The time now is 21:32.

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