Sending and hooking client_cmd
When is the first moment after connecting on server to send client_cmd and hook it with concmd?
|
Re: Sending and hooking client_cmd
You can test this on your own. Test all of the relevant forwards: client_connect() and client_putinserver().
|
Re: Sending and hooking client_cmd
Well, tested both of them, and weird output i have.
First one is not working at all, and second one is sometimes working. I noticed when i have high ping to server, commands aren't working, and if my ping is low, commands are executed. |
Re: Sending and hooking client_cmd
I think, but should be checked, that client_cmd is working from client_connect to client_putinserver (not when DLing via fastdownload), and at exact client_putinserver time it doesn't work (may be you can't send any message (client_cmd is sending in fine SVC_STUFFTEXT message to client)), and right after client_putinserver you can send again.
|
Re: Sending and hooking client_cmd
Hm, well i just noticed the same thing. What is "safe" time to send 3 client_cmd commands?
Problem is that one command can be sent in client_connect, after my command is sent, server sends me random things like: Code:
echo "* Privileges set" |
Re: Sending and hooking client_cmd
Sorry for double post, here is what i got:
Code:
Client output: Code:
random_command 1 |
Re: Sending and hooking client_cmd
It doesn't make any difference, but for client commands, do only use register_clcmd.
register_concmd is to register server + client commands at the same time. |
| All times are GMT -4. The time now is 10:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.