Hexer10 / HexTags

Customize tags & chat colors!
https://forums.alliedmods.net/showthread.php?p=2566623
GNU General Public License v3.0
54 stars 16 forks source link

Added a way to hide the tag of admins without removing other features #78

Closed Sarrus1 closed 2 years ago

Sarrus1 commented 3 years ago

My admins asked me to implement a command to make them anonymous on the server. The !toggletag commands works fine but it removes the tag entirely. This new !anonymous command disables tags for admins and people who had a their steamid referenced in the config, while keeping other tags like Ranks calculated with rankme etc.

COMPILES

TESTED

fejmek commented 3 years ago

When the tag is hidden with sm_anonymous and hidden admin join the server, such an error will appear:

L 04/01/2021 - 14:50:06: [SM] Exception reported: Client index 2 is not valid
L 04/01/2021 - 14:50:06: [SM] Blaming: hextags.smx
L 04/01/2021 - 14:50:06: [SM] Call stack trace:
L 04/01/2021 - 14:50:06: [SM] [0] CS_GetClientClanTag
L 04/01/2021 - 14:50:06: [SM] [1] Line 542, HexTags/addons/sourcemod/scripting/hextags.sp::OnClientCookiesCached
Sarrus1 commented 3 years ago

I'll try to take a look tomorrow. In the meantime, do you mind cropping the path of the file so that it doesn't include the username please? like : Line 542, HexTags/addons/sourcemod/scripting/hextags.sp::OnClientCookiesCached so it doesn't contain personal informations?

Sarrus1 commented 3 years ago

@fejmek Try with the latest build from my branch here. I don't think @Hexer10 is going to merge this.

fejmek commented 3 years ago

@Sarrus1 error resolved :D