Raised This Month: $51 Target: $400
 12% 

Rage SubModule: ColorChat


Post New Thread Reply   
 
Thread Tools Display Modes
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 06-23-2012 , 22:06   Re: Rage SubModule: ColorChat
Reply With Quote #41

Quote:
Originally Posted by ConnorMcLeod View Post
Fine.
Consider the last added native that can save some code in some situations
So that means that if .sender = CT, then it prints blue to everyone? That's cool. I don't know if yours supports this or not (I haven't had the time to check), but it would be cool to explicitly declare BLUE, GREEN, YELLOW, RED, GREY, and TEAM for colors. Sometimes in the past, I have really wanted to make a message RED or BLUE on both teams and not just have TEAM color.

Lastly, I wanted to ask you if it is possible to change the HUD chat color (StatusText). I know your mod is somewhat unrelated and I'm not asking for this to be included within this module, but I figure you'd be the person who might know. Something like that would really help highlight various information within the HUD.
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-24-2012 , 04:15   Re: Rage SubModule: ColorChat
Reply With Quote #42

There is no need to explicit yellow and green because those 2 colors are not team colors, that's why i have only enabled the 3 team colors as argument.
If you want an all green chat you just start with ^4, but you already know that

About client_print_color2, yes, all receivers gonna see the team color of sender when ^3 is used, it can be usefull for things like adminchat or whatever.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 06-24-2012 , 05:31   Re: Rage SubModule: ColorChat
Reply With Quote #43

Okay, thanks. I knew that, I was just saying all of the constants.
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 07-09-2012 , 04:16   Re: Rage SubModule: ColorChat
Reply With Quote #44

PHP Code:
client_print_color(0RED"[%s] ^4Prefix ^1Test"g_szPrefixName); 
Prints the message like this

[Battlefield] Prefix Test

Any ideas? Im using the include from here and newest rage + sub module.

I want
[Battlefield] Prefix Test

Last edited by Doc-Holiday; 07-09-2012 at 04:17.
Doc-Holiday is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-09-2012 , 05:47   Re: Rage SubModule: ColorChat
Reply With Quote #45

client_print_color(0, Red, "^3[%s] ^4Prefix ^1Test", g_szPrefixName);

Though you were right and you shouldn't have to explicit the 1st one.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 07-09-2012 , 05:57   Re: Rage SubModule: ColorChat
Reply With Quote #46

Quote:
Originally Posted by ConnorMcLeod View Post
client_print_color(0, Red, "^3[%s] ^4Prefix ^1Test", g_szPrefixName);

Though you were right and you shouldn't have to explicit the 1st one.
Ah thanks ill test later i just used the older ColorChat native from you a while back (Ill update later)
Doc-Holiday is offline
stojko
Junior Member
Join Date: Dec 2011
Old 07-12-2012 , 21:03   Re: Rage SubModule: ColorChat
Reply With Quote #47

i'm using this (yours) plugin for testing.. and it's great
http://forums.alliedmods.net/showpos...8&postcount=72

in row:
167 and 183 it says:

Quote:
client_print(0, print_chat, "[CSDM] Next Dying CT will be switched to TERRORIST team")
client_print(0, print_chat, "[CSDM] Next Dying TERRORIST will be switched to CT team")
to edit colors for CT and TERRORIST words that all players can see their default colors,
RED for TERRORIST word, and BLUE for CT word in one abovementioned sentences..

i'll tried some methods but no luck (or logical thinking

Last edited by stojko; 07-12-2012 at 21:04.
stojko is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-12-2012 , 21:08   Re: Rage SubModule: ColorChat
Reply With Quote #48

Because it is not possible. You cannot show both red and blue (or gray) in the same message
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Old 07-12-2012, 22:05
Neeeeeeeeeel.-
This message has been deleted by ConnorMcLeod. Reason: You don't know what you are talking about, please don't confuse people
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 07-18-2012 , 13:20   Re: Rage SubModule: ColorChat
Reply With Quote #49

If I use this colorchat variant, the engine limit of messages is ignored ? More about here.
dFF is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 11-07-2012 , 22:50   Re: Rage SubModule: ColorChat
Reply With Quote #50

How it works with dictionary, is it same as client_print? example me plz...
ZASTRELIS 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 02:15.


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