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

SM Super Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Nomarky
SourceMod Donor
Join Date: Sep 2007
Old 09-11-2007 , 08:02   Re: SM Super Menu
Reply With Quote #191

Hi

I'm looking to use this plugin to replace Mani on my HL2DM server. I only use a few Mani features (kick, ban, changemap etc) so this looks ideal, but I was wondering if (and how!) menu items can be added to execute .cfg files? I use the RCON commands feature of Mani to execute various .cfgs which contain a bunch of commands to execute, i.e. match_server.cfg sets a password, turns FF on, changes the frag and timelimit and restarts the round. Is this possible with this plugin? Where do the configs go if it is possible? I assume the sourcemod/configs folder...but I'm not sure.

Anyone know if this is possible?

Cheers

Mark
Nomarky is offline
[OSF]Swine
Junior Member
Join Date: Sep 2007
Old 09-11-2007 , 09:59   Re: SM Super Menu
Reply With Quote #192

Actually I've been having an issue with this as well, whenever I try to run a command that uses the player list it doesn't work- for instance, if I ran sm_psay #1 #2 where #1 is the player list and #2 is the cmd, it'll try to run sm_psay 7 cmd name but the person's userid is actually 21. Not sure if this is a problem with super menu or with the sourcemod build (I'm using the latest one).
[OSF]Swine is offline
Tekniqal
Senior Member
Join Date: Aug 2006
Old 09-11-2007 , 19:39   Re: SM Super Menu
Reply With Quote #193

Quote:
Originally Posted by Nomarky View Post
Hi

I'm looking to use this plugin to replace Mani on my HL2DM server. I only use a few Mani features (kick, ban, changemap etc) so this looks ideal, but I was wondering if (and how!) menu items can be added to execute .cfg files? I use the RCON commands feature of Mani to execute various .cfgs which contain a bunch of commands to execute, i.e. match_server.cfg sets a password, turns FF on, changes the frag and timelimit and restarts the round. Is this possible with this plugin? Where do the configs go if it is possible? I assume the sourcemod/configs folder...but I'm not sure.

Anyone know if this is possible?

Cheers

Mark
First, its strange that you say that this plugin can replace Mani. All this plugin does it essentially create "links" to SourceMod command via a GUI. So SM is really whats replacing Mani, this plugin just helps. But to your question. I execute cfg's this way:
Code:
        "1"
        {
            "title"        "Choose CFG to Execute"
            "cmd"        "sm_execcfg #1"
            "admin"        "sm_execcfg"
            "1"
            {
                "type"        "list"
                "title"        "Config:"
                "1"        "unloadservermods.cfg"
                "1."        "Unload Server Mods"
                "2"        "calcss.cfg"
                "2."        "CAL Match Config"
                "3"        "cal_ot.cfg"
                "3."        "CAL Match Overtime"
                "4"        "lo3.cfg"
                "4."        "CAL Match Live On 3"
                "5"        "lo3ot.cfg"
                "5."        "CAL Match Live On 3 OT"
                "6"        "uevs.cfg"
                "6."        "uE vs. Server Settings"
                "7"        "uevsoff.cfg"
                "7."        "uE vs. Server Off"
                "8"        "server.cfg"
                "8."        "Default Server Config"
            }
        }
Quote:
Originally Posted by [OSF]Swine View Post
Actually I've been having an issue with this as well, whenever I try to run a command that uses the player list it doesn't work- for instance, if I ran sm_psay #1 #2 where #1 is the player list and #2 is the cmd, it'll try to run sm_psay 7 cmd name but the person's userid is actually 21. Not sure if this is a problem with super menu or with the sourcemod build (I'm using the latest one).
I dont use this menu for psay but I would imagine it would work if you did this:
Code:
    "6"
    {
        "title"        "psay"
        "admin"        "generic"
        "1"
        {
            "title"        "psay a player"
            "cmd"        "sm_psay #1 #2"
            "admin"        "sm_psay"
            "1"
            {
                "type"         "player"
            }
            "2"
            {
                "type"        "list"
                "title"        "Message:"
                "1"        "Message 1"
                "1."        "Message 1"
                "2"        "Message 2"
                "2."        "Message 2"
            }
        }
}
__________________
Tekniqal is offline
pRED*
Join Date: Dec 2006
Old 09-11-2007 , 19:55   Re: SM Super Menu
Reply With Quote #194

As a note: the '1.' Things are optional and only need to be used if you want the inserted command to be different to the item appearing on the menu.'

If no 'x.' option is specified the 'x' string will be used as the menu text
pRED* is offline
Nomarky
SourceMod Donor
Join Date: Sep 2007
Old 09-11-2007 , 19:59   Re: SM Super Menu
Reply With Quote #195

Thx Teknigal...yea I mean this plugin can give me an easy Mani like interface to the SM commands. I also sussed that the configs need to be in the mod/cfg folder.

Cheers!
Nomarky is offline
[OSF]Swine
Junior Member
Join Date: Sep 2007
Old 09-11-2007 , 22:38   Re: SM Super Menu
Reply With Quote #196

Quote:
Originally Posted by Tekniqal View Post
I dont use this menu for psay but I would imagine it would work if you did this:
Code:
    "6"
    {
        "title"        "psay"
        "admin"        "generic"
        "1"
        {
            "title"        "psay a player"
            "cmd"        "sm_psay #1 #2"
            "admin"        "sm_psay"
            "1"
            {
                "type"         "player"
            }
            "2"
            {
                "type"        "list"
                "title"        "Message:"
                "1"        "Message 1"
                "1."        "Message 1"
                "2"        "Message 2"
                "2."        "Message 2"
            }
        }
}
Well, here's what mine looks like-
Code:
        {
            "title"        "Warn Player Privately"
            "cmd"        "sm_psay #1 #2"
            "1"
            {
                "type"        "player"
            }
            "2"
            {
                "type"        "list"
                "title"        "Reason:"
                "1"        "Watch your language!"
                "1."        "Warn for Language"
                "2"        "No using of glitches/bugs!"
                "2."        "Warn for Glitching"
                "3"        "You are AFK, play or leave!"
                "3."        "Warn for AFK"
                "4"        "No team flashing!"
                "4."        "Warn for Team Flashing"
                "5"        "No blocking teammates!"
                "5."        "Warn for blocking"
                "6"        "OSF tag is for members!"
                "6."        "Warn for tag"
                "7"        "No harrassing players/admins!"
                "7."        "Warn for harrassment"
                "8"        "No spamming chat!"
                "8."        "Warn chat spam"
                "9"        "No recruiting on our server!"
                "9."        "Warn recruiting"
                "10"        "CT's cannot spawn camp!"
                "10."        "Warn Camping cs CT"
                "11"        "T's cannot spawn camp!"
                "11."        "Warn camping de T"
                "12"        "Please re-read the motd!"
                "12."        "Read the motd"
            }
It seems as though it's not actually sending it to the player's name, rather it seems to correspond with the number that the player is on the list. For instance, if the player was the 6th name on the list, the cmd exec'd would be "sm_psay 6 Watch the language!" Don't think that's a problem with my menu config.
[OSF]Swine is offline
Tekniqal
Senior Member
Join Date: Aug 2006
Old 09-12-2007 , 03:08   Re: SM Super Menu
Reply With Quote #197

Yea I think thats just a problem with the way menu works. You should submit a bug report at:
http://bugs.alliedmods.net/index.php...tch=1&do=index
__________________
Tekniqal is offline
pRED*
Join Date: Dec 2006
Old 09-12-2007 , 03:21   Re: SM Super Menu
Reply With Quote #198

I've checked the code right now and I can't see any reason for this possibly to be happening.

However I have changed alot since the current version so I may have inadvertently fixed a problem.
I am currently waiting on a core bug report to fix a problem with the admin system then this version won't be too far away. (and then probably not too far to a large update with more stuff as stated above)
pRED* is offline
Lindgren
Member
Join Date: Jul 2007
Location: Sweden
Old 09-12-2007 , 05:34   Re: SM Super Menu
Reply With Quote #199

Add this line and it should work.

Code:
 {
            "title"        "Warn Player Privately"
            "cmd"        "sm_psay #1 #2"
            "1"
            {
                "type"        "player"
                "method"      "userid" 
            }
            "2"
            {
                "type"        "list"
                "title"        "Reason:"
                "1"        "Watch your language!"
                "1."        "Warn for Language"
                "2"        "No using of glitches/bugs!"
                "2."        "Warn for Glitching"
                "3"        "You are AFK, play or leave!"
                "3."        "Warn for AFK"
                "4"        "No team flashing!"
                "4."        "Warn for Team Flashing"
                "5"        "No blocking teammates!"
                "5."        "Warn for blocking"
                "6"        "OSF tag is for members!"
                "6."        "Warn for tag"
                "7"        "No harrassing players/admins!"
                "7."        "Warn for harrassment"
                "8"        "No spamming chat!"
                "8."        "Warn chat spam"
                "9"        "No recruiting on our server!"
                "9."        "Warn recruiting"
                "10"        "CT's cannot spawn camp!"
                "10."        "Warn Camping cs CT"
                "11"        "T's cannot spawn camp!"
                "11."        "Warn camping de T"
                "12"        "Please re-read the motd!"
                "12."        "Read the motd"
            }
Lindgren is offline
Send a message via MSN to Lindgren
[OSF]Swine
Junior Member
Join Date: Sep 2007
Old 09-12-2007 , 06:51   Re: SM Super Menu
Reply With Quote #200

Quote:
Originally Posted by Lindgren View Post
Add this line and it should work.

Code:
 {
            "title"        "Warn Player Privately"
            "cmd"        "sm_psay #1 #2"
            "1"
            {
                "type"        "player"
                "method"      "userid" 
            }
            "2"
            {
                "type"        "list"
                "title"        "Reason:"
                "1"        "Watch your language!"
                "1."        "Warn for Language"
                "2"        "No using of glitches/bugs!"
                "2."        "Warn for Glitching"
                "3"        "You are AFK, play or leave!"
                "3."        "Warn for AFK"
                "4"        "No team flashing!"
                "4."        "Warn for Team Flashing"
                "5"        "No blocking teammates!"
                "5."        "Warn for blocking"
                "6"        "OSF tag is for members!"
                "6."        "Warn for tag"
                "7"        "No harrassing players/admins!"
                "7."        "Warn for harrassment"
                "8"        "No spamming chat!"
                "8."        "Warn chat spam"
                "9"        "No recruiting on our server!"
                "9."        "Warn recruiting"
                "10"        "CT's cannot spawn camp!"
                "10."        "Warn Camping cs CT"
                "11"        "T's cannot spawn camp!"
                "11."        "Warn camping de T"
                "12"        "Please re-read the motd!"
                "12."        "Read the motd"
            }
Yeah I tried that, along with "method" "clientid" and "method" "steamid"....just not having any luck. Also get the same problem with the kick, ban and team switch options.

Last edited by [OSF]Swine; 09-12-2007 at 06:55.
[OSF]Swine 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 19:53.


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