client_cmd vs console_cmd
When the situation fits to use console_cmd am I right in saying it is a little more efficient to use apposed to client_cmd?
PHP Code:
PHP Code:
|
Re: client_cmd vs console_cmd
The only difference between them is that console_cmd sends it to the server if Index is 0, where client_cmd sends it to all connected users
|
Re: client_cmd vs console_cmd
Also, IIRC, commands registered with register_clcmd() will not be hooked if they are used in the server's console. So, you use register_clcmd() when you have things that require that it come from a client's actual game (things like menus and other things that are actually displayed on the HUD.
|
| All times are GMT -4. The time now is 09:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.