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

Solved [L4D2] Give Weapon adminmenu_custom


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tank Rush
Senior Member
Join Date: May 2019
Location: Argentina
Old 10-02-2023 , 15:49   [L4D2] Give Weapon adminmenu_custom
Reply With Quote #1

Hello, I'm trying to add the option to give weapons to the admin menu, I did it this way but it doesn't work. When I type !admin I choose "Give Weapon" I select a player or I myself do not give weapons.

Code:
"Commands"
{
    "PlayerCommands"
    {
		"Give Weapon"
		{
			"cmd"		"give #1 #2"
			"1"
			{
				"type" 		"player"
				"title"		"Player:"
			}
			"2"
			{
				"type" 		"list"
				"title"		"Weapon:"
				"1"		"weapon_smg"
				"1."		"smg"
				"2"		"smg_silenced"
				"2."		"smg silenced"
				"3"		"weapon_smg_mp5"
				"3."		"smg mp5"
				"4"		"weapon_pumpshotgun"
				"4."		"pumpshotgun"
				"5"		"weapon_shotgun_chrome"
				"5."		"shotgun chrome"
				"6"		"weapon_autoshotgun"
				"6."		"autoshotgun"
				"7"		"weapon_shotgun_spas"
				"7."		"shotgun spas"
				"8"		"weapon_rifle"
				"8."		"rifle"
				"9"		"weapon_rifle_desert"
				"9."		"rifle desert"
				"10"	"weapon_rifle_ak47"
				"10."		"rifle ak47"
				"11"	"weapon_rifle_sg552"
				"11."		"rifle sg552"
				"12"	"weapon_hunting_rifle"
				"12."		"hunting rifle"
				"13"	"weapon_sniper_scout"
				"13."		"sniper scout"
				"14"	"weapon_sniper_military"
				"14."		"sniper military"
				"15"	"weapon_sniper_awp"
				"15."		"sniper awp"
				"16"	"weapon_rifle_m60"
				"16."		"m60"
				"17"	"weapon_grenade_launcher"
				"17."		"grenade launcher"
				"18"	"weapon_pistol"
				"18."		"pistol"
				"19"	"weapon_pistol_magnum"
				"19."		"pistol magnum"
				"20"	"weapon_gascan"
				"20."		"gascan"
				"21"	"weapon_propanetank"
				"21."		"propane tank"
				"22"	"weapon_oxigentank"
				"22."		"oxigen tank"
				"23"	"weapon_cola"
				"23."		"cola"
			}
		}
	}
}
__________________
Sorry i don't speak english very well

--->My name is Source and I'm on Steam<---
Discord: Source#9382

Last edited by Tank Rush; 10-02-2023 at 18:12.
Tank Rush is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-02-2023 , 16:42   Re: [L4D2] Give Weapon adminmenu_custom
Reply With Quote #2

Install this plugin: [L4D & L4D2] Item Giver

Change "give" cmd to "sm_give"
__________________
Silvers is offline
Reply



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 08:13.


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