AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   adminmenu_custom.txt (https://forums.alliedmods.net/showthread.php?t=137537)

PabloP 09-06-2010 14:23

adminmenu_custom.txt
 
Hi, I made a post in sm_observe thread a while back because when i make a new command in admin menu with
"type" "player"
and then i go to it in the ingame menu it just says:
Player:
1.1
Now ive tried again with the sbchecker and i get the same result, i also noticed that on my psychostats page it lists the players as, 1. and that it!?!?
same thing it seems. What is going on? here is how i had menu thing set up.

Code:

"Commands"
{
    "Check Bans"
    {
        "cmd"    "sm_listsbbans #1"
        "admin"  "sm_kick"
        "execute" "player"
        "1"
        {
            "type"    "player"
            "method"  "name"
            "title"  "Player:"
        }
    }
}

and the observe too

Code:

"Observe a player"
        {
            "cmd" "sm_observe #1"
            "admin" "sm_kick"
            "execute" "player"
            "1"
            {
                "type" "player"
                "method" "name"
                "title" "Player to observe:"
            }
        }
        "End Observe"


        {
            "cmd" "sm_endobserve"
            "admin" "sm_kick"
            "execute" "player"
        }

I am very confused please help?

PabloP 09-08-2010 19:01

Re: adminmenu_custom.txt
 
No one?

Sillium 09-09-2010 01:16

Re: adminmenu_custom.txt
 
Looking at the wiki and my own adminmenu_custom.txt.... I can't really see what is causing the Problem.

Maybe you could try to start with an empty adminmenu_custom.txt and only add one of the commands to it and see if it is still messed up. If not the problem is somewhere else.

Bacardi 09-09-2010 01:46

Re: adminmenu_custom.txt
 
You make too early that admin command in admin menu...
Add admin commands in one of admin menu categories or create new.
3 default admin menu categories are PlayerCommands, ServerCommands and VoteCommands (What come from SM stock plugins)
- Admins who have adminflag "c"(kick) can see and use "Observe player"/"End Observe"
- Admins who have adminflag "d"(ban) can see and use "Check Bans"

Code:

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

"Commands"
{
    "new category"
    {

        "Check Bans"
        {
            "cmd"        "sm_listsbbans #1"
            "1"
            {
                "title"        "Choose Player"
                "type"        "player"
            }
        }

        "Observe player"
        {
            "cmd"        "sm_observe #1"
            "1"
            {
                "title"        "Choose player"
                "type"        "player"
            }
        }

        "End Observe"
        {
            "cmd"        "sm_endobserve"
        }
    }
}


PabloP 09-10-2010 19:06

Re: adminmenu_custom.txt
 
Thank you very much bacardi, ive had that problem for months.


All times are GMT -4. The time now is 22:21.

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