Raised This Month: $ Target: $400
 0% 

client_cmd() vs. console_cmd()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
capndurk
Senior Member
Join Date: Feb 2006
Old 03-16-2006 , 15:45   client_cmd() vs. console_cmd()
Reply With Quote #1

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.
capndurk is offline
 



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 16:42.


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