Forum

> > CS2D > Scripts > Func_Message (script).
Forums overviewCS2D overview Scripts overviewLog in to reply

English Func_Message (script).

6 replies
To the start Previous 1 Next To the start

old Func_Message (script).

Misho
User Off Offline

Quote
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?

old Re: Func_Message (script).

DC
Admin Off Offline

Quote
There are no scripts in the map editor but you can script it with Lua as already said.

old Re: Func_Message (script).

TimeQuesT
User Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview