Raised This Month: $66 Target: $400
 16% 

Color Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Hawk552 (427)
mateo10
Veteran Member
Join Date: Jan 2006
Old 03-20-2007 , 11:41   Color Chat
Reply With Quote #1

Color Chat

Description
Choose between four color modes and then, everyone (except bots) will write in that color!
Alive people can see dead/spectator chat messages and vice-versa.

Commands
colorchat_mode 0-3
- switches the color mode
0 = Plugin Disabled
1 = Red
2 = Green
3 = Blue

Versions
1.03

- When you press y and then click enter no text will come up.
1.02

- Deleted the text[] array. Only text2[] now.
- Made text2 static instead of new.
- Deleted the replace command.
1.01

- Deleted the color yellow
- Deleted the cvar colorchat_enable. If you have colorchat_mode to 0 the plugin will be disabled
- Fixed it to work with the new emessage natives
1.00

- Release for public use
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	140847
Size:	31.5 KB
ID:	14796  
Attached Files
File Type: sma Get Plugin or Get Source (colorchat.sma - 30152 views - 4.1 KB)

Last edited by mateo10; 03-28-2007 at 10:31.
mateo10 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-20-2007 , 12:11   Re: Color Chat
Reply With Quote #2

This already exists. The biggest thing no one has been able to solve is that other plugin can't read what you're putting through. You should try using the new emessage natives and that would make it unique.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
mateo10
Veteran Member
Join Date: Jan 2006
Old 03-20-2007 , 12:19   Re: Color Chat
Reply With Quote #3

Like this:
Code:
ShowColorMessage(id, type, message[]) {     emessage_begin(type, SayText, _, id);     ewrite_byte(id)       ewrite_string(message);     emessage_end()}
and this:
Code:
Team_Info(id, type, team[]) {     emessage_begin(type, TeamInfo, _, id);     ewrite_byte(id);     ewrite_string(team);     emessage_end();     return 1; }
?
mateo10 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-20-2007 , 12:28   Re: Color Chat
Reply With Quote #4

Yep.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 03-20-2007 , 12:41   Re: Color Chat
Reply With Quote #5

What is exactly the difference between message_ and emessage_ natives?
__________________
anssik is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-20-2007 , 12:45   Re: Color Chat
Reply With Quote #6

Quote:
Originally Posted by anssik View Post
What is exactly the difference between message_ and emessage_ natives?
message_ sends the message straight through to the game dll. emessage_ passes it through all the metamod layers then to the game dll.

Basically, other plugins will never be told that message_ has happened, but metamod will hook the message if it's emessage_, thus the plugins hooking it will be notified as well.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
loren28
Senior Member
Join Date: Nov 2006
Old 03-20-2007 , 15:32   Re: Color Chat
Reply With Quote #7

please make option for random colorchat_mode 5 [random]
loren28 is offline
Zyb3r Noob
Junior Member
Join Date: Jun 2006
Old 03-20-2007 , 17:38   Re: Color Chat
Reply With Quote #8

Can't you change text color yourself? Con_color "250 50 250" (pink lol)?
I don't really get it..
__________________
Hey! That's MY cookie !
Zyb3r Noob is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-20-2007 , 18:48   Re: Color Chat
Reply With Quote #9

IMO I would have if the color cvar is set to 0, then don't do anything (1 less cvar). also, because default is yellow I just wouldn't include it in the choices.

Also change modification to CS.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
[email protected]
Senior Member
Join Date: Sep 2005
Location: Fort Myers Fl.
Old 03-20-2007 , 20:53   Re: Color Chat
Reply With Quote #10

Just a bit of info for ya.All players see chat no matter if your dead or alive?
__________________
R@tch3t is offline
Reply


Thread Tools
Display Modes

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 23:20.


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