From 5e2eb7d67ae933b7566f1944d0bb7744da03d586 Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 17 Feb 2026 23:42:09 +0100 Subject: move source stuff to its own folder --- .../scripting/include/smlib/concommands.inc | 47 ---------------------- 1 file changed, 47 deletions(-) delete mode 100644 sourcemod-1.5-dev/scripting/include/smlib/concommands.inc (limited to 'sourcemod-1.5-dev/scripting/include/smlib/concommands.inc') diff --git a/sourcemod-1.5-dev/scripting/include/smlib/concommands.inc b/sourcemod-1.5-dev/scripting/include/smlib/concommands.inc deleted file mode 100644 index a90fd1c..0000000 --- a/sourcemod-1.5-dev/scripting/include/smlib/concommands.inc +++ /dev/null @@ -1,47 +0,0 @@ -#if defined _smlib_concommands_included - #endinput -#endif -#define _smlib_concommands_included - -#include -#include - -/** - * Checks if a ConCommand has one or more flags set. - * - * @param command ConCommand name. - * @param flags Flags to check. - * @return True if flags are set, false otherwise. - */ -stock bool:ConCommand_HasFlags(const String:command[], const flags) -{ - return bool:(GetCommandFlags(command) & flags); -} - -/** - * Adds one or more flags to a ConCommand. - * - * @param command ConCommand name. - * @param flags Flags to add. - * @noreturn - */ -stock ConCommand_AddFlags(const String:command[], const flags) -{ - new newFlags = GetCommandFlags(command); - newFlags |= flags; - SetCommandFlags(command, newFlags); -} - -/** - * Removes one ore more flags from a ConCommand. - * - * @param command ConCommand name. - * @param flags Flags to remove - * @noreturn - */ -stock ConCommand_RemoveFlags(const String:command[], const flags) -{ - new newFlags = GetCommandFlags(command); - newFlags &= ~flags; - SetCommandFlags(command, newFlags); -} -- cgit v1.2.3