Raised This Month: $ Target: $400
 0% 

[REQ] /commands plugin to show all commands in menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wormy
Senior Member
Join Date: Jan 2013
Location: 2fort
Old 05-16-2015 , 09:27   [REQ] /commands plugin to show all commands in menu
Reply With Quote #1

edit: Closed, got a plugin already.

I run a TF2 server that uses a lot of Sourcemod plugins and there are loads of commands that players can use. At the moment I use /motd and the advertisements plugin to tell players about the different commands that are available, but I would like an easier method of sharing them.

Would it be possible to get a plugin that works so that if you for an example type sm_commands (/commands in chat) it will show up a menu of all available commands, and if you select one of them it will execute the command?
This would make it a lot easier for me to manage all of the commands in one place, and it would help out players a lot. That way they don't have to keep asking what the commands are and what they do.

A plugin like this may already exist, if it does I would greatly appreciate a link to it as I was unable to find anything similar to this. Thanks in advance.
__________________

Last edited by Wormy; 05-16-2015 at 20:24.
Wormy is offline
secondtimesold
Senior Member
Join Date: Feb 2015
Old 05-16-2015 , 12:27   Re: [REQ] /commands plugin to show all commands in menu
Reply With Quote #2

sm_help
__________________
secondtimesold is offline
Wormy
Senior Member
Join Date: Jan 2013
Location: 2fort
Old 05-16-2015 , 12:42   Re: [REQ] /commands plugin to show all commands in menu
Reply With Quote #3

Quote:
Originally Posted by secondtimesold View Post
sm_help
sm_help does not offer a menu though, players will have to look at the console, and even then there are many pages to go through which takes a long time.
__________________
Wormy is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 05-16-2015 , 13:16   Re: [REQ] /commands plugin to show all commands in menu
Reply With Quote #4

You can probably write a plugin that reads a text file (a keyvalue file to be exact) and displays a menu with all the commands, and behind each button, run FakeClientCommand() on the specified command.

(Or so I think.)
Potato Uno is offline
Wormy
Senior Member
Join Date: Jan 2013
Location: 2fort
Old 05-16-2015 , 13:26   Re: [REQ] /commands plugin to show all commands in menu
Reply With Quote #5

Quote:
Originally Posted by Potato Uno View Post
You can probably write a plugin that reads a text file (a keyvalue file to be exact) and displays a menu with all the commands, and behind each button, run FakeClientCommand() on the specified command.

(Or so I think.)
Sadly I have no experience in the SourcePawn language. I could try editing an existing plugin perhaps but I'm not sure if I can pull it off. I would need some guidance, tutorial or something.

edit: A guy was generous enough to give me a private plugin, does exactly what I wanted it to. A moderator may lock this thread.
__________________

Last edited by Wormy; 05-16-2015 at 17:59.
Wormy is offline
jpwanabe
Veteran Member
Join Date: Mar 2010
Old 05-16-2015 , 19:26   Re: [REQ] /commands plugin to show all commands in menu
Reply With Quote #6

there's a plugin I use on my server that you can modify to do what you want. unfortunately I am at work right now and cannot link it to you at the moment. I will update my post or make a new post when I get home with the info to it. Or you can add me cuz I will be more likely to remember if you send me a direct message.
__________________
My Steam TF2APP
My sig changes with each load! Refresh to see my other servers!
jpwanabe is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 05-16-2015 , 19:49   Re: [REQ] /commands plugin to show all commands in menu
Reply With Quote #7

you can use this
https://forums.alliedmods.net/showthread.php?t=103430
Advanced Rules Menu by haN

change in rules.sp line 65:
Code:
    RegConsoleCmd("sm_rules", RulesMenu_Func);
to
Code:
    RegConsoleCmd("sm_commands", RulesMenu_Func);
compile it and use a rules.cfg like this:
Code:
"Command Menu"
{
   "1"
    {
        "name" "Server commands"
        "description" "!commands - show this menu
!rtv - rock the vote
!nominate - nominate a map"
    } 
   "2"
    {
        "name" "Player commands"
        "description" "!knife - knife menu
!kill - suizid
!spec - go spectator"    
    } 

}
shanapu is offline
Chokitu
Senior Member
Join Date: Oct 2013
Old 05-16-2015 , 20:19   Re: [REQ] /commands plugin to show all commands in menu
Reply With Quote #8

Quote:
Originally Posted by shanapu View Post
you can use this
https://forums.alliedmods.net/showthread.php?t=103430
Advanced Rules Menu by haN

change in rules.sp line 65:
Code:
    RegConsoleCmd("sm_rules", RulesMenu_Func);
to
Code:
    RegConsoleCmd("sm_commands", RulesMenu_Func);
compile it and use a rules.cfg like this:
Code:
"Command Menu"
{
   "1"
    {
        "name" "Server commands"
        "description" "!commands - show this menu
!rtv - rock the vote
!nominate - nominate a map"
    } 
   "2"
    {
        "name" "Player commands"
        "description" "!knife - knife menu
!kill - suizid
!spec - go spectator"    
    } 

}
I already sent him one!
Chokitu is offline
Send a message via Skype™ to Chokitu
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 05-16-2015 , 20:21   Re: [REQ] /commands plugin to show all commands in menu
Reply With Quote #9

Quote:
Originally Posted by Chokitu View Post
I already sent him one!
post it here for other?!
shanapu is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 05-17-2015 , 08:44   Re: [REQ] /commands plugin to show all commands in menu
Reply With Quote #10

Quote:
Originally Posted by shanapu View Post
post it here for other?!
Probably made him pay :/
__________________
Want to check my plugins ?
Arkarr 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 14:46.


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