Raised This Month: $32 Target: $400
 8% 

adminmenu_custom to be a match menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
skittles
Junior Member
Join Date: Mar 2005
Location: England
Old 05-05-2010 , 12:21   adminmenu_custom to be a match menu
Reply With Quote #1

Ok so i was looking through the adminmenu_custom wiki and also here on the forums but as im not much of a coder or really one at all I am after some help. I would like for the following code to work whilst warmode is enabled so any help on fixing this would be great! Also if this is in the wrong thread either jus move or let me know thanks in advance.


"Commands"
{
"Match Admin"
{
"Kick All"
{
"cmd" "sm_kick"
"admin" "sm_kick"
"execute" "player"
{
"type" "groupplayer"
"method" "name"
"title" "CT"
"title" "T"

}
"Ban All"
{
"cmd" "sm_ban"
"admin" "sm_kick"
"execute" "player"
{
"type" "groupplayer"
"method" "name"
"title" "CT"
"title" "T"

}
"Gag All"
{
"cmd" "sm_gag"
"admin" "sm_kick"
"execute" "player"
}
"Ungag All"
{
"cmd" "sm_ungag"
"admin" "sm_kick"
"execute" "player"
}
"cfg/sourcemod/warmup.cfg" "Warm Up"
"cfg/sourcemod/ko3.cfg" "Knives on 3"
"cfg/sourcemod/lo3.cfg" "Live On 3"
"admin" "sm_kick"
}
}

}


Basically for the kick and ban commands i would like for there to be a sub menu listing either ct or t, where as gag is for all effectivly disabling chat

Last edited by skittles; 05-05-2010 at 12:32.
skittles is offline
Joe4evr
Member
Join Date: Apr 2010
Old 05-05-2010 , 12:53   Re: adminmenu_custom to be a match menu
Reply With Quote #2

That's not quite right, let me fix it up a bit.
Code:
"Commands"
{
	"Match Admin"
	{
		"Kick All"
		{
			"cmd"		"sm_kick @all"
			"admin"		"sm_kick"
			"execute"		"player"
		}
		"Ban All"
		{
			"cmd"		"sm_ban @all"
			"admin"		"sm_ban"
			"execute"		"player"
		}
		"Gag All"
		{
			"cmd"		"sm_gag @all"
			"admin"		"sm_kick"
			"execute"		"player"
		}
		"Ungag All"
		{
			"cmd"		"sm_ungag @all"
			"admin"		"sm_kick"
			"execute"		"player"
		}
		"cfg/sourcemod/warmup.cfg"		"Warm Up"
		"cfg/sourcemod/ko3.cfg"		"Knives on 3"
		"cfg/sourcemod/lo3.cfg"		"Live On 3"
		"admin"				"sm_kick"
  	}
}
I'm not sure what exactly you're trying to accomplish, so you might want a second opinion.
Joe4evr is offline
skittles
Junior Member
Join Date: Mar 2005
Location: England
Old 05-06-2010 , 10:05   Re: adminmenu_custom to be a match menu
Reply With Quote #3

That got the list showing but if i select kick it kicks every 1 if i select ban it bans every one, is it possible to sub menu this with a specific team? alsoas far as I am aware gag does not work at all... as for the configs they dont even become listed...

Last edited by skittles; 05-06-2010 at 10:07.
skittles is offline
Joe4evr
Member
Join Date: Apr 2010
Old 05-06-2010 , 11:02   Re: adminmenu_custom to be a match menu
Reply With Quote #4

Quote:
Originally Posted by skittles View Post
That got the list showing but if i select kick it kicks every 1 if i select ban it bans every one, is it possible to sub menu this with a specific team? alsoas far as I am aware gag does not work at all... as for the configs they dont even become listed...
Yeah, I figured as much, but you described it with Kick All and Ban All, so I was kinda confused.

This is probably what you want:
Code:
"Commands"
{
	"Match Admin"
	{
		"Kick All"
		{
			"cmd"		"sm_kick #1"
			"admin"		"sm_kick"
			"execute"		"player"
			"1"
			{
				"type"		"list"
				"title"		"Kick Team"
				"1"		"@t"
				"1."		"Terrorists"
				"2"		"@ct"
				"2."		"Counter-Terrorists"
			}
		}
		"Ban All"
		{
			"cmd"		"sm_ban #1"
			"admin"		"sm_ban"
			"execute"		"player"
			"1"
			{
				"type"		"list"
				"title"		"Ban Team"
				"1"		"@t"
				"1."		"Terrorists"
				"2"		"@ct"
				"2."		"Counter-Terrorists"
			}
		}
		"Gag All"
		{
			"cmd"		"sm_gag #1"
			"admin"		"sm_kick"
			"execute"		"player"
			"1"
			{
				"type"		"list"
				"title"		"Gag Team"
				"1"		"@t"
				"1."		"Terrorists"
				"2"		"@ct"
				"2."		"Counter-Terrorists"
			}
		}
		"Ungag All"
		{
			"cmd"		"sm_ungag #1"
			"admin"		"sm_kick"
			"execute"		"player"
			"1"
			{
				"type"		"list"
				"title"		"Ungag Team"
				"1"		"@t"
				"1."		"Terrorists"
				"2"		"@ct"
				"2."		"Counter-Terrorists"
			}
		}
		"Exec CFG"
		{
			"cmd"		"sm_execcfg #1"
			"admin"		"sm_kick"
			"execute"		"server"
			"1"
			{
				"type"		"list"
				"title"		"Execute CFG"
				"1"		"warmup.cfg"
				"1."		"Warm Up"
				"2"		"ko3.cfg"
				"2."		"Knives on 3"
				"3"		"lo3.cfg"
				"3."		"Live On 3"
			}
		}
  	}
}
I'm not too sure about the Exec CFG part, soo tell me if that works.
Joe4evr is offline
skittles
Junior Member
Join Date: Mar 2005
Location: England
Old 05-06-2010 , 12:12   Re: adminmenu_custom to be a match menu
Reply With Quote #5

I had just been going through and messing around with what you gave me and got...

"Commands"
{
"Match Admin"
{
"Kick All CT"
{
"cmd" "sm_kick @ct"
"admin" "sm_kick"
"execute" "player"
}
"Kick All T"
{
"cmd" "sm_kick @t"
"admin" "sm_kick"
"execute" "player"
}
"Gag All"
{
"cmd" "sm_gag @all"
"admin" "sm_kick"
"execute" "player"
}
"Ungag All"
{
"cmd" "sm_ungag @all"
"admin" "sm_kick"
"execute" "player"
}
"WarmUP.cfg"
{
"cmd" "sm_execcfg warmup.cfg"
"admin" "sm_kick"
"execute" "player"
}
"KO3.cfg"
{
"cmd" "sm_execcfg ko3.cfg"
"admin" "sm_kick"
"execute" "player"
}
"LO3.cfg"
{
"cmd" "sm_execcfg lo3.cfg"
"admin" "sm_kick"
"execute" "player"
}
}
}

Next task was the grouping but you beat me to it thanks Ok kick works, ban requires a reason atm I think because im using steam bans? it gives error...
[SourceBans] Usage: sm_ban <#userid|name> <time|0> [reason] when trying to ban a team

Configs works for lo3 but not warmup or ko3 gonna check file names and see, however the sm_gag doesnt work but i think i need to enable another plugin for that... thanks for your reply. Is there any way of stipulating the order list instead of it being alphabetical?

I think the easiest way to explain the layout is as follows:

Kick
i.Kick all CT
i.Kick all T
i.Kick Player
ii.Player List
Ban
i.Ban all CT
ii.1 Hour
ii.1 Day
ii.1 Week
ii.Permanent
i.Ban all T
ii.1 Hour
ii.1 Day
ii.1 Week
ii.Permanent
i.Ban Player
ii.Player List
Chat
i.Disable Chat all
i.Enable Chat all
Configs
i.Warmup
i.Knives
i.Live

If its to much to list players for the kick and ban functionallity thats fine as u can do that through the main admin menu

Last edited by skittles; 05-06-2010 at 13:12.
skittles is offline
skittles
Junior Member
Join Date: Mar 2005
Location: England
Old 06-12-2010 , 14:49   Re: adminmenu_custom to be a match menu
Reply With Quote #6

Any suggestions on how I would add this menu to a custom flag so I dont have to give players changemap and exec config ability in the main user flags? sorry for late reply
skittles is offline
Reply


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 22:04.


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