Forum

> > CS2D > General > Lua problem Center message
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Lua problem Center message

1 reply
To the start Previous 1 Next To the start

old closed Lua problem Center message

VegBerg
User Off Offline

Quote
Sorry for posting both lua thread and own...

Hello, I'm very n00b in Lua and tried to make it that when I say @ before a message it will be in the middle but I have a problem... Please help

1
2
3
4
5
6
7
8
9
10
11
12
13
adhook("say", "adminsay")
function adminsay(id, message)
	if (player(id,"usgn")==62805) then
		if (message == @*) then
			return 1
			parse("msg"..id(message, "text").."@C"
		else
			return 0
		end
	else
		return 0
	end
end

I think it can be a problem with the say hook or the @*

---
edit: Is it possible to take USGN's from a text list on the internet?
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview