Forum

> > CS2D > General > F2 keys do something ? + A color tag question.
Forums overviewCS2D overviewGeneral overviewLog in to reply

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

4 replies
To the start Previous 1 Next To the start

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

Somaz
User Off Offline

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

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

X-RDG
COMMUNITY BANNED Off Offline

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

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

DC
Admin Off Offline

Quote
F2, F3 and F4 trigger the serveraction hook.
sys/lua/info.txt has written
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
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview