Raised This Month: $ Target: $400
 0% 

adminmenu_custom.txt not working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xomp
BANNED
Join Date: Jul 2008
Old 08-30-2008 , 11:54   adminmenu_custom.txt not working
Reply With Quote #1

Hi there, I am attempting to use the adminmenu_custom.txt file to add an item in my admin panel so's I can ban people by their IP address & SteamID. The adminmenu_custom.txt I have is not working and wanted to know if you guys could help me figure out why? Sorry if this is in the wrong forum, but I'm not sure what to do.

Here is my adminmenu_custom.txt: http://pastebin.com/m3f80db67

Quote:
"Commands"
{
"Extra Commands"
{
"admin" "sm_ban"
"IP And Steam ID Ban"
{
"cmd" "sm_banip #1 0 #2;sm_ban #1 0 #2"
"execute" "player"
"1"
{
"type" "player"
"method" "name"
"title" "Player to Ban"
}
"2"
{
"type" "list"
"title" "Ban Reason"
"1" "Cheating"
"1" "Cheating"
"2" "Aimbot"
"2" "Aimbot"
"3" "100% Crit Hack"
"3" "100% Crit Hack"
"4" "Speedhacking"
"4" "Speedhacking"
}

}
}
}
xomp is offline
Send a message via Skype™ to xomp
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 08-30-2008 , 14:39   Re: adminmenu_custom.txt not working
Reply With Quote #2

Code:
"1" "Cheating"
"1." "Cheating"
"2" "Aimbot"
"2." "Aimbot"
"3" "100% Crit Hack"
"3." "100% Crit Hack"
"4" "Speedhacking"
"4." "Speedhacking"
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-30-2008 , 15:42   Re: adminmenu_custom.txt not working
Reply With Quote #3

If the text you want to show on the menu is the text that's going to be executed in the command, you don't need the "#." part.
bl4nk is offline
xomp
BANNED
Join Date: Jul 2008
Old 08-30-2008 , 18:13   Re: adminmenu_custom.txt not working
Reply With Quote #4

Ok here's an update:

Quote:
"Commands"
{
"Extra Commands"
{
"admin" "sm_ban"
"IP And Steam ID Ban"
{
"cmd" "sm_banip 1 0 2;sm_ban 1 0 2"
"execute" "player"
"1"
{
"type" "player"
"method" "name"
"title" "Player to Ban"
}
"2"
{
"type" "list"
"title" "Ban Reason"
"1" "Cheating"
"1." "Cheating"
"2" "Aimbot"
"2." "Aimbot"
"3" "100% Crit Hack"
"3." "100% Crit Hack"
"4" "Speedhacking"
"4." "Speedhacking"
}

}
}
}
I've reloaded admins and it's still not showing up
xomp is offline
Send a message via Skype™ to xomp
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 08-30-2008 , 18:37   Re: adminmenu_custom.txt not working
Reply With Quote #5

Need to reload the admin menu, not just admins.

And i thought you DO need the # or it will just send the number 1, 2 etc
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 08-30-2008 , 20:38   Re: adminmenu_custom.txt not working
Reply With Quote #6

As bl4nk said, you need the #, but not the #. if you want them to be the same.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 08-30-2008 , 21:17   Re: adminmenu_custom.txt not working
Reply With Quote #7

Ohhhh, i get it.

He meant this xomp:

Code:
"Commands"
{
"Extra Commands"
{
"admin" "sm_ban"
"IP And Steam ID Ban"
{
"cmd" "sm_banip #1 0 #2;sm_ban #1 0 #2"
"execute" "player"
"1"
{
"type" "player"
"method" "name"
"title" "Player to Ban" 
}
"2"
{
"type" "list"
"title" "Ban Reason"
"1" "Cheating"
"2" "Aimbot"
"3" "100% Crit Hack"
"4" "Speedhacking"
}
}
}
}
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
xomp
BANNED
Join Date: Jul 2008
Old 08-31-2008 , 12:38   Re: adminmenu_custom.txt not working
Reply With Quote #8

Thanks for the help guys, it's still not working I'm not sure why, but I've reloaded the admin menu "sm plugins reload adminmenu" and everything and changed maps but I'm not seeing the extra options
xomp is offline
Send a message via Skype™ to xomp
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 08-31-2008 , 16:17   Re: adminmenu_custom.txt not working
Reply With Quote #9

The dynamic admin menu isn't really flexible yet when it comes to reloading from adminmenu_custom.txt, I think you're best off restarting your server every time you make a change.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
thoren
Junior Member
Join Date: Jan 2014
Old 02-25-2014 , 15:55   Re: adminmenu_custom.txt not working
Reply With Quote #10

Hi, reload is not working. I tryed to restart the server and this command : "sm plugins reload adminmenu"

I still don't have my new custom menu (I have an old one, but I edited it)
thoren 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 09:12.


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