Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

The bind menus?
#1

Well, I was just looking around my server trying to figure out a way to improve it for new players, and I thought, "what if I could have a menu to bind keys? That would stop every noob in the world from typing +rotate or e_freeze in chat every 2 seconds wondering why it doesn't work!" Then I remembered: SourceOP has a bind menu if you type !jetpack or !radio. Any chance I could get what SDK call you did/a hint in the right direction as to how I can setup a bind menu for a couple commands, like +hook, e_freeze, e_unfreeze, etc?
Reply
#2

IServerPluginHelpers interface has a function called CreateMessage. You can use DIALOG_MENU for the DIALOG_TYPE which will display a menu that allows you to set a command to be executed when the button is pushed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)