Raised This Month: $32 Target: $400
 8% 

[CSGO/Any?] HellTags


Post New Thread Reply   
 
Thread Tools Display Modes
Author
OXYD
AlliedModders Donor
Join Date: Aug 2019
Location: pluto
Plugin ID:
7060
Plugin Version:
2.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Players can set their own tag.
    Old 04-23-2020 , 20:05   [CSGO/Any?] HellTags
    Reply With Quote #1

    HellTags - Player Sets His Own Tags v1.0

    DESCRIPTION
    With this plugin, certain players can set their own tags in chat and tab.
    To acces the HellTags Commands you can choose from:
    - Setting an adminflag which is required to acces the commands. (Default: ADMFLAG_CUSTOM6)
    - Setting the DNS benefit. Player requires to have the DNS in his name (ex. KENOXYD #GO.SERVERNAME.COM) in order to acces the command.
    You can also ban tags from the config file "banned_tags.txt" located in the configs folder.
    NEW FEATURES
    Now you can set ScoreBoard Tags and Chat Tags for certain flags or SteamID!


    ! DEPENDENCIES !
    Chat-Processor by Drixevel - https://forums.alliedmods.net/showthread.php?p=2448733

    COMMANDS
    - sm_ctag - Open Tag Menu
    - sm_tag <tag>
    - sm_tagcolor <tagcolor>
    - sm_tcolor <tagcolor>
    - sm_colors - Displays a list of tag colors that can be used.
    - sm_disabletag - Disable the tag

    CVARS
    - helltags_adminonly - 0 - Everyone can use the HellTags Commands, 1 - Only Admins can use the HellTags Commands
    - helltags_dns - Server's DNS Required in Name. Leave this field blank to disable
    - helltags_banned - 0 - Players can use banned tags, 1 - Players can't use banned tags
    - helltags_message 0 - Disabled, 1 - Player is announced when he sets his tag.

    SCREENSHOTS



    TO DO LIST:
    - Add Admin Group Support

    Update Log:
    HTML Code:
    v1.0:
    - Initial Release
    v2.0:
    - Added SteamID and Flag Support
    - Added sm_ctag command to open the tag menu
    If u find any Bugs, announce me

    DOWNLOAD
    https://github.com/KENOXYD/helltags
    Attached Files
    File Type: sp Get Plugin or Get Source (HellTags.sp - 305 views - 16.2 KB)
    File Type: smx HellTags.smx (23.5 KB, 303 views)
    File Type: cfg helltags.cfg (658 Bytes, 355 views)
    File Type: txt banned_tags.txt (154 Bytes, 256 views)
    __________________
    ADD ME ON STEAM - https://steamcommunity.com/id/kenoxyd
    89.40.104.210:27015 // COMPETITIVE SERVER
    DISCORD: KENOXYD#9098

    Last edited by OXYD; 09-05-2020 at 08:05.
    OXYD is offline
    alex123pavlov
    Member
    Join Date: Jun 2018
    Location: Moscow
    Old 04-24-2020 , 21:29   Re: [CSGO/Any?] HellTags - Player Sets His Own Tags
    Reply With Quote #2

    How disable TAG for TABE?
    alex123pavlov is offline
    OXYD
    AlliedModders Donor
    Join Date: Aug 2019
    Location: pluto
    Old 04-25-2020 , 07:52   Re: [CSGO/Any?] HellTags - Player Sets His Own Tags
    Reply With Quote #3

    You can use !disabletag but that will disable your chat tag too. Maybe i will add a feature where you can set what tag to display
    __________________
    ADD ME ON STEAM - https://steamcommunity.com/id/kenoxyd
    89.40.104.210:27015 // COMPETITIVE SERVER
    DISCORD: KENOXYD#9098
    OXYD is offline
    Teamkiller324
    Senior Member
    Join Date: Feb 2014
    Location: Earth
    Old 07-03-2020 , 16:50   Re: [CSGO/Any?] HellTags - Player Sets His Own Tags
    Reply With Quote #4

    should be easy to do so
    __________________
    Teamkiller324 is offline
    awyx
    Member
    Join Date: Mar 2019
    Old 07-19-2020 , 22:16   Re: [CSGO/Any?] HellTags - Player Sets His Own Tags
    Reply With Quote #5

    Salutare... nice plugin , but you got ~119 lines of if statements..
    I rewrited your code so you dont have to use those 119 lines, if you wanna take a look at it:

    Code:
    char g_sColors[][] =
    {
    	"white",
    	"red",
    	"darkred",
    	"lightred",
    	"purple",
    	"green",
    	"lightgreen",
    	"lime",
    	"grey",
    	"grey2",
    	"grey3",
    	"yellow",
    	"lightblue",
    	"blue",
    	"pink",
    	"orange",
    	"team",
    };
    
    char g_sColorsHex[][] = 
    {
    	"\x01",
    	"\x0F",
    	"\x02",
    	"\x07",
    	"\x03",
    	"\x04",
    	"\x05",
    	"\x06",
    	"\x08",
    	"\x0A",
    	"\x0D",
    	"\x09",
    	"\x0B",
    	"\x0C",
    	"\x0E",
    	"\x10",
    	"",
    };


    Code:
    public Action Command_UseTagColor(int client, int args) 
    { 
    	if (args < 1) { 
    		PrintToChat(client, " \x07Chat+ » \x01\x04 Usage:\x02 !tagcolor\x01 <color>\x04 - Use \x02 !colors\x01 for colors list.");
    		return Plugin_Handled;
    	}
    	
    	char sColor[32];
    	GetCmdArg(1, sColor, sizeof(sColor));
    	
    	bool colorExists = false;
    	int sChoosenColor;
    	for (int i = 0; i < 17; i++)
    	{
    		if (StrEqual(sColor, g_sColors[i]))
    		{
    			sChoosenColor = i;
    			colorExists = true;
    		}
    	}
    	if (!colorExists)
    	{
    		PrintToChat(client, "\x04That color doesn't exist!");
    		Command_ColorList(client);
    		return Plugin_Handled;
    	}
    
    	SetClientCookie(client, h_HTagColor, g_sColorsHex[sChoosenColor]);
            PrintToChat(client, "\x01 \x04Your tag color is now \"%s%s\x04\".", g_sColorsHex[sChoosenColor], g_sColors[sChoosenColor]);
    	return Plugin_Continue;
    }
    
    void Command_ColorList(int client) 
    { 
    	PrintToChat(client, " \x07Chat+ » \x01\x01 Available colors are:");
    	PrintToChat(client, "white, \x07red \x02darkred, \x0Flightred \x03purple, \x04green, \x05lightgreen, \x06lime, \x08grey, \x0Agrey2, \x0Dgrey3 \x09yellow, \x0Blightblue, \x0Cblue, \x0Epink, \x10orange, \x01team");
    }
    I hope you understand it tho... so yeah.
    __________________
    Segmentation fault (core dumped)
    https://steamcommunity.com/id/sleepiest/
    roby#0577
    awyx is offline
    OXYD
    AlliedModders Donor
    Join Date: Aug 2019
    Location: pluto
    Old 09-04-2020 , 08:54   Re: [CSGO/Any?] HellTags - Player Sets His Own Tags
    Reply With Quote #6

    Quote:
    Originally Posted by awyx View Post
    Salutare... nice plugin , but you got ~119 lines of if statements..
    I rewrited your code so you dont have to use those 119 lines, if you wanna take a look at it:

    Code:
    char g_sColors[][] =
    {
    	"white",
    	"red",
    	"darkred",
    	"lightred",
    	"purple",
    	"green",
    	"lightgreen",
    	"lime",
    	"grey",
    	"grey2",
    	"grey3",
    	"yellow",
    	"lightblue",
    	"blue",
    	"pink",
    	"orange",
    	"team",
    };
    
    char g_sColorsHex[][] = 
    {
    	"\x01",
    	"\x0F",
    	"\x02",
    	"\x07",
    	"\x03",
    	"\x04",
    	"\x05",
    	"\x06",
    	"\x08",
    	"\x0A",
    	"\x0D",
    	"\x09",
    	"\x0B",
    	"\x0C",
    	"\x0E",
    	"\x10",
    	"",
    };


    Code:
    public Action Command_UseTagColor(int client, int args) 
    { 
    	if (args < 1) { 
    		PrintToChat(client, " \x07Chat+ » \x01\x04 Usage:\x02 !tagcolor\x01 <color>\x04 - Use \x02 !colors\x01 for colors list.");
    		return Plugin_Handled;
    	}
    	
    	char sColor[32];
    	GetCmdArg(1, sColor, sizeof(sColor));
    	
    	bool colorExists = false;
    	int sChoosenColor;
    	for (int i = 0; i < 17; i++)
    	{
    		if (StrEqual(sColor, g_sColors[i]))
    		{
    			sChoosenColor = i;
    			colorExists = true;
    		}
    	}
    	if (!colorExists)
    	{
    		PrintToChat(client, "\x04That color doesn't exist!");
    		Command_ColorList(client);
    		return Plugin_Handled;
    	}
    
    	SetClientCookie(client, h_HTagColor, g_sColorsHex[sChoosenColor]);
            PrintToChat(client, "\x01 \x04Your tag color is now \"%s%s\x04\".", g_sColorsHex[sChoosenColor], g_sColors[sChoosenColor]);
    	return Plugin_Continue;
    }
    
    void Command_ColorList(int client) 
    { 
    	PrintToChat(client, " \x07Chat+ » \x01\x01 Available colors are:");
    	PrintToChat(client, "white, \x07red \x02darkred, \x0Flightred \x03purple, \x04green, \x05lightgreen, \x06lime, \x08grey, \x0Agrey2, \x0Dgrey3 \x09yellow, \x0Blightblue, \x0Cblue, \x0Epink, \x10orange, \x01team");
    }
    I hope you understand it tho... so yeah.
    Thanks! I'll come soon with an update for this plugin where i will add a config with steamid and groups support.

    If anyone has more suggestions, feel free to leave a reply.

    Sorry for the late reply but i almost forgot about this plugin )))

    EDIT: See Main Thread To See Update
    __________________
    ADD ME ON STEAM - https://steamcommunity.com/id/kenoxyd
    89.40.104.210:27015 // COMPETITIVE SERVER
    DISCORD: KENOXYD#9098

    Last edited by OXYD; 09-05-2020 at 08:05.
    OXYD is offline
    paulo_crash
    AlliedModders Donor
    Join Date: May 2016
    Location: Brazil
    Old 02-18-2021 , 13:14   Re: [CSGO/Any?] HellTags
    Reply With Quote #7

    It seems to be a good plugin, I just have some doubts.

    First, support for SourceMod privilege groups?

    Secondly, do you have the option of leaving the TAG configured by default for the privileged player? For example, players with flag "a" automatically wins the VIP TAG, but you can change it if you want from the menu, of course if you have access to change his TAG.

    Last edited by paulo_crash; 02-20-2021 at 03:38.
    paulo_crash is offline
    Danielej1
    Senior Member
    Join Date: Jul 2022
    Location: Poland
    Old 09-10-2022 , 13:39   Re: [CSGO/Any?] HellTags
    Reply With Quote #8

    How can I take away someone's range? if i delete him form files that he jet have rank
    Danielej1 is offline
    Reply


    Thread Tools
    Display Modes

    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 06:42.


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