[help] set key
i want set key for clcmd
press j instead of /test please someone can explain me #include <amxmodx> #include <amxmisc> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /test", "cmdTest") } public cmdTest (id) { client_print(id,print_chat,"Welcome to alliedmods") } |
Re: [help] set key
Not possible to set players keys to commands anymore since latest update.
The client themselves must bind the keys only if they want to. |
Re: [help] set key
Quote:
can you write code for bind j key for /test so players can bind his key am i right ?? |
Re: [help] set key
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. |
Re: [help] set key
Quote:
Like I said above it doesn't work anymore. You can't force players to bind keys that's final. Clients are the only ones who can bind there own keys. |
Re: [help] set key
Quote:
can u set bind j /test for my above code please give me example |
Re: [help] set key
This is (1) slowhacking and (2) not going to work anymore.
|
Re: [help] set key
Quote:
2- can you give me another way :twisted: |
Re: [help] set key
It'll not. Take a look at this page under 'blocking':
https://developer.valvesoftware.com/...in_Slowhacking Another way to accomplish this is to use client_print() to inform the player to bind the keys themselves. |
Re: [help] set key
Quote:
Have them bind the command "test" (without the slash) and then use register_clcmd("test", "cmdTest"). |
| All times are GMT -4. The time now is 21:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.