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

adminmenu_custom.txt what is wrong here?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
C.Killerz
New Member
Join Date: Jul 2011
Old 07-30-2011 , 14:24   adminmenu_custom.txt what is wrong here?
Reply With Quote #1

Code:
"Commands"
{
	"Glug's Heaven"
	{
		"Excuse Me!"
		{
			"cmd"			"sm_play #1"
			"admin"			"sm_ban"
			"execute"			"server"
			"1"
			{
				"type"			"list"
				"method"			"group"
				"title"			"Play to:"
				"1"			"@all"
				"2"			"@blu"
				"3"			"@red"
		}
	}

}
"ServerCommands"
{
	"Extend Map"
	{
		"cmd"		"sm_extend #1"
		"1"
		{
			"type"		"list"
			"title"		"Extend for:"
			"1"		"5"
			"1."		"5 Minutes"
			"2"		"10"
			"2."		"10 Minutes"
			"3"		"15"
			"3."		"15 Minutes"
			"4"		"20"
			"4."		"20 Minutes"
			"5"		"30"
			"5."		"Half an Hour"
			"6"		"45"
			"6."		"45 Minutes"
			"7"		"60"
			"7."		"An Hour"
		}
	}
}
How do I get it so that it will play a sound?
C.Killerz is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 07-30-2011 , 15:41   Re: adminmenu_custom.txt what is wrong here?
Reply With Quote #2

sm_play <#userid|name> <filename>

And you have close all brackets } before "ServerCommands", not that way

example
Code:
"Commands"
{
    "Glug's Heaven"
    {
        "Excuse Me!"
        {
            "cmd"            "sm_play #1 exuceme.mp3"
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
    }

    "ServerCommands"
    {
        "Extend Map"
        {
            "cmd"        "sm_extend #1"
            "1"
            {
                "type"        "list"
                "title"        "Extend for:"
                "1"            "5"
                "1."        "5 Minutes"
                "2"            "10"
                "2."        "10 Minutes"
                "3"            "15"
                "3."        "15 Minutes"
                "4"            "20"
                "4."        "20 Minutes"
                "5"            "30"
                "5."        "Half an Hour"
                "6"            "45"
                "6."        "45 Minutes"
                "7"            "60"
                "7."        "An Hour"
            }
        }
    }
}
Bacardi is offline
C.Killerz
New Member
Join Date: Jul 2011
Old 07-31-2011 , 01:19   Re: adminmenu_custom.txt what is wrong here?
Reply With Quote #3

Thank you. Now my only question is it doesn't play the sound when I select it to ingame. It says it does, but it doesn't actually play the sound. Any ideas?

Last edited by C.Killerz; 07-31-2011 at 03:41.
C.Killerz is offline
C.Killerz
New Member
Join Date: Jul 2011
Old 07-31-2011 , 05:14   Re: adminmenu_custom.txt what is wrong here?
Reply With Quote #4

//EDIT: My bad for the accidental double post. Got confused because of the quick reply and the edit.
Code:
"Commands"
{
    "Glug's Heaven"
    {
        "Excuse Me!"
        {
            "cmd"            "sm_play #1 sound/admin_plugin/excuseme.mp3"
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
            "Camper"
        {
            "cmd"            "sm_play #1 sound/admin_plugin/camper.wav
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
            "Cough! Cough!"
        {
            "cmd"            "sm_play #1 sound/admin_plugin/choke.wav"
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
    
            "Cry Baby!"
        {
            "cmd"            "sm_play #1 sound/admin_plugin/cryend.wav"
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
            "Epic Fail!"
        {
            "cmd"            "sm_play #1 sound/admin_plugin/epicfil.wav
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
            "Muahaha!"
        {
            "cmd"            "sm_play #1 sound/admin_plugin/evillaugh.wav
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
            "Hax!!!"
        {
            "cmd"            "sm_play #1 sound/admin_plugin/hax.wav
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
    }

    "ServerCommands"
    {
        "Extend Map"
        {
            "cmd"        "sm_extendmap #1"
            "1"
            {
                "type"        "list"
                "title"        "Extend for:"
                "1"            "5"
                "1."        "5 Minutes"
                "2"            "10"
                "2."        "10 Minutes"
                "3"            "15"
                "3."        "15 Minutes"
                "4"            "20"
                "4."        "20 Minutes"
                "5"            "30"
                "5."        "Half an Hour"
                "6"            "45"
                "6."        "45 Minutes"
                "7"            "60"
                "7."        "An Hour"
            }
        }
    }
See any errors? Sound still doesn't play from this menu. Now extend map doesn't show up in Server Commands.

Last edited by C.Killerz; 07-31-2011 at 05:19.
C.Killerz is offline
spelworm
Senior Member
Join Date: Mar 2007
Old 07-31-2011 , 10:06   Re: adminmenu_custom.txt what is wrong here?
Reply With Quote #5

Code:
"cmd"            "sm_play #1 sound/admin_plugin/camper.wav"
"cmd"            "sm_play #1 sound/admin_plugin/epicfil.wav
"cmd"            "sm_play #1 sound/admin_plugin/evillaugh.wav
"cmd"            "sm_play #1 sound/admin_plugin/hax.wav
You're missing a: " at the end of most of those lines

and there is a } missing at the very end

Code:
"Commands"
{
    "Glug's Heaven"
    {
        "Excuse Me!"
        {
            "cmd"            "sm_play #1 sound/admin_plugin/excuseme.mp3"
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
            "Camper"
        {
            "cmd"            "sm_play #1 sound/admin_plugin/camper.wav"
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
            "Cough! Cough!"
        {
            "cmd"            "sm_play #1 sound/admin_plugin/choke.wav"
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
    
            "Cry Baby!"
        {
            "cmd"            "sm_play #1 sound/admin_plugin/cryend.wav"
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
            "Epic Fail!"
        {
            "cmd"            "sm_play #1 sound/admin_plugin/epicfil.wav"
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
            "Muahaha!"
        {
            "cmd"            "sm_play #1 sound/admin_plugin/evillaugh.wav"
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
            "Hax!!!"
        {
            "cmd"            "sm_play #1 sound/admin_plugin/hax.wav"
            "admin"            "sm_ban"
            "execute"            "server"
            "1"
            {
                "title"        "Play to"
                "type"        "groupplayer"
            }
        }
    }

    "ServerCommands"
    {
        "Extend Map"
        {
            "cmd"        "sm_extendmap #1"
            "1"
            {
                "type"        "list"
                "title"        "Extend for:"
                "1"            "5"
                "1."        "5 Minutes"
                "2"            "10"
                "2."        "10 Minutes"
                "3"            "15"
                "3."        "15 Minutes"
                "4"            "20"
                "4."        "20 Minutes"
                "5"            "30"
                "5."        "Half an Hour"
                "6"            "45"
                "6."        "45 Minutes"
                "7"            "60"
                "7."        "An Hour"
            }
        }
    }
}
I believe it should look like that, if it works I don't know its been ages since I done something for sourcemod
spelworm is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 07-31-2011 , 11:35   Re: adminmenu_custom.txt what is wrong here?
Reply With Quote #6

Dont add sound/ folder in path
Bacardi is offline
C.Killerz
New Member
Join Date: Jul 2011
Old 08-01-2011 , 03:41   Re: adminmenu_custom.txt what is wrong here?
Reply With Quote #7

Thank you for all of your help Bacardi and to you spelworm.
C.Killerz 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 17:09.


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