Forum

> > CS2D > Scripts > :notok:
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch :notok:

11 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt :notok:

Danilwra
User Off Offline

Zitieren
×
1× editiert, zuletzt 29.05.19 12:40:14

alt Re: :notok:

Dousea
User Off Offline

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

alt Re: :notok:

MikuAuahDark
User Off Offline

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

alt Re: :notok:

AlcatrazZ
BANNED Off Offline

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

alt Re: :notok:

G3tWr3ck3d
User Off Offline

Zitieren
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

alt Re: :notok:

Starkkz
Moderator Off Offline

Zitieren
@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.

alt Re: :notok:

RedizGaming
GAME BANNED Off Offline

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

alt Re: :notok:

G3tWr3ck3d
User Off Offline

Zitieren
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.

alt Re: :notok:

Rainoth
Moderator Off Offline

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