Raised This Month: $32 Target: $400
 8% 

Green Admin Name


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
faenix
Junior Member
Join Date: Aug 2005
Old 08-20-2005 , 22:32   Green Admin Name
Reply With Quote #1

This plugin replaces the adminchat.amxx functions (amx_say, amx_chat, amx_psay) with ones that display a green admin name. I removed amx_tsay because in my opinion there are too many problems with trying to get players to read a hud message, the green text stands out enough now. Also, using at @ sign in front of a say message will send an amx_say, and using an @ sign in front of a say_team message will send an amx_chat.

Update 1.1 (Suggestion by Hawk552)
Now you have the option to give administrators green names while obeying all the regular rules of chatting. It uses all the regular CS rules:

Alive people chat, only other alive people can see
Dead people chat, only dead and spectators can see
Team chat, only people on the same team can see
Spectator, only dead and other spectator
- and any combination of the above that is possible

You can enable/disable this feature using amx_namegreen <1 or 0> or setting sv_namegreen <1 or 0>.

Update 1.11
Changed cvar name from sv_chatgreen to sv_namegreen to avoid confusion, as well as amx_chatgreen to amx_namegreen

Update 1.2
Chat text that begins with / will revert back to normal counter-strike chat and strip the leading /. This is so that if you need to use a CS command from another plugin, such as /rank, you can do it by typing //rank. Or if you want to hide your admin without turning off the cvar, start every sentence with a /.

Fixed bug where amx_psay would still have quotes if used.

Fixed bug where / was stripped even if the cvar was turned off.

Notes
This will override any other plugins that manipulate chatting, such as dead people can see alive people's chat... won't work. The solution to this is to use a / in front of commands that should work with other plugins, or just use the cvar to turn off green admin names for regular chat.

Current version has no logging (i wouldn't use logs for this anyway). If anybody requests it i'll throw in some amx_log here and there =p

Attached Files
File Type: sma Get Plugin or Get Source (adminchat.sma - 3324 views - 6.7 KB)
faenix is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-20-2005 , 22:36  
Reply With Quote #2

This is already done by BlueRaja.

I've been thinking about one thing though. Is there a possibility you could make this so it changes admin's names to green when they're talking? So that this would happen:

[console] say "LOL INTERNET"

[game] Hawk: LOL INTERNET

Thanks.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
faenix
Junior Member
Join Date: Aug 2005
Old 08-20-2005 , 22:38  
Reply With Quote #3

That's exactly what it does =p I posted a screenshot to make it clearer.
faenix is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-20-2005 , 22:44  
Reply With Quote #4

No, it doesn't. I mean if you just type "say hi" it'll obey the limits in CS where it'll show if you're dead, alive or whatever, but your name will be green.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
faenix
Junior Member
Join Date: Aug 2005
Old 08-20-2005 , 22:47  
Reply With Quote #5

Ah I see. Well as an admin sometimes I like to keep my identity hidden, so I wouldn't use a feature like that anyway. When I create the next version of this I'll add that feature and leave it as a cvar to be enabled or disabled =)
faenix is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-20-2005 , 22:49  
Reply With Quote #6

Ok thanks I'll watch this thread.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-21-2005 , 17:21  
Reply With Quote #7

Check this one out HERE by vandercal
__________________
bmann_420 is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 08-21-2005 , 17:30  
Reply With Quote #8

lol nice idea keep up the good work
__________________
hello, i am pm
PM is offline
faenix
Junior Member
Join Date: Aug 2005
Old 08-21-2005 , 18:18  
Reply With Quote #9

Quote:
Originally Posted by bmann_420
Check this one out HERE by vandercal
Yea this one is similar, but it's much more complicated. I prefer my plugin because it doesn't require any configuration and formats the messages more clearly (in my opinion) =)
faenix is offline
faenix
Junior Member
Join Date: Aug 2005
Old 08-21-2005 , 21:26  
Reply With Quote #10

Quote:
Originally Posted by Hawk552
No, it doesn't. I mean if you just type "say hi" it'll obey the limits in CS where it'll show if you're dead, alive or whatever, but your name will be green.
Okay I just released version 1.1, which adds this capability.
faenix is offline
Reply



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 03:40.


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