AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] HexTags [Tags/Chat Colors & Score Tags][08/11/18] (https://forums.alliedmods.net/showthread.php?t=303671)

Papero 12-16-2017 12:29

[ANY] HexTags [Tags/Chat Colors & Score Tags][08/11/18]
 
HexTags



https://img.shields.io/github/downlo...le=flat-square https://img.shields.io/badge/License...le=flat-square https://img.shields.io/github/tag/He...le=flat-square https://img.shields.io/github/issues...le=flat-square


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 tested in CS:GO.


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.


Commands:
Code:

  1. /reloadtags --> Reloads the tags & colors.

  2. /getteam --> Returns the current team nme.


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



Todo / WIP / Bugs & Issues --> https://img.shields.io/github/issues...10/HexTags.svg



Natives & Forward
PHP Code:

/** 
 * 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_ResetClientTags(int client);

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

/**
 * Called before the message is processed.
 *
 * @param client        Client Index.
 * @param name            Player's name.
 * @param nameLen        Player name's length.
 * @param message        Player's message.
 * @param messageLen    Player's length.
 *
 * @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[] nameint nameLenchar[] messageint messageLen);

/**
 * 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 clientchar[] namechar[] message); 

Screenshots
https://steamuserimages-a.akamaihd.n...3A5FFBAD2C01D/ https://steamuserimages-a.akamaihd.n...331173C544FF0/

SourceCode on GitHub!

Download

Thanks to: shanapu, lukas, for help with scripting & testing!

AceNetworks 12-16-2017 12:43

Re: HexTags
 
Awesome! Thank you for remake chat colors!:)

Cruze 12-16-2017 12:59

Re: HexTags
 
damn! nice!!!

Papero 12-17-2017 12:25

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
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 (Post 2566630)
Awesome! Thank you for remake chat colors!:)

Quote:

Originally Posted by Cruze (Post 2566634)
damn! nice!!!

Thanks both!

PinHeaDi 12-18-2017 06:59

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
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.

Papero 12-18-2017 07:27

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
Quote:

Originally Posted by PinHeaDi (Post 2566844)
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

PinHeaDi 12-18-2017 10:36

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
I keep getting " error 004: function "HexTags_OnTagsUpdated" is not implemented".

Papero 12-18-2017 11:34

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
Quote:

Originally Posted by PinHeaDi (Post 2566865)
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");
    }



Rale 12-18-2017 12:43

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
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

Papero 12-18-2017 17:30

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
Quote:

Originally Posted by Rale (Post 2566890)
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.


All times are GMT -4. The time now is 09:35.

Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.