Results 1 to 2 of 2

Thread: The bind menus?

  1. #1
    nicatronTg's Avatar



    Join Date
    Aug 23, 2009
    Last Online
    Jul 30, 2011
    Posts
    57
    Threads
    7



    The bind menus?


    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?

  2. #2
    Drunken F00l's Avatar



    Join Date
    Dec 11, 2004
    Last Online
    Jul 13, 2017
    Posts
    5,874
    Threads
    182
    Reputation
    SourceOP Thread


        
    Steam: 76561197968459473 
    Steam join date: Dec 31, 1969
    Steam Level: 42
    Profile Status: Public



    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.

Tags for this Thread