Raised This Month: $51 Target: $400
 12% 

A question about HL SDK, for help!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mobe
Junior Member
Join Date: Jun 2005
Old 05-19-2006 , 13:22   A question about HL SDK, for help!
Reply With Quote #1

About client cmd and the "ClientCommand" callback function.
The SDK says that when every player in game send a "cmd" command to the server, engine will make a call to "ClientCommand" callback function in game dll, which give a chance for MOD writters to catch those client cmds.
However, I can't catch client's cmd like "name ...." in this way, but for any other cmd is ok.

So I can't forbid player use "name ..." cmd in my MOD, How can I do that, or anything wrong with my MOD?
mobe is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 05-19-2006 , 18:20  
Reply With Quote #2

'name' is not a command; it links to a setinfo. You must hook InfoChange.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
mobe
Junior Member
Join Date: Jun 2005
Old 05-20-2006 , 01:06  
Reply With Quote #3

That's OK, thanks!
mobe is offline
Reply



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 11:32.


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