experimental commit of a menu attachment for sm_reloadadmins
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401524
This commit is contained in:
@@ -52,6 +52,8 @@
|
||||
|
||||
/** Category for player commands. */
|
||||
#define ADMINMENU_PLAYERCOMMANDS "PlayerCommands"
|
||||
/** Category for server commands. */
|
||||
#define ADMINMENU_SERVERCOMMANDS "ServerCommands"
|
||||
|
||||
/**
|
||||
* Called when the admin menu is created and 3rd party plugins can grab
|
||||
@@ -91,6 +93,24 @@ native Handle:GetAdminTopMenu();
|
||||
*/
|
||||
native AddTargetsToMenu(Handle:menu, source_client, bool:in_game_only=true);
|
||||
|
||||
/**
|
||||
* Re-displays the admin menu to a client after selecting an item.
|
||||
* Auto-aborts if the Handle is invalid.
|
||||
*
|
||||
* @param topmenu TopMenu Handle.
|
||||
* @param client Client index.
|
||||
* @return True on success, false on failure.
|
||||
*/
|
||||
stock bool:RedisplayAdminMenu(Handle:topmenu, client)
|
||||
{
|
||||
if (topmenu == INVALID_HANDLE)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return DisplayTopMenu(topmenu, client, TopMenuPosition_LastCategory);
|
||||
}
|
||||
|
||||
/* DO NOT EDIT BELOW THIS LINE */
|
||||
|
||||
public SharedPlugin:__pl_adminmenu =
|
||||
|
||||
Reference in New Issue
Block a user