I don't understand why one is more proper in a certain situation than another, unless they're interchangeable.
Quote:
|
Originally Posted by funcwiki
console_cmd - Sends a command to a player's console
|
Quote:
|
Originally Posted by funcwiki
client_cmd - Executes command on a player
|
From my understanding, console_cmd() would be used for any command executed as though the player were typing it into his own console himself, correct?
Examples: "voice_enable 0" (for instance, if you were to set this in info_changed to disable use of the microphone, through client-side)
"net_graph"
"cl_updaterate" etc...
From my understanding, console_cmd() would also be used to execute commands such as say and say_team in a certain situation, correct?
---
client_cmd(), on the other hand, would be used for things such as amx_slay or other commands that the server executes on the player, because the server has access to all commands, right?
I'd be grateful if someone were able to help me decipher these two commands.