Forum

> > CS2D > Scripts > Hide Message
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Hide Message

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Hide Message

Quattro
GAME BANNED Off Offline

Zitieren
Hey I can't find this info anywhere, how do I hide message and show HUD message in its place?
I want to do it so when I enter a command for text hook, it would hide your actual message(which was the command) and show the triggered message instead.

alt Re: Hide Message

Cure Pikachu
User Off Offline

Zitieren
Also keeping in mind this, especially once you use multiple scripts using the same hook that returns values like cs2d lua hook say...
sys/lua/info.txt hat geschrieben
Priority is only important if there is more than one function attached to the same hook!
Default is 0, higher numbers = higher priority, lower numbers (also negative) = lower priority.
The attached function with the HIGHEST priority is the LAST function which will be executed.
Moreover CS2D will take the return value of this function (if there is any)!
1× editiert, zuletzt 11.05.18 12:54:43

alt Re: Hide Message

Quattro
GAME BANNED Off Offline

Zitieren
Thanks you guys √

Wait how to use it exactly?

1
2
3
4
5
6
7
addhook("say","debug")

function debug(id,txt)
	if (txt=="t")then
	msg('done')
	end
end

alt Re: Hide Message

SQ
Moderator Off Offline

Zitieren
@user Quattro:
1
2
3
4
5
6
function debug(id,txt)
	if (txt=="t")then
		msg('done')
		return(1)
	end
end

alt Re: Hide Message

Quattro
GAME BANNED Off Offline

Zitieren
Hmm I tried it and it still executes the function then posts "quattro: t"
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht