Raised This Month: $ Target: $400
 0% 

Binding keys when player connects


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 10-28-2009 , 06:56   Binding keys when player connects
Reply With Quote #1

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?
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode