Admin Chat Colors [v2.0 - 12/10/2007]
3 Attachment(s)
Admin Chat Colors
by Arion Description: Chat messages from admins with the defined access level (default ADMIN_CHAT) will have a different name and message colors from normal players. Plus admins with the defined access level (default ADMIN_BAN) will see all players' messages, including alive and dead players and teamsay from the other team. Cvars/Commands (Default Access Level: ADMIN_CHAT): amx_namecolor <color> Name colors: [1] Yellow, [2] Green, [3] White, [4] Blue, [5] Red, [6] Team-Color Changes the name color of all admins Default: 6 amx_color <color> Message colors: [1] Yellow, [2] Green, [3] White, [4] Blue, [5] Red Changes the message color of all admins Default: 2 Therefore, default admins' chat color will be: Team-Color Name : Green Message Also, messages of normal players will be in the following format so it's easy to differ admins from normal players by their color: Team-Color Name : Yellow message amx_listen <1 | 0> Either allow/prohibit admins from seeing all live, dead and team-only messages, regardless they are alive or dead, or which team they are. Default: 1 Note: The plugin will handle color changing properly in order to avoid messages which contains Red, Blue, and White together (This isn't possible due an engine limitation). In these cases, either name or message color will be changed to green. Changelog: Code:
v1.0 [11/25/2007] Initial Release Although it has been hardly tested, if you find any bug, please report it to me. Screenshots: |
Re: Admin Chat Colors [v1.0 - 25/11/2007]
connorr, you're too slow today ;p
Arion, please be so kind and add CVARs for the chat messages, so you can choose which ones (alive, dead, teamsay) to be shown to the admins when they are alive / dead / spec. And add a CVAR to enable / disable the plugin, either :o |
Re: Admin Chat Colors [v1.0 - 25/11/2007]
Thanks for the documentation, I'll take a good look at it.
@dangerix: Don't you want to see all other players' messages? <evul There is already a cvar to enable/disable the plugin: amx_color 1 (Plugin won't even touch the message) |
Re: Admin Chat Colors [v1.0 - 25/11/2007]
Update: Now plugin restores previous amx_color value after closing server.. When I type amx_colors in the console, it says that is 2 (green) but my messages are blue as it was 4. How to fix that?
Updated plugin with pcvar (;)) amx_listen. Set it to 0 and admins won't see improper messages anymore. |
Re: Admin Chat Colors [v1.0 - 25/11/2007]
Quote:
I don't want all of my admins to be able to see the other team's teamsay. Quote:
//edit: get_pcvar_num |
Re: Admin Chat Colors [v1.1 - 25/11/2007]
Thanks Alka
After some testings I understood how it works. Updated. |
Re: Admin Chat Colors [v1.2 - 25/11/2007]
Might want to add in the main post that this plugin should be one of the last to load (near/at the bottom of plugins.ini) because it will block any say commands for plugins loaded after it.
|
Re: Admin Chat Colors [v1.2 - 25/11/2007]
return PLUGIN_HANDLED_MAIN should prevent such an issue.
|
Re: Admin Chat Colors [v1.2 - 25/11/2007]
Plugin won't handle messages which start with:
@ (admin hud messages) / (admin slash commands) ! (GunGame commands) (empty messages) This is supposed to prevent conflicts.. What does return PLUGIN_HANDLED_MAIN do exactly? |
Re: Admin Chat Colors [v1.2 - 25/11/2007]
Some plugins just check if some keywords are said by players.
|
Re: Admin Chat Colors [v1.2 - 25/11/2007]
Quote:
(Y) |
Re: Admin Chat Colors [v1.2 - 25/11/2007]
Wow nice, Gonna test it out ^^
|
Re: Admin Chat Colors [v1.2 - 26/11/2007]
Angelina, it's because this plugin handles "say " and "say_team " messages and stops. Try the new version, on first page.
I only changed returns from PLUGIN_HANDLED to PLUGIN_HANDLED_MAIN. That should prevent any conflict with other plugins. Thanks connorr for helping with this |
Re: Admin Chat Colors [v1.2 - 26/11/2007]
Angelina, if you can edit the .sma file, change all PLUGIN_HANDLED_MAIN to PLUGIN_CONTINUE and see if it works
|
Re: Admin Chat Colors [v1.2 - 26/11/2007]
can u make this compitable with amx_translit ?
|
Re: Admin Chat Colors [v1.2 - 26/11/2007]
@Angelina, that's why I was afraid of PLUGIN_CONTINUE.. I knew it would probably make the message appear twice..
@Owin, what's exactly the problem? |
Re: Admin Chat Colors [v1.2 - 26/11/2007]
I don't know how to fix.. If the messages goes to HLSW (through PLUGIN_CONTINUE), it will go to engine aswell, which will cause the message to appear twice.. If you block it for going (through PLUGIN_HANDLED), it won't appear in HLSW..
|
Re: Admin Chat Colors [v1.2 - 26/11/2007]
Angelina, yes, deactive for a while.
I installed HLSW and I'm trying to fix. |
Re: Admin Chat Colors [v1.2 - 26/11/2007]
yer, for some reason doesnt log chat in to cs logs :S maybe because i got antibigot plugin, not sure...
|
Re: Admin Chat Colors [v1.2 - 26/11/2007]
Don't know if this is related :
Quote:
|
Re: Admin Chat Colors [v1.2 - 26/11/2007]
I didn't get your point, connorr..
@Angelina, bad news.. I don't know how to fix.. You must choose either colored messages or see messages in HLSW ;/ @666 Same case as Angelina.. |
Re: Admin Chat Colors [v1.2 - 26/11/2007]
@Angelina
Thanks! I'll study the code and (I hope) make a definitive solution. Edit. I don't know how, but I found a solution. Luck, I guess. I only changed all returns to PLUGIN_CONTINUE, added this to plugin_init(): register_message (get_user_msgid ("SayText"), "avoid_duplicated") and in function avoid_duplicated, this: return PLUGIN_HANDLED And voilą! Prints in chat (once), server console, HLSW, and doesn't interfere on other plugins anymore. Want more? |
Re: Admin Chat Colors [v1.3 - 27/11/2007]
thanks for bug fix!
|
Re: Admin Chat Colors [v1.3 - 27/11/2007]
Quote:
|
Re: Admin Chat Colors [v1.3 - 27/11/2007]
Quote:
If you enconter any problems, please let me know. |
Re: Admin Chat Colors [v1.3 - 27/11/2007]
just did. if i turn amx_translit ON, and then i try to say something using say or team_say nothing appears in chat.
+plus, btw, can u add silver color? |
Re: Admin Chat Colors [v1.3 - 27/11/2007]
Try to put translit before this plugin in plugins.ini , should work.
|
Re: Admin Chat Colors [v1.3 - 27/11/2007]
did, now text appears but doesn't translits (but i see translited text in console, then not translited (2msgs from 1 msg))
+could u edit translit.sma so it would work with your plugin together? +btw, can u make admin names colored too? |
Re: Admin Chat Colors [v1.3 - 27/11/2007]
there was a plugin that was changing name colors, but it doesn't work now, but i saw screens anyway :O
|
Re: Admin Chat Colors [v1.3 - 27/11/2007]
@Owyn, silver color you mean white/gray? amx_color 3
I don't know how to fix this issue with translit right now.. Maybe if you PM me with all specifications I could give try.. @Angelina, I think the spec bug could not be fixed.. But there aren't many people who talks as spectator anyway. I could add a command to change name color, but I'm in my tests week, so please be patient |
Re: Admin Chat Colors [v1.3 - 27/11/2007]
Quote:
Quote:
-pmed u |
Re: Admin Chat Colors [v1.3 - 27/11/2007]
I like the plug, but can u make another but that the admin chat in white and special chat, like the white chat for admins don't dessapear.. =S... Because my admins don't like speaking like normal users =)... Lol. But well, I tried to edit the sma, but i didnt find the place of the admin chat..
|
Re: Admin Chat Colors [v1.3 - 27/11/2007]
HEY bro this plugin no work, tested by 2 admins in my server no work only 1 admin see the msg, i need the version 1.2 please post it :wink:
|
Re: Admin Chat Colors [v1.3 - 27/11/2007]
A birth of another one ehy. :D And that HANDLED_MAIN really works? That would change a few things in quite a few plugins if it did. But good work Arion, I know this is like the 4th version tho, even if it is from scratch. :up:
|
Re: Admin Chat Colors [v1.3 - 27/11/2007]
bmann, I changed HANDLED_MAINs to PLUGIN_CONTINUEs on a early update, to fix incompatibilities with other plugins which handles users say and say_team.
Yep, I know there's another plugins who change in some way the color of messages, but none of them change also the name.. Not this yet, but the code is ready, I just need to test it. @CAMEL: all chat messages disappear in some seconds.. There is no way to avoid that @waka-boy: I'm developing a new version and I'll test it until no errors occur |
Re: Admin Chat Colors [v1.3 - 27/11/2007]
Well, if that worked, then per say admin_slash (amx_) prefix would fix that issue of the "bottom of the list" type of thing. If...
|
Re: Admin Chat Colors [v1.3 - 27/11/2007]
this plugin dont work for cstrike 1.5 and 1.6 :down:
|
Re: Admin Chat Colors [v1.3 - 27/11/2007]
@Darkless
wait for the new version bro. @Arion It posible you send me the version 1.2 by pm This is nice plugin! :up: |
Re: Admin Chat Colors [v1.3 - 27/11/2007]
@Darkless
It do work on 1.6 @waka-boy I haven't v1.2 anymore, why would you want it? |
Re: Admin Chat Colors [v1.3 - 27/11/2007]
Arion -> v1.2 This version Works perfectly with me
|
All times are GMT -4. The time now is 20:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.