Raised This Month: $ Target: $400
 0% 

Edit servertags problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SirHaxalot
Junior Member
Join Date: Jul 2009
Old 11-08-2009 , 13:26   Edit servertags problem
Reply With Quote #1

Hi!

I'm trying to make a simple plugins that changes my servers Tags, mostly to get rid of the increased_maxplayers tag. My slots are hidden so that admins can connect without any problems.

Anyway, here is the code:
Code:
#include <sourcemod>
#include <console>

public Plugin:myinfo = 
{
    name = "Fixtags",
    author = "Sir.Haxalot",
    description = "Private plugins for modifying server tags",
    version = "1.0",
    url = "http://saxservers.net/"
};

public OnPluginStart()
{
    AddServerTag("saxservers");
    RemoveServerTag("increased_maxplayers");
    PrintToServer("[SM]Tags fixed!");
}
SirHaxalot is offline
SilentLikeSilence
Senior Member
Join Date: Jul 2009
Old 11-09-2009 , 13:48   Re: Edit servertags problem
Reply With Quote #2

RemoveServerTag

Removes a string from valve's sv_tags convar.
Note: You can only remove tags created by you.
SilentLikeSilence is offline
Theme97
Senior Member
Join Date: Mar 2009
Old 11-09-2009 , 16:00   Re: Edit servertags problem
Reply With Quote #3

Also, tagging was completely removed in 1.2.1 (see bug #3751).
__________________
I now have very little time to work on stuff and my main computer (which is the only one that can run TF2) is not cooperating with me, so don't expect many updates from me anytime soon.

[ALL] Karaoke
[TF2] Intel Timer | Crabmod | Randomizer | Stopwatch | Crits 4 All
Theme97 is offline
SirHaxalot
Junior Member
Join Date: Jul 2009
Old 11-14-2009 , 09:54   Re: Edit servertags problem
Reply With Quote #4

Can anyone then give me an answer how I should manage those tags? Mainly have I should remove the increased_maxplayers tag. I nkow it's possible. I have seen many servers with hidden slots without the incresed_maxplayers tag.
SirHaxalot is offline
SilentLikeSilence
Senior Member
Join Date: Jul 2009
Old 11-14-2009 , 15:01   Re: Edit servertags problem
Reply With Quote #5

Increased-maxplayers tag is added automatically if your server is running with more than 24 slots. And it isn't added by you, so you can't remove it with using of sourcemod.
SilentLikeSilence is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode