shavitush / bhoptimer

A bunnyhop timer plugin for Counter-Strike: Source, Counter-Strike: Global Offensive and Team Fortress 2.
https://timer.shav.it
GNU General Public License v3.0
230 stars 94 forks source link

Replace rank tag with admin tag #246

Closed IncPlusPlus closed 7 years ago

IncPlusPlus commented 8 years ago

I'm not sure if there is a way to do this but a great feature would be a cvar that a server owner could set where if a player is an admin and, for example, the server is using admin tags from this plugin, (paired with this plugin for CS:GO color support) they could have the cvar control whether the rank (and/or chat colors) are replaced by their own admin tag/colors (another option could be to have the admin tag shown after their bhop rank).

Technoblazed commented 8 years ago

https://github.com/shavitush/bhoptimer/issues/117 - It'd be doable with the new chat processor that is being used, however the CS:GO color support plugin you linked, wouldn't be needed as a chat processor is already in use.

shavitush commented 8 years ago

Custom Chat Colors isn't usable for CS:GO.

IncPlusPlus commented 8 years ago

@shavitush I'm using it without issue. The plugin can be used with CS:GO but with minimal colors. When used with this it supports many colors in CS:GO. Either way, it was simply an example. Nothing about the mentioned plugins needs to be implemented. I was only suggesting that a player's admin status could be checked and if a certain cvar was in place, that person would have their admin tag show instead of their rank. This should be possible without interaction with Custom Chat Colors by simply not appending a rank and letting Custom Chat Colors append the tag.

Technoblazed commented 8 years ago

@thedudeguy1 by many colors, you mean the default 16 allowed in csgo? o.O

new String:CTag[][] = {
    "{01}", //White
    "{02}",
    "{03}",
    "{04}",
    "{05}",
    "{06}",
    "{07}",
    "{08}",
    "{09}",
    "{0A}",
    "{0B}",
    "{0C}",
    "{0D}",
    "{0E}",
    "{0F}",
    "{10}"
};

Regardless, the plugin supports that by default and regardless, the current plugin supports all colors from CCC. This is more of a request for admin tags similar to plugins such as ckSurf etc. isn't it :D

IncPlusPlus commented 8 years ago

@Technoblazed Yest that's what I meant. I said many as a comparison to only having the three colors that Custom Chat Colors allows.

Technoblazed commented 8 years ago

CCC is insanely outdated, and very rarely used.

IncPlusPlus commented 8 years ago

@Technoblazed I still use it because I haven't actually gone out and found any other plugins like this one. Additionally CCC hasn't had any problems so I haven't needed to change. But back to the topic, all I was suggesting is that if a player has certain flags, it would be nice to have the admin tag assigned by CCC show after the person's rank and before their name. If this isn't possible, then maybe an option can be set to have no rank show at all and let CCC do as it pleases.

Technoblazed commented 8 years ago

The chat processor used in shavit's plugin will do the job, it's doable, and not that much work :)

IncPlusPlus commented 8 years ago

That's what I was hoping for. Maybe this could be an enhancement implemented in 1.5b or the next version.

shavitush commented 8 years ago

just use this https://forums.alliedmods.net/showthread.php?t=286913

IncPlusPlus commented 8 years ago

@shavitush Should I replace my current chat proccesor with that? Can I simply remove the old chat processor and the new one will work out of the box or do my plugins that rely on the old version need to be rewritten to use the new processor?

shavitush commented 8 years ago

My plugin works fine with the new chat processor. As you can see, the requirements section of my timer lists the new one as a requirement for shavit-chat.

IncPlusPlus commented 8 years ago

What would you recommend that I do to have my admin's tags visible and not overwritten by their rank? Would I just have to disable ranks?

shavitush commented 7 years ago

Implemented into the new shavit-chat, see !cchelp.

exploiteddna commented 7 years ago

I havent seen how one can add ranks to players chat tags.. am i missing something? I see where you can add a custom name, but not a rank chat tag that is based on the players current ranking.

shavitush commented 7 years ago

@michaelrw10 no, it's not implemented yet as rankings aren't finished.