plugins/include/sourcemod.inc
changeset 682 a70055d6d3b3
parent 659 edd2ead1f13e
child 703 cddbff919185
     1.1 --- a/plugins/include/sourcemod.inc	Wed Apr 11 20:07:20 2007 +0000
     1.2 +++ b/plugins/include/sourcemod.inc	Thu Apr 12 00:45:53 2007 +0000
     1.3 @@ -45,6 +45,14 @@
     1.4  #include <functions>
     1.5  #include <timers>
     1.6  
     1.7 +enum DialogType
     1.8 +{
     1.9 +	DialogType_Msg = 0,		/**< just an on screen message */
    1.10 +	DialogType_Menu, 		/**< an options menu */
    1.11 +	DialogType_Text, 		/**< a richtext dialog */
    1.12 +	DialogType_Entry 		/**< an entry box */
    1.13 +};
    1.14 +
    1.15  /**
    1.16   * Declare this as a struct in your plugin to expose its information.
    1.17   * Example:
    1.18 @@ -388,15 +396,15 @@
    1.19  native bool:IsSoundPrecached(const String:sound[]);
    1.20  
    1.21  /**
    1.22 - * Executes a client command on the server without being networked.
    1.23 + * Creates different types of ingame messages.
    1.24   *
    1.25   * @param client		Index of the client.
    1.26 - * @param fmt			Format of the client command.
    1.27 - * @param ...			Format parameters
    1.28 + * @param kv			KeyValues handle to set the menu keys and options. (Check iserverplugin.h for more information).
    1.29 + * @param type			Message type to display ingame.
    1.30   * @noreturn
    1.31   * @error				Invalid client index, or client not connected.
    1.32   */
    1.33 -native FakeClientCommand(client, const String:fmt[], any:...);
    1.34 +native CreateDialog(client, Handle:kv, DialogType:type);
    1.35  
    1.36  #include <helpers>
    1.37  #include <entity>