Forum

> > CS2D > Scripts > How can be just txt side colored.
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How can be just txt side colored.

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: How can be just txt side colored.

Rainoth
Moderator Off Offline

Zitieren
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.

alt Re: How can be just txt side colored.

KingShadow
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht