Forum

> > CS2D > Scripts > A in the (admin)
Forums overviewCS2D overview Scripts overviewLog in to reply

English A in the (admin)

8 replies
To the start Previous 1 Next To the start

old A in the (admin)

RealDespress28
BANNED Off Offline

Quote
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

old Re: A in the (admin)

limonata
User Off Offline

Quote
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

old Re: A in the (admin)

Xirot
User Off Offline

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

old Re: A in the (admin)

Rainoth
Moderator Off Offline

Quote
This.
user limonata has written
1
addhook("say","adminsay")

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

Try it. Might work. Helped me before.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview