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

[Dyn Native] ColorChat v0.3.2 (04 jul 2013)


Post New Thread Reply   
 
Thread Tools Display Modes
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 04-18-2011 , 04:37   Re: [Native/Stock] ColorChat v0.2.1 (28 dec 2010)
Reply With Quote #101

question
how do i write with a color like green, normal and then print the color of the player that is saying the text's team for everybody?
like in your example picture
it's normal, green, normal, player's team color
[img]http://img35.**************/img35/6019/bkzaztecbhop0008.png[/img]
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-18-2011 , 06:22   Re: [Native/Stock] ColorChat v0.2.1 (28 dec 2010)
Reply With Quote #102

Quote:
Originally Posted by georgik57 View Post
question
how do i write with a color like green, normal and then print the color of the player that is saying the text's team for everybody?
like in your example picture
it's normal, green, normal, player's team color
[img]http://img35.**************/img35/6019/bkzaztecbhop0008.png[/img]
PHP Code:
client_print_color(indexDontChange"^1(^4RADIO^1) ^3Player ^1: wakaka you awesome babeh!"
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 04-18-2011 , 06:32   Re: [Native/Stock] ColorChat v0.2.1 (28 dec 2010)
Reply With Quote #103

Quote:
Originally Posted by yokomo View Post
PHP Code:
client_print_color(indexDontChange"^1(^4RADIO^1) ^3Player ^1: wakaka you awesome babeh!"
so if i put DontChange, when i use ^3 it prints the specified player's team color to everyone? i mean even if T, he sees blue color?
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-18-2011 , 08:16   Re: [Native/Stock] ColorChat v0.2.1 (28 dec 2010)
Reply With Quote #104

Quote:
Originally Posted by georgik57 View Post
so if i put DontChange, when i use ^3 it prints the specified player's team color to everyone? i mean even if T, he sees blue color?
DontChange = Normal team color each team
Red = Show red color for (SPEC, CT) team.
Blue = Show blue color for (SPEC, T) team.
Grey = Show grey color for (CT, T) team.

For example:
You are in CT team but you want to see your victim name in Red color, so you need to use this.

PHP Code:
client_print_color(indexRed"^4[ChatColorTest] ^1You killed ^3%s ^1with ^4Thunder Gun^1."VictimName
Hope you can get this, it simple. Thanks Connor for useful chat native.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 04-18-2011 , 08:18   Re: [Native/Stock] ColorChat v0.2.1 (28 dec 2010)
Reply With Quote #105

Quote:
Originally Posted by yokomo View Post
DontChange = Normal team color each team
Red = Show red color for (SPEC, CT) team.
Blue = Show blue color for (SPEC, T) team.
Grey = Show grey color for (CT, T) team.

For example:
You are in CT team but you want to see your victim name in Red color, so you need to use this.

PHP Code:
client_print_color(indexRed"^4[ChatColorTest] ^1You killed ^3%s ^1with ^4Thunder Gun^1."VictimName
Hope you can get this, it simple. Thanks Connor for useful chat native.
yes i got it
thank you
and yes...thanks to connor for this
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-18-2011 , 11:49   Re: [Native/Stock] ColorChat v0.2.1 (28 dec 2010)
Reply With Quote #106

Read the first post ;)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 04-18-2011 , 12:12   Re: [Native/Stock] ColorChat v0.2.1 (28 dec 2010)
Reply With Quote #107

Quote:
Originally Posted by ConnorMcLeod View Post
Read the first post ;)
ok i've got it now
haven't seen that it was explained in the first post...lol
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 04-19-2011 , 00:06   Re: [Native/Stock] ColorChat v0.2.1 (28 dec 2010)
Reply With Quote #108

try this code
Code:
new szTeam[32];
new color = get_user_team(victim, szTeam, charsmax(szTeam);
//new color = get_user_team(killers, szTeam, charsmax(szTeam);
client_print_color(index, color, "^x01The team color is ^x03%s", szTeam);
//client_print_color(index, color, "^x01The team color is ^x03%s", szTeam);
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 04-19-2011 , 04:40   Re: [Native/Stock] ColorChat v0.2.1 (28 dec 2010)
Reply With Quote #109

Quote:
Originally Posted by K.K.Lv View Post
try this code
Code:
new szTeam[32];
new color = get_user_team(victim, szTeam, charsmax(szTeam);
//new color = get_user_team(killers, szTeam, charsmax(szTeam);
client_print_color(index, color, "^x01The team color is ^x03%s", szTeam);
//client_print_color(index, color, "^x01The team color is ^x03%s", szTeam);
i understood how it works
no need for examples anymore
thanks for helping
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-27-2011 , 21:05   Re: [Native/Stock] ColorChat v0.2.1 (28 dec 2010)
Reply With Quote #110

I wonder if someone can explain me one thing in the code.

Code:
                // If arraysize == 0, ML is not used                 // we can only send 1 MSG_BROADCAST message                 if( !iMlNumber )                 {                         if( iParams == 3 )                         {                                 get_string(3, szMessage[1], charsmax(szMessage)-1)                         }                         else                         {                                 vdformat(szMessage[1], charsmax(szMessage)-1, 3, 4)                         }                         if( iColor )                         {                                 new szTeam[11]
                                get_user_team(iFool, szTeam, charsmax(szTeam))
                                Send_TeamInfo(0, iFool, g_szTeamName[iColor])                                 Send_SayText(0, iFool, szMessage)
                                Send_TeamInfo(0, iFool, szTeam)
                        }                         else                         {                                 Send_SayText(0, iFool, szMessage)                         }                 }
There's a custom color, so you change everyone's team through TeamInfo to the custom one, send a broadcast message, then set back everyone's team to the one which iFool (players[0]) had. How come? Aren't you supposed to save everyone's team separately?
__________________

Last edited by hleV; 04-27-2011 at 21:08.
hleV 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 20:37.


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