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

adminmenu_custom.txt


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PabloP
SourceMod Donor
Join Date: Feb 2010
Old 09-06-2010 , 14:23   adminmenu_custom.txt
Reply With Quote #1

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 is offline
PabloP
SourceMod Donor
Join Date: Feb 2010
Old 09-08-2010 , 19:01   Re: adminmenu_custom.txt
Reply With Quote #2

No one?
PabloP is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 09-09-2010 , 01:16   Re: adminmenu_custom.txt
Reply With Quote #3

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.
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-09-2010 , 01:46   Re: adminmenu_custom.txt
Reply With Quote #4

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"
        }
    }
}
__________________
Do not Private Message @me

Last edited by Bacardi; 09-09-2010 at 01:53.
Bacardi is offline
PabloP
SourceMod Donor
Join Date: Feb 2010
Old 09-10-2010 , 19:06   Re: adminmenu_custom.txt
Reply With Quote #5

Thank you very much bacardi, ive had that problem for months.
PabloP 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 01:33.


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