Forum

> > CS2D > General > Lua problem Center message
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Lua problem Center message

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt geschlossen Lua problem Center message

VegBerg
User Off Offline

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