Raised This Month: $4 Target: $400
 1% 

[ANY] HexTags [Tags/Chat Colors & Score Tags][05/08/2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Papero
Veteran Member
Join Date: Aug 2016
Location: Rimini, Italy
Plugin ID:
5944
Plugin Version:
2.01
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
55 
Plugin Description:
Set tags & chat colors!
Old 12-16-2017 , 12:29   [ANY] HexTags [Tags/Chat Colors & Score Tags][05/08/2020]
Reply With Quote #1

HexTags






Remake of [CS:GO]Chat Colors (Custom Chat Colors). This will support ALL source GAMES
Supports any game that is supported by chat-processor. It's only fully tested in CS:GO.


Updating from 1.x to 2.x
Spoiler


Features:
Code:
  1. Set Clan-Tag (On the scoreboard) CSGO/CSS Only.
  2. Set Chat Colors.
  3. Set Chat Tags with colors.
  4. Set Name Colors.
  5. Available colors.
  6. Rainbow(& Random) colored chat.
  7. Allows users to select a tag, choosing one from all the tags available to the client. See sm_tagslist command and sm_hextags_enable_tagslist cvar
Commands:
Code:
  1. /reloadtags --> Reloads the tags & colors.
  2. /toggletags --> Enable or disable the tags visibility.
  3. /getteam --> Returns the current team name.
  4. /tagslist --> Shows all the tags a player has access to.
ConVars:
Generated automatically in the cfg/sourcemod folder:
Code:
  1. sm_hextags_nogang ("") --> Text to use if user has no tag - needs hl_gangs
  2. sm_hextags_roundend (0)--> If 1 the tags will be reloaded even on round end - Suggested to be used with plugins like mostactive or rankme.
  3. sm_hextags_enable_tagslist (0) --> Enable the usage of the tagslist command. Still experimental.
Supported plugins:
Code:
  1. Warden/Deputy: https://forums.alliedmods.net/showthread.php?p=1476638 & https://forums.alliedmods.net/showthread.php?t=283212
  2. RankMe: https://forums.alliedmods.net/showthread.php?p=2467665
  3. MostActive: https://forums.alliedmods.net/showthread.php?p=1751973
How to install



Configurations



Common Issues



See the current TODO / Bugs & Issues or issue a new one -->
Please check the wiki or the issues pages before reporting a new error!


Natives & Forward
PHP Code:
typedef SelectorCallback = function bool(int client, const char[] selector);

/** 
 * Returns an HexTags client tag.
 *
 * @param        Client Index.
 * @TagType        Tag type.
 * @buffer        String to store the tag in.
 * @maxlength      Maximum size of string buffer.
 *
 * @error        Invalid client index, or not connected.
 */
native void HexTags_GetClientTag(int clienteTags TagTypechar[] bufferint maxlength);

/** 
 * Sets an HexTags client tag.
 * This is resetted everytime that "HexTags_OnTagsUpdated" is called.
 *
 * @param        Client Index.
 * @TagType        Tag type.
 * @Tag          New client tag.
 * 
 * @error        Invalid client index, or not connected.
 */
native void HexTags_SetClientTag(int clienteTags TagTypechar[] Tag);

/** 
 * Update the client tags to its default (from config).
 *
 * @param        Client Index.
 *
 * @error        Invalid client index, or not connected.
 */
native void HexTags_ResetClientTag(int client);

/** 
 * Called when the client tags gets updated.
 *
 * @param client        Client Index.
 */
forward void HexTags_OnTagsUpdated(int client);

/**
 * Called when the message is processed.
 *
 * @param client        Client Index.
 * @param name            Player's name.
 * @param message        Player's message.
 *
 * @return        Plugin_Continue to pass or Plugin_Handled or higher to block the processing.
 */
forward Action HexTags_OnMessagePreProcess(int clientchar name[MAXLENGTH_NAME], char message[MAXLENGTH_MESSAGE]);

/**
 * Called when the message is processed.
 *
 * @param client        Client Index.
 * @param name            Player's name.
 * @param message        Player's message.

 * @return        Plugin_Continue to pass the event without edits, Plugin_Changed
 *                To pass edits or Plugin_Handled or greter to stop the event.
 */
forward Action HexTags_OnMessageProcess(int clientchar name[MAXLENGTH_NAME], char message[MAXLENGTH_MESSAGE]);

/**
 * Called after the message is processed.
 *
 * @param client        Client Index.
 * @param name            Player's name.
 * @param message        Player's message.
 *
 * @noreturn
 */
forward void HexTags_OnMessageProcessed(int client, const char[] name, const char[] message);


/**
 * Adds a Custom Selector callback.
 * The callback is fired every time a selector is parsed and does not match any other selector.
 *
 * @return    True on success, false otherwise.
 */ 
native bool HexTags_AddCustomSelector(SelectorCallback callback);

/**
 * Removes a Custom Selector hook.
 *
 * @return    True on success, false otherwise.
 */
native bool HexTags_RemoveCustomSelector(SelectorCallback callback); 
Screenshots


SourceCode on GitHub!

Download

Thanks to: shanapu, lukas, for help with scripting & testing!
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!

Last edited by Papero; 09-11-2020 at 15:27. Reason: Typo
Papero is offline
AceNetworks
Member
Join Date: Aug 2017
Location: Luxemburg
Old 12-16-2017 , 12:43   Re: HexTags
Reply With Quote #2

Awesome! Thank you for remake chat colors!
__________________
AceNetworks is offline
Cruze
Veteran Member
Join Date: May 2017
Old 12-16-2017 , 12:59   Re: HexTags
Reply With Quote #3

damn! nice!!!
__________________
Taking paid private requests! Add me on steam/discord!
AlliedModders Releases | Github | Private Plugins | PayPal | Steam | My Discord Server
Cruze is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Rimini, Italy
Old 12-17-2017 , 12:25   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #4

Update 1.11:
Code:
1. Added {time} param. This will be replaced with time, format: HH:MM
2. Incrased ChatTag from 64 to 128 chars.

Quote:
Originally Posted by AceNetworks View Post
Awesome! Thank you for remake chat colors!
Quote:
Originally Posted by Cruze View Post
damn! nice!!!
Thanks both!
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!

Last edited by Papero; 12-17-2017 at 12:26.
Papero is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 12-18-2017 , 06:59   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #5

PHP Code:
#include <sourcemod>
#include <vip_core>
#include <hextags>

public void OnClientPutInServer(int iClient)
{
    if (
VIP_IsClientVIP(iClient) && VIP_GetClientVIPGroup(iClient"VIP"15))
    {
        
HexTags_SetClientTag(iClientChatTag"[{purble}Test{grey}]");
        
HexTags_SetClientTag(iClientChatColor"{yellow}");
        
HexTags_SetClientTag(iClientScoreTag"Test");
    }

Or did I got it wrong? Its not working that way. The plugin itself works more than perfectly, very nice job there.
__________________

Last edited by PinHeaDi; 12-18-2017 at 06:59.
PinHeaDi is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Rimini, Italy
Old 12-18-2017 , 07:27   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #6

Quote:
Originally Posted by PinHeaDi View Post
PHP Code:
#include <sourcemod>
#include <vip_core>
#include <hextags>

public void OnClientPutInServer(int iClient)
{
    if (
VIP_IsClientVIP(iClient) && VIP_GetClientVIPGroup(iClient"VIP"15))
    {
        
HexTags_SetClientTag(iClientChatTag"[{purble}Test{grey}]");
        
HexTags_SetClientTag(iClientChatColor"{yellow}");
        
HexTags_SetClientTag(iClientScoreTag"Test");
    }

Or did I got it wrong? Its not working that way. The plugin itself works more than perfectly, very nice job there.
You should set the tags on the "HexTags_OnTagsUpdated(int client)"

Btw now that forwards it's bugged since it's called before the tags get actually updated. As soon as I'm home I'll fix it.
Fixed with: 8c2bcb33
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!

Last edited by Papero; 12-18-2017 at 08:47.
Papero is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 12-18-2017 , 10:36   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #7

I keep getting " error 004: function "HexTags_OnTagsUpdated" is not implemented".
__________________
PinHeaDi is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Rimini, Italy
Old 12-18-2017 , 11:34   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #8

Quote:
Originally Posted by PinHeaDi View Post
I keep getting " error 004: function "HexTags_OnTagsUpdated" is not implemented".
PHP Code:
#include <sourcemod>
#include <vip_core>
#include <hextags>

public void HexTags_OnTagsUpdated(int iClient)
{
    if (
VIP_IsClientVIP(iClient) && VIP_GetClientVIPGroup(iClient"VIP"15))
    {
        
HexTags_SetClientTag(iClientChatTag"[{purble}Test{grey}]");
        
HexTags_SetClientTag(iClientChatColor"{yellow}");
        
HexTags_SetClientTag(iClientScoreTag"Test");
    }

__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!

Last edited by Papero; 12-18-2017 at 11:34.
Papero is offline
Rale
AlliedModders Donor
Join Date: Sep 2010
Old 12-18-2017 , 12:43   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #9

PHP Code:
L 12/18/2017 11:39:55: [SMException reportedInvalid time format or buffer too small
L 12
/18/2017 11:39:55: [SMBlaminghextags.smx
L 12
/18/2017 11:39:55: [SMCall stack trace:
L 12/18/2017 11:39:55: [SM]   [0FormatTime
L 12
/18/2017 11:39:55: [SM]   [1Line 148d:\my profile\documents\hextags\addons\sourcemod\scripting\hextags.sp::CP_OnChatMessage
L 12
/18/2017 11:39:55: [SM]   [3Call_Finish
L 12
/18/2017 11:39:55: [SM]   [4Line 302E:\Google Drive\Projects\Sourcemod\Public\Chat-Processor\scripting\chat-processor.sp::OnSayText2 
And plugin does not works :S
Rale is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Rimini, Italy
Old 12-18-2017 , 17:30   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #10

Quote:
Originally Posted by Rale View Post
PHP Code:
L 12/18/2017 11:39:55: [SMException reportedInvalid time format or buffer too small
L 12
/18/2017 11:39:55: [SMBlaminghextags.smx
L 12
/18/2017 11:39:55: [SMCall stack trace:
L 12/18/2017 11:39:55: [SM]   [0FormatTime
L 12
/18/2017 11:39:55: [SM]   [1Line 148d:\my profile\documents\hextags\addons\sourcemod\scripting\hextags.sp::CP_OnChatMessage
L 12
/18/2017 11:39:55: [SM]   [3Call_Finish
L 12
/18/2017 11:39:55: [SM]   [4Line 302E:\Google Drive\Projects\Sourcemod\Public\Chat-Processor\scripting\chat-processor.sp::OnSayText2 
And plugin does not works :S
Post your hextags.cfg
This usually happens if your tags/colors are longer than 128 chars.
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!
Papero 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 07:39.


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