Forum

> > CS2D > General > F2 keys do something ? + A color tag question.
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch F2 keys do something ? + A color tag question.

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt F2 keys do something ? + A color tag question.

Somaz
User Off Offline

Zitieren
Ok, so on some server I could open up a menu, more likely trigger a LUA hook by pressing F2. How can I do that on my server?


And a second question is: Can I somehow end a color tag?


Like CxxxxxxxThis text is red "some tag here" But this text is white again.

alt Re: F2 keys do something ? + A color tag question.

X-RDG
COMMUNITY BANNED Off Offline

Zitieren
The F2 key I can't answer, because i don't use deafult controls. Always custom.

The second one is easy.

> The correct command is: sv_msg ©255017000 Hello! This text is red. "sv_msg ©000000000 Hello! This text haves other colour."

I think that shuold work, if not tell me.

-- Edit --
That's a command normally used for server message or LUA issues, not player name!

alt Re: F2 keys do something ? + A color tag question.

DC
Admin Off Offline

Zitieren
F2, F3 and F4 trigger the serveraction hook.
sys/lua/info.txt hat geschrieben
serveraction(id,action)                         on server action key
-id: player id
-action: action key 1,2 or 3


it is impossible to have multiple colors in the same message or the same line
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht