Forum

> > CS2D > Scripts > :notok:
Forums overviewCS2D overview Scripts overviewLog in to reply

English :notok:

11 replies
To the start Previous 1 Next To the start

old :notok:

Danilwra
User Off Offline

Quote
×
edited 1×, last 29.05.19 12:40:14 pm

old Re: :notok:

Dousea
User Off Offline

Quote
1
2
3
4
addhook ("say", "preventsay")
function preventsay (id, message)
	return 1
end

old Re: :notok:

MikuAuahDark
User Off Offline

Quote
Everything should work fine unless you're use cs2d lua hook say at your another scripts. Use Dinosaur Tool to find solution

old Re: :notok:

AlcatrazZ
BANNED Off Offline

Quote
1
2
3
4
5
addhook("say","s",1)
function s(id,tx)
parse("msg "..tx.."@C")
return 1
end

old Re: :notok:

G3tWr3ck3d
User Off Offline

Quote
Srsly... There is a missing letter in his function, i suggest you to try this one.

1
2
3
4
5
addhook("say","s",1)
function s(id,txt)
parse("msg "..txt.."@C")
return 1
end

old Re: :notok:

Starkkz
Moderator Off Offline

Quote
@user G3tWr3ck3d: it's actually the same thing, but as far as I know, the message command for the console is sv_msg, not msg.

old Re: :notok:

RedizGaming
GAME BANNED Off Offline

Quote
addhook("say","s")
function s(id,txt)
     msg(' '..txt..' @C')
     return 1
end

old Re: :notok:

G3tWr3ck3d
User Off Offline

Quote
Damn it u are right, I am not sure what this dude is trying to do. I thought that the function parameter is the problem.

old Re: :notok:

Rainoth
Moderator Off Offline

Quote
@user RedizGaming: You might want to use code tags
1
2
3
4
5
addhook("say","_say")
function _say(id,txt)
     msg(txt.."@C")
     return 1
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview