Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Commit

Permalink
Update includes
Browse files Browse the repository at this point in the history
While some of those might not be needed for SurfTimer - this are all the includes I am using and recommend having.
  • Loading branch information
s17252-pja committed Apr 2, 2020
1 parent 9c2964e commit 4b76948
Show file tree
Hide file tree
Showing 137 changed files with 33,881 additions and 7,901 deletions.
609 changes: 609 additions & 0 deletions addons/sourcemod/scripting/include/PTaH.inc

Large diffs are not rendered by default.

450 changes: 225 additions & 225 deletions addons/sourcemod/scripting/include/admin.inc

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions addons/sourcemod/scripting/include/adminmenu.inc
Original file line number Diff line number Diff line change
Expand Up @@ -52,32 +52,32 @@
#endif

/** Category for player commands. */
#define ADMINMENU_PLAYERCOMMANDS "PlayerCommands"
#define ADMINMENU_PLAYERCOMMANDS "PlayerCommands"
/** Category for server commands. */
#define ADMINMENU_SERVERCOMMANDS "ServerCommands"
#define ADMINMENU_SERVERCOMMANDS "ServerCommands"
/** Category for voting commands. */
#define ADMINMENU_VOTINGCOMMANDS "VotingCommands"
#define ADMINMENU_VOTINGCOMMANDS "VotingCommands"

/**
* Called when the admin menu is created and 3rd party plugins can grab
* the Handle or add categories.
*
* @param topmenu Handle to the admin menu's TopMenu.
* @param topmenu Handle to the admin menu's TopMenu.
*/
forward void OnAdminMenuCreated(Handle topmenu);

/**
* Called when the admin menu is ready to have items added.
*
* @param topmenu Handle to the admin menu's TopMenu.
* @param topmenu Handle to the admin menu's TopMenu.
*/
forward void OnAdminMenuReady(Handle topmenu);

/**
* Retrieves the Handle to the admin top menu.
*
* @return Handle to the admin menu's TopMenu,
* or INVALID_HANDLE if not created yet.
* @return Handle to the admin menu's TopMenu,
* or INVALID_HANDLE if not created yet.
*/
native TopMenu GetAdminTopMenu();

Expand All @@ -87,37 +87,37 @@ native TopMenu GetAdminTopMenu();
* Each client is displayed as: name (userid)
* Each item contains the userid as a string for its info.
*
* @param menu Menu Handle.
* @param source_client Source client, or 0 to ignore immunity.
* @param in_game_only True to only select in-game players.
* @param alive_only True to only select alive players.
* @return Number of clients added.
* @param menu Menu Handle.
* @param source_client Source client, or 0 to ignore immunity.
* @param in_game_only True to only select in-game players.
* @param alive_only True to only select alive players.
* @return Number of clients added.
*/
native int AddTargetsToMenu(Handle menu,
int source_client,
bool in_game_only=true,
bool alive_only=false);
int source_client,
bool in_game_only=true,
bool alive_only=false);

/**
* Adds targets to an admin menu.
*
* Each client is displayed as: name (userid)
* Each item contains the userid as a string for its info.
*
* @param menu Menu Handle.
* @param source_client Source client, or 0 to ignore immunity.
* @param flags COMMAND_FILTER flags from commandfilters.inc.
* @return Number of clients added.
* @param menu Menu Handle.
* @param source_client Source client, or 0 to ignore immunity.
* @param flags COMMAND_FILTER flags from commandfilters.inc.
* @return Number of clients added.
*/
native int AddTargetsToMenu2(Handle menu, int source_client, int flags);

/**
* 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.
* @param topmenu TopMenu Handle.
* @param client Client index.
* @return True on success, false on failure.
*/
stock bool RedisplayAdminMenu(Handle topmenu, int client)
{
Expand Down
Loading

0 comments on commit 4b76948

Please sign in to comment.