AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Can you fix ChatColor.inc (https://forums.alliedmods.net/showthread.php?t=189846)

samer 123 07-11-2012 16:36

Can you fix ChatColor.inc
 
Can anybody fix colorchat.inc and make it if i put ^5 show in red color for all teams and ^6 show in blue color for all teams

thanks

isotonic 07-11-2012 16:40

Re: Can you fix ChatColor.inc
 
Ahhah ;)
Then you post a code use [PHP] tags.

Just use construction ColorChat( id, Red, "text" ) or ColorChat( id, Blue, "text" ) then.

YamiKaitou 07-11-2012 16:44

Re: Can you fix ChatColor.inc
 
Quote:

Originally Posted by samer 123 (Post 1748288)
Can anybody fix colorchat.inc and make it if i put ^5 show in red color for all teams and ^6 show in blue color for all teams

Problem, you can't do that freely. In order to do that, you must change the team of the player, print the message, then change the team back. Also, you will never be able to show both Red and Blue in the same message

isotonic 07-11-2012 16:47

Re: Can you fix ChatColor.inc
 
Quote:

Originally Posted by YamiKaitou (Post 1748294)
In order to do that, you must change the team of the player, print the message, then change the team back.

He uses Connor's stock. It already does that ;)

samer 123 07-12-2012 01:51

Re: Can you fix ChatColor.inc
 
well , i don't want all the text in the same color

so can anyone make red color "^5" and blue color "^6"

because i want them in the same txt

ConnorMcLeod 07-12-2012 02:04

Re: Can you fix ChatColor.inc
 
Don't use the stock.
Use fake native or module.

Use Red, Blue or Grey, and use ^1 ^3 and ^4, with this you can already do all what you said.

client_print_color(0, Red, "^4This is green, ^3Everybody see this in red, ^1this is normal chat color")
client_print_color(0, Blue, "^4This is green, ^3Everybody see this in blue, ^1this is normal chat color")
client_print_color(0, Grey, "^4This is green, ^3Everybody see this in grey, ^1this is normal chat color")


Edit :

SERVER YOU HAVE IN YOUR SIG IS NOSTEAM :
Code:

hostname:  Land Of KillerS
version :  48/1.1.2.6/Stdio 5447 secure  (10)
tcp/ip  :  89.238.135.150:27015
map    :  cs_assault at: 0 x, 0 y, 0 z
players :  4 active (32 max)

#      name userid uniqueid frag time ping loss adr
# 1 "}{@$}{!r $}{OoT3r" 1234 STEAM_ID_LAN  1 04:33  210    0
# 2 "[H]#[B] : |[P]uN!$heR|" 1235 STEAM_ID_LAN  0 04:04  238    0
# 3 "[xpr^^Team^^Cs]  karim lala" 1236 STEAM_0:0:1020066692  2 00:53  96    0
# 4 "ConnorMcLeod" 1237 STEAM_0:1:1337  0 00:16  34

Ban requested :)


All times are GMT -4. The time now is 23:56.

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