Forum

> > CS2D > Scripts > Func_Message (script).
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Func_Message (script).

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Func_Message (script).

Misho
User Off Offline

Zitieren
Hello us.
I have one idea for a script in map editor.
Ok we have Func_Message.
So my idea is when you write in the ''msg rectangle''
[username] is the best!
The message is going to look like:
''The user that is reading this'' is the best!
When i'm reading this it will be like:
Misho is the best!

I hope you get my point.
And one question is it possible?

alt Re: Func_Message (script).

TimeQuesT
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
13
function vDisplay(text)
	pTable = player(0,"table");
	for i=1,#pTable do
		msg2(player(pTable[i],"name").." "..text);
	end
end

addhook ("trigger","vTrigger");
function vTrigger(x,y)
	if (entity(x,y,"typename")=="func_message") then
		vDisplay(entity(x,y,"str0"));
	end
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht