Hey. I found this in the trash. I wanted to see how it worked, but it is totally wrong.
If I use this command:
PHP Code:
client_cmd(id,"bind F12 say AntiCheat: F12 Pressed.");
What is does is binding the key to the say command and makes the player say what ever I change it to.
However, when I connect to the server with this running, it wont bind it.
I found out why. I have to write it like this in console:
Code:
bind F12 "say AntiCheat: F12 Pressed"
But I can not use those " in the code, since I am getting errors when compiling it then. So my question is:
Is there any way to get this to work, so I can use " in the client_cmd?
__________________