[SOLVED]run function if key press
Hi!
I will modify my mod and I think I know how to do except this:
I want to run a function when a key is down:
keyPressed()
{
if(self isHost())
{
//give weapon
}
}
How can I check if the specifik key is pressed?
And one more question: Can I write something in the chat wich runs the functions and send an argument with?
Thanks