Are there tank bosses to account for the advantage we get? Similar to MGFTW?
Any chance to make sv_tags appender so we can locate the servers using this?
I imagine "rpg" and "skyrpg"
Code:
/**
* Adds an informational string to the server's public "tags".
* This string should be a short, unique identifier.
*
*
* @param tag Tag string to append.
* @noreturn
*/
stock void AddServerTag2(const char[] tag)
{
Handle hTags = INVALID_HANDLE;
hTags = FindConVar("sv_tags");
if (hTags != INVALID_HANDLE)
{
int flags = GetConVarFlags(hTags);
SetConVarFlags(hTags, flags & ~FCVAR_NOTIFY);
char tags[50]; // max size of sv_tags cvar
GetConVarString(hTags, tags, sizeof(tags));
if (StrContains(tags, tag, true) > 0) return;
if (strlen(tags) == 0)
{
Format(tags, sizeof(tags), tag);
}
else
{
Format(tags, sizeof(tags), "%s,%s", tags, tag);
}
SetConVarString(hTags, tags, true);
SetConVarFlags(hTags, flags);
}
}
/**
* Removes a tag previously added by the calling plugin.
*
* @param tag Tag string to remove.
* @noreturn
*/
stock void RemoveServerTag2(const char[] tag)
{
Handle hTags = INVALID_HANDLE;
hTags = FindConVar("sv_tags");
if (hTags != INVALID_HANDLE)
{
int flags = GetConVarFlags(hTags);
SetConVarFlags(hTags, flags & ~FCVAR_NOTIFY);
char tags[50]; // max size of sv_tags cvar
GetConVarString(hTags, tags, sizeof(tags));
if (StrEqual(tags, tag, true))
{
Format(tags, sizeof(tags), "");
SetConVarString(hTags, tags, true);
return;
}
int pos = StrContains(tags, tag, true);
int len = strlen(tags);
if (len > 0 && pos > -1)
{
bool found;
char taglist[50][50];
ExplodeString(tags, ",", taglist, sizeof(taglist[]), sizeof(taglist));
for (int i = 0; i < sizeof(taglist[]); i++)
{
if (StrEqual(taglist[i], tag, true))
{
Format(taglist[i], sizeof(taglist), "");
found = true;
break;
}
}
if (!found) return;
ImplodeStrings(taglist, sizeof(taglist[]), ",", tags, sizeof(tags));
if (pos == 0)
{
tags[0] = 0x20;
}
else if (pos == len - 1)
{
Format(tags[strlen(tags) - 1], sizeof(tags), "");
}
else
{
ReplaceString(tags, sizeof(tags), ",,", ",");
}
SetConVarString(hTags, tags, true);
SetConVarFlags(hTags, flags);
}
}
}
Can you contact me on Discord? I took interest in making
any RPG plugin for my server, I want to make it as open source as possible ( even if I'm making a server as I'm using many public resources )
The first thing I want is 1.12 support and Left4dhooks support, and I want to ensure it's okay with you that it will no longer work on old compilers.
I will make the conversion entirely myself, and I want direct contact with you as I also want to publish optional talents regarding my Point System API, to allow a talent that gains you more points.
__________________
I am available to make plugins for pay.
Discord: Eyal282#1334