F2 keys do something ? + A color tag question.Somaz User Offline 10.06.09 04:11:49 pm 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.
Re: F2 keys do something ? + A color tag question.X-RDG COMMUNITY BANNED Offline 10.06.09 04:39:29 pm 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!
Re: F2 keys do something ? + A color tag question.DC Admin Offline 10.06.09 04:41:38 pm F2, F3 and F4 trigger the serveraction hook. sys/lua/info.txt has writtenserveraction(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
Re: F2 keys do something ? + A color tag question.Flacko User Offline 10.06.09 06:58:19 pm DC, serveraction keys don't work in my keyboard, is it possible to bind them to other keys?
Re: F2 keys do something ? + A color tag question.ohaz User Offline 10.06.09 07:00:14 pm Of course, just go to Options -> Controls and Change "Server Action 1" to "Server Action 3" to other keys