Raised This Month: $ Target: $400
 0% 

[help] set key


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 07-09-2014 , 10:53   Re: [help] set key
#1

Quote:
Originally Posted by fysiks View Post
Just have them bind the command to their key the same way that you always do it. If you use "say /test" as the command in register_clcmd() then you simply bind that: bind "key" "say /test"

If you don't want it to be a chat command, simply rename the command to whatever you want and use that in the bind.
@fysiks
can u set bind j /test
for my above code
please give me example
__________________
Thanks everyone. #miss_you_all
indraraj striker is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-09-2014 , 11:59   Re: [help] set key
#2

Quote:
Originally Posted by indraraj striker View Post
@fysiks
can u set bind j /test
for my above code
please give me example
You can't do any binding for players. You can only have them bind it them selves.

Have them bind the command "test" (without the slash) and then use register_clcmd("test", "cmdTest").
__________________
fysiks is offline
Closed Thread



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 21:08.


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