Forum

> > CS2D > General > Lua > Script Does Not Working!
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Lua > Script Does Not Working!

1 reply
To the start Previous 1 Next To the start

old closed Lua > Script Does Not Working!

MatheusMK3
User Off Offline

Quote
Hello people,
I have a script that is not working in lua, can someone say what is wrong on it?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("say", "mk3.utils.say")
function mk3.utils.say(id, message)
	if(player(id,"team")==1) then
		parse("sv_msg ©025025255"..player(id,"name").." diz: ©255255255"..message)
	elseif(player(id,"team")==1) then
		parse("sv_msg ©255025025"..player(id,"name").." diz: ©255255255"..message)
	elseif(player(id,"team")==0) then
		parse("sv_msg ©255255000"..player(id,"name").." diz: ©255255255"..message)
	end
	print("===CHAT: Jogador ["..player(id,"name").."] (ID "..id..") do time "..player(id,"team").." disse: 

"..message)
	return 1
end
Everything works, except the chat part, it shows in console, etc, but not how i want...

Admin/mod comment

Repost this in the Lua Scripts/Questions/Help thread Please. Also, please view the Forum Rules and Faqs before using it. /Lee
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview