Forum

> > CS2D > Scripts > A in the (admin)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch A in the (admin)

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt A in the (admin)

RealDespress28
BANNED Off Offline

Zitieren
why there is an  in the say when i say "adws" it will change into "Â(ADMIN)Epic Duel Says: adws"
adminlist = {120454}

HELP!!!

addhook("say","adminsay")
function adminsay(id,txt)
for _, usgn in ipairs(adminlist) do
if player(id,'usgn') == usgn then
msg("©000255255(ADMIN)"..player(id,"name").." Says: "..txt)
return 1
end
end
end

alt Re: A in the (admin)

limonata
User Off Offline

Zitieren
Try this.

1
2
3
4
5
6
7
8
9
10
11
adminlist = {120454}

addhook("say","adminsay")
function adminsay(id,txt)
	for _, usgn in ipairs(adminlist) do
		if player(id,'usgn') == usgn then
			msg(string.char(169).."000255255(ADMIN)"..player(id,"name").." Says: "..txt)
			return 1
		end
	end
end

alt Re: A in the (admin)

Xirot
User Off Offline

Zitieren
user RealDespress28: Can you do it alone?
Try to remove your fucking admin say code completly and make a new one by searching in the lua scripts. To much scripts as this exists!
STOP ASKING OTHERS!

alt Re: A in the (admin)

Rainoth
Moderator Off Offline

Zitieren
This.
user limonata hat geschrieben
1
addhook("say","adminsay")

Into this.
1
addhook("say","adminsay",1)

Try it. Might work. Helped me before.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht