View Full Version : The bind menus?

Dec 15, 2009, 12:47 AM
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?

Drunken F00l
Dec 15, 2009, 01:10 PM
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.