Added SourceMod to the sv_tags list and added a tags API for plugins (bug 3688, r=dvander)

This commit is contained in:
Matt Woodrow
2009-03-05 11:59:49 +13:00
parent a0128d9b7c
commit 096a04b3e4
6 changed files with 363 additions and 1 deletions
+20
View File
@@ -815,3 +815,23 @@ native bool:FindNextConCommand(Handle:search, String:buffer[], max_size, &bool:i
* @error Invalid client index, client not in game, or client is fake
*/
native bool:SendConVarValue(client, Handle:convar, const String:value[]);
/**
* Appends a string to Valve's sv_tags convar and makes sure it remains after mapchanges.
*
* Note: Tags are automatically removed on plugin unload
*
* @param tag Tag string to append.
* @noreturn
*/
native AddServerTag(const String:tag[]);
/**
* Removes a string from valve's sv_tags convar.
*
* Note: You can only remove tags created by you.
*
* @param tag Tag string to remove.
* @noreturn
*/
native RemoveServerTag(const String:tag[]);