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

Making A Custom Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OoOpeterOoO
Junior Member
Join Date: May 2009
Old 02-25-2010 , 10:26   Making A Custom Menu
Reply With Quote #1

Hello, I'm trying to make a custom menu which I can give to anyone that donates to myself/the server, I would like only a few commands, but all in one menu to make it easier, here's what I put in the adminmenu_custom

Code:
"Commands"
{
	"Donator Commands"
	"Vote Kick"
		{
			"cmd"		"sm_votekick #1"
			"execute"	"server"
			"1"
			{
				"type" 		"player"
				"method"	"name"
				"title"		"Player to kick
			}
		}


	"Vote Ban"
		
		{
	
				"cmd"		"sm_voteban #1 #2"
				"execute"	"server"
				"1"
				{
					"type" 		"player"
					"method"	"name"
					"title"		"Player to Ban
				}
				"2"
					"type"		"list"
					"title"		"Ban Length"
					"1"		"30"
					"1."		"30 Minutes"
					"1*"		"q"

		}


	"Vote Map"
		{
	
				"cmd"		"sm_votemap #1"
				"execute"	"server"
				"1"
				{
					"type" 		"mapcycle"
					"path"		"mapcycle.txt"
					"title"		"Maps to vote for"
				}
				"2"
		}

	"Vote Mute"
		{
				"cmd"		"sm_votemute #1"
				"execute"	"server"
				"1"
				{
					"type"		"player"
					"method"	"name"
					"title"		"Player To Votemute"
				}
		}
	"Give Weapon"
		{
				"cmd"		"sm_weapon #1 #2"
				"execute"	"player"
			"1"
			{
				"type" 		"player"
				"title"		"Player:"
			}
			"2"
			{
				"type" 		"list"
				"title"		"Weapon:"
				"1"		"weapon_awp"
				"1."		"AWP Sniper"
"
			}
		}
 

}
Also, in my adminmenu overrides I put this
Code:
	"sm_votekick"	"q"
	"sm_voteban"	"q"
	"sm_votemap"	"q"
	"sm_cancelvote"	"q"
	"sm_votemute"	"q"
So I can give all donators the "q" flag and they will get this menu ;)

In admin groups I have this
Code:
	"Donators"
	{
		Overrides
		{
		}
		"flags"			"bq"
		"immunity"		"0"
	}

Thanks if anyone can help me getting this working

At the moment the admin has all of my custom menu addons and the Donator Menu isn't showing up at all

Last edited by OoOpeterOoO; 02-25-2010 at 11:57. Reason: Updated
OoOpeterOoO is offline
OoOpeterOoO
Junior Member
Join Date: May 2009
Old 02-25-2010 , 11:51   Re: Making A Custom Menu
Reply With Quote #2

I've changed a few things and I've got the menu working, however now because I have a few custom menu addons they have control to all of them.
They only have bq flag

q gives them all of the commands I want them to have, votekick etc :S
OoOpeterOoO is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-25-2010 , 17:06   Re: Making A Custom Menu
Reply With Quote #3

What if... you try give commands instead changing flags...
Could you try this first ?

Leave adminmenu_custom.txt admin_overrides.cfg alone what they used to be... don't edit those.

In admin_groups.cfg add this (between "Groups" { })
Code:
    "Donators"
    {
        Overrides
        {
        "sm_admin"        "allow" //Access Admin Menu panel
        "sm_votekick"    "allow" //Access votekick via admin menu and console
        "sm_voteban"    "allow"
        "sm_votemap"    "allow"
        "sm_votemute"    "allow"
        "sm_cancelvote"    "allow"
        "sm_weapon"        "allow"
        }
    "flags"                "a"
    }
Add player to group in admin_simple.ini
Code:
"STEAM_0:1:16"        "@Donators"   //Player Money Spender
or alternative admins.cfg (between "Admins" { })
Code:
    "Money Spender"
    {
        "auth"            "steam"
        "identity"        "STEAM_0:1:16"
        "group"            "Donators"
    }
- Now you have given only flag="a" to access reservedslot
(set reserved slot settings right, players flag="a" can join full server and kick normal player out to make room)
- Allowed use certain commands instead given flags when not know what commands behind different admin flags
- @Donators-group can access now Admin Menu and use same votekick voteban votemap as other admins.
- Of course certain commands can use via console and chat
- Have you already these "Vote Mute, Give weapon" in admin menu, did those come with plugin ?

--------------------------------------------------------------------------

Quote:
Hello, I'm trying to make a custom menu which I can give to anyone that donates to myself/the server, I would like only a few commands, but all in one menu to make it easier, here's what I put in the adminmenu_custom
But any way... here fix that adminmenu_custom.txt what you did edit.
adminmenu_custom.txt
Code:
"Commands"
{
    "Donator Commands"
    {
        "Vote Kick"
        {
            "cmd"        "sm_votekick @1 You have been voted off."
            "execute"    "server"
            "1"
            {
                "type"         "player"
                "method"    "userid"
                "title"        "Player to VoteKick"
            }
        }

        "Vote Ban"
        {
            "cmd"        "sm_voteban @1 Voted ban 30 minutes."
            "execute"    "server"
            "1"
            {
                "type"         "player"
                "method"    "userid"
                "title"        "Player to VoteBan"
            }
        }


        "Vote Map"
        {
            "cmd"        "sm_votemap #1"
            "execute"    "server"
            "1"
            {
                "type"         "mapcycle"
                "path"        "mapcycle.txt"
                "title"        "Maps to vote for"
            }
        }

        "Vote Mute"
        {
            "cmd"        "sm_votemute @1"
            "execute"    "server"
            "1"
            {
                "type"        "player"
                "method"    "userid"
                "title"        "Player To VoteMute"
            }
        }

        "Give Weapon"
        {
            "cmd"        "sm_weapon #1 #2"
            "execute"    "player"
            "1"
            {
                "type"         "player"
                "title"        "Player:"
            }
            "2"
            {
                "type"         "list"
                "title"        "Weapon:"
                "1"            "weapon_awp"
                "1."        "AWP Sniper"
            }
        }

    }
}
- There were lot of errors... quotes missing "" and close tags }
- You can't set value to voteban time limit. It's 30 min.
- Donator can get awp via admin menu... but via console it can get any weapon.
- I change method name to userid... if there appears players with almost same name, it execute all those or can't decide which one.
__________________
Do not Private Message @me

Last edited by Bacardi; 02-26-2010 at 03:35.
Bacardi is offline
OoOpeterOoO
Junior Member
Join Date: May 2009
Old 02-26-2010 , 12:04   Re: Making A Custom Menu
Reply With Quote #4

Gah, I feel so stupid, I didn't realise you could put command overrides, I thought you could only do flags.

I'm just going to try this.

Thanks so much!
OoOpeterOoO is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-26-2010 , 15:55   Re: Making A Custom Menu
Reply With Quote #5

Nah.. it's not stupidity...
Could not see first time all possibilities what can set in SourceMod.
Many times I have also set admin rights testing purpose, recently I found this too
__________________
Do not Private Message @me
Bacardi is offline
triggerman
Senior Member
Join Date: Jun 2009
Old 02-26-2010 , 19:36   Re: Making A Custom Menu
Reply With Quote #6

Code:
 "Give Awp"
        {
            "cmd"        "sm_weapon #1 weapon_awp"
            "execute"    "server"
            "1"
            {
                "type"         "player"
                "title"        "Player:"
            }
        }
assuming sm_weapon works server side then using this code and not allowing sm_weapon should allow them to give awps out through the menu while still restricting sm_weapon in console.
__________________
triggerman is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-27-2010 , 03:54   Re: Making A Custom Menu
Reply With Quote #7

Quote:
Originally Posted by triggerman View Post
...assuming sm_weapon works server side then using this code and not allowing sm_weapon should allow them to give awps out through the menu while still restricting sm_weapon in console.
Now I realized the purpose of this execute - 'server' or 'player'
Executed commands from Admin menu and can not use commands through console. (I have tried to look into this)
Can use only this parameter sm_weapon (name) weapon_awp
can limit/restrict weapons and not allowed get all...

I didin't get work with your code so I added "admin" to get access this via Admin Menu. Its that now right ?
Group added override sm_admin or admin flags="b" can access this Give AWP
Code:
"Give Awp"
{
    "admin"        "sm_admin"
    "cmd"        "sm_weapon #1 weapon_awp"
    "execute"    "server"
    "1"
    {
        "type"         "player"
        "title"        "Player:"
    }
}




OoOpeterOoO

I edit again your adminmenu_custom.txt
- added "admin" "sm_admin" access enter to admin menu commands.
- added cancel vote.. erase if you don't want it.
Code:
"Commands"
{
    "Donator Commands"
    {
        "Vote Kick"
        {
            "admin"        "sm_admin"
            "cmd"        "sm_votekick @1 You have been voted off."
            "execute"    "server"
            "1"
            {
                "type"         "player"
                "method"    "userid"
                "title"        "Player to VoteKick"
            }
        }

        "Vote Ban"
        {
            "admin"        "sm_admin"
            "cmd"        "sm_voteban @1 Voted ban 30 minutes."
            "execute"    "server"
            "1"
            {
                "type"         "player"
                "method"    "userid"
                "title"        "Player to VoteBan"
            }
        }


        "Vote Map"
        {
            "admin"        "sm_admin"
            "cmd"        "sm_votemap #1"
            "execute"    "server"
            "1"
            {
                "type"         "mapcycle"
                "path"        "mapcycle.txt"
                "title"        "Maps to vote for"
            }
        }

        "Vote Mute"
        {
            "admin"        "sm_admin"
            "cmd"        "sm_votemute @1"
            "execute"    "server"
            "1"
            {
                "type"        "player"
                "method"    "userid"
                "title"        "Player To VoteMute"
            }
        }

        "Cancel Vote"
        {
            "admin"        "sm_admin"
            "cmd"        "sm_cancelvote"
            "execute"    "server"
        }

        "Give Awp"
        {
            "admin"        "sm_admin"
            "cmd"        "sm_weapon #1 weapon_awp"
            "execute"    "server"
            "1"
            {
                "type"         "player"
                "title"        "Player:"
            }
        }
    }
}
And edit donators group
admin_groups.cfg
Code:
    "Donators"
    {
        Overrides
        {
        "sm_admin"        "allow"
        }
    "flags"                "a"
    }
- Players added group @Donators can see only "Donator Commands" via admin menu
- They can't see other menu section Player Commands, Server Commands, etc. etc.
- @Donators groups can use only sm_admin command via console or chat
- Rest votekick voteban etc. etc. work admin menu.
- Now your custom menu should work, how you wanted, thanks triggerman give solution.
__________________
Do not Private Message @me

Last edited by Bacardi; 02-27-2010 at 04:06.
Bacardi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-27-2010 , 09:37   Re: Making A Custom Menu
Reply With Quote #8

Here attachments...
And don't change commands flags in admin_overrides.cfg.

You can peek or if you want use these, copy your own admin_groups.cfg and adminmenu_custom.txt save before you add these on server.

Reboot server and your game.. or it will remeber old admin menu.
Attached Files
File Type: cfg admin_groups.cfg (888 Bytes, 244 views)
File Type: txt adminmenu_custom.txt (1.4 KB, 200 views)
__________________
Do not Private Message @me
Bacardi is offline
ZokY
Member
Join Date: Aug 2009
Location: Macedonia, veles
Old 03-07-2010 , 17:46   Re: Making A Custom Menu
Reply With Quote #9

I want to do some menu that it can be opened with bint M for example, and the menu be like this

1.HLMP
2.CLASS
3.GUNS

0.EXIT

and with pressing some of numbers for example 2, in chat to type /class and then open class menu in biohazard mod

i am not sure that i am understandet but sory for bad English
ZokY is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 01-17-2012 , 02:06   Re: Making A Custom Menu
Reply With Quote #10

Quote:
Originally Posted by Bacardi View Post
Here attachments...
And don't change commands flags in admin_overrides.cfg.

You can peek or if you want use these, copy your own admin_groups.cfg and adminmenu_custom.txt save before you add these on server.

Reboot server and your game.. or it will remeber old admin menu.

Bacardi,

Need some help. I want to make a VIP Menu. I prefer their commands to not have a category since they will only have about 5. I don't want them to be able to see the other categories and I would prefer higher level admins not see their category. I want the votes to have reasons and have times set. (Bans 90 minutes and Silence for 60 minutes)

Here is what I have but nothing is working for me.


adminmenu_custom.txt

Quote:
// Custom admin menu commands.
// For more information:
//
// http://wiki.alliedmods.net/Custom_Ad...28SourceMod%29
//
// Note: This file must be in Valve KeyValues format (no multiline comments)
//

"Commands"
{
"VIP Commands"
{
"Vote Silence"
{
"admin" "sm_admin"
"cmd" "sm_votesilence #1 #2 @1 You have been vote silenced for 60 minutes"
"execute" "server"
"1"
{
"type" "player"
"method" "userid"
"title" "Player To Silence"
}
"2"
{
"type" "list"
"title" "Reason:"
"1" "Spamming Mic/Chat"
"1." "Spamming Mic/Chat"
"2" "Griefing"
"2." "Griefing"
"3" "Ranting"
"3." "Ranting"
"4" "Trolling"
"4." "Trolling"
"5" "BadLanguage"
"5." "Inappropriate Language"
}
}

"Vote Kick"
{
"admin" "sm_admin"
"cmd" "sm_votekick #1 #2 @1 You have been vote kicked""
"execute" "server"
"1"
{
"type" "player"
"method" "userid"
"title" "Player To Kick:"
}
"2"
{
"type" "list"
"title" "Reason:"
"1" "NotTeamPlayer"
"1." "Not pursuing team objectives"
"2" "Exploit"
"2." "Exploiting Game/Map/Server"
"3" "BadLanguage"
"3." "Offensive Language"
"4" "BadName"
"4." "Offensive Name"
"5" "SuspectHacks"
"5." "Suspected Hacker"
}
}

"Vote Ban"
{
"admin" "sm_admin"
"cmd" "sm_voteban #1 #2 @1 Voted banned 90 minutes"
"execute" "server"
"1"
{
"type" "player"
"method" "userid"
"title" "Player To Ban:"
}
"2"
{
"type" "list"
"title" "Reason:"
"1" "ProbHacking"
"1." "Is almost certainly Hacking"
"2" "ExtremeRanting"
"2." "Abusive, Racist, or Obscene Ranting"
"3" "Trolling\Griefing"
"3." "Obsessive Trolling or Griefing"
"4" "UndermineTeam"
"4." "Maliciously undermining team"
"5" "RepeatOffender"
"5." "Kicked Rejoined and Resumed"
}
}

"Swap Teams"
{
"admin" "sm_admin"
"cmd" "sm_swapteam @me"
"execute" "server"
}
}
}
admin_groups.cfg

Quote:
"Groups"
{
"masteradmin"
{
"flags" "z"
"immunity" "9999"
}

"admin"
{
"flags" "abcdegjkopqrst"
"immunity" "100"
}

"donator"
{
"flags" "ao"
"immunity" "5"

Overrides
{
"sm_admin" "allow" //Access Admin Menu panel
}
}
}
adminmenu_sorting.txt
Quote:
"Menu"
{
"PlayerCommands"
{
"item" "sm_slay"
"item" "sm_kick"
"item" "sm_ban"
"item" "sm_gag"
"item" "sm_burn"
}

"ServerCommands"
{
"item" "sm_map"
"item" "sm_execcfg"
"item" "sm_reloadadmins"
}

"VotingCommands"
{
"item" "sm_cancelvote"
"item" "sm_votemap"
"item" "sm_votekick"
"item" "sm_voteban"
}

"VipMenu"
{
"item" "sm_cancelvote"
"item" "sm_votesilence"
"item" "sm_votekick"
"item" "sm_voteban"
}
}
moxie2020 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 19:11.


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