The key event.

10/25/2012 16:15 Fovi#1
How to do event which will be started after pressing the button (for example F10). I know for sure that i will need editing client. But someone know what ?


Pseudo code, to visualize what I mean xD
Code:
when pressed."F5" begin
say_title("Server:")
say("You have pressed F5")
end
10/25/2012 17:27 noahrmal#2
In Python? If yes, try it with:

PHP Code:
if (app.IsPressed(app.DIK_F5) == TRUE):
        
chat.AppendChat(chat.CHAT_TYPE_INFO"You have pressed F5!) 
10/25/2012 20:43 Fovi#3
It is not exactly what i needs. I want to pressing button will activates a server side quest (in lua). If it is imposible to do or just hard, Is it possible to add new command ?
For example:
Code:
when pc.wrote("/TeleMenu") begin
     say_title("Server:")
     say("Welcome in tele-menu.")
end
again... pseudcode xD