Forum

> > CS2D > Scripts > How can be just txt side colored.
Forums overviewCS2D overview Scripts overviewLog in to reply

English How can be just txt side colored.

3 replies
To the start Previous 1 Next To the start

old Re: How can be just txt side colored.

Rainoth
Moderator Off Offline

Quote
addhook("say","_s")
function _s(id,text)
	if player(id,"team") == 1 then
		text = "\169255000000"..player(id,"name")..":\169255255255"..text
	elseif player(id,"team") == 2 then
		text = "\169000000255"..player(id,"name")..":\169255255255"..text


Then make sure you message the text and handle return properly.

old Re: How can be just txt side colored.

KingShadow
User Off Offline

Quote
also if you want normal colors teamcolor:yellow thats it tested without problems

1
2
3
4
5
6
7
8
9
10
addhook("say","_say")
function _say(id,txt)
		if player(id,"team")==1 then
			msg("\169255025000"..player(id,"name").." \169255255000: "..txt)
			return 1
		elseif player(id,"team")==2 then
			msg("\169000128255"..player(id,"name").." \169255255000: "..txt)
			return 1	
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview