plugins/include/adminmenu.inc
changeset 1518 5c2bbd2506fc
parent 1513 cb717592c911
child 1523 417c14cb729a
     1.1 --- a/plugins/include/adminmenu.inc	Tue Oct 02 00:23:14 2007 +0000
     1.2 +++ b/plugins/include/adminmenu.inc	Tue Oct 02 01:02:40 2007 +0000
     1.3 @@ -52,6 +52,8 @@
     1.4  
     1.5  /** Category for player commands. */
     1.6  #define ADMINMENU_PLAYERCOMMANDS		"PlayerCommands"
     1.7 +/** Category for server commands. */
     1.8 +#define ADMINMENU_SERVERCOMMANDS		"ServerCommands"
     1.9  
    1.10  /**
    1.11   * Called when the admin menu is created and 3rd party plugins can grab 
    1.12 @@ -91,6 +93,24 @@
    1.13   */
    1.14  native AddTargetsToMenu(Handle:menu, source_client, bool:in_game_only=true);
    1.15  
    1.16 +/**
    1.17 + * Re-displays the admin menu to a client after selecting an item.
    1.18 + * Auto-aborts if the Handle is invalid.
    1.19 + *
    1.20 + * @param topmenu		TopMenu Handle.
    1.21 + * @param client		Client index.
    1.22 + * @return				True on success, false on failure.
    1.23 + */
    1.24 +stock bool:RedisplayAdminMenu(Handle:topmenu, client)
    1.25 +{
    1.26 +	if (topmenu == INVALID_HANDLE)
    1.27 +	{
    1.28 +		return false;
    1.29 +	}
    1.30 +
    1.31 +	return DisplayTopMenu(topmenu, client, TopMenuPosition_LastCategory);
    1.32 +}
    1.33 +
    1.34  /* DO NOT EDIT BELOW THIS LINE */
    1.35  
    1.36  public SharedPlugin:__pl_adminmenu =