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

Detect a command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Altar
Junior Member
Join Date: Aug 2006
Old 12-28-2007 , 12:56   Detect a command
Reply With Quote #1

Hi all,

Today i have search for detect when a client use a console command. I have try to use a lots of event and command for do that and it's never run with a valve command but with personnal command it's good.

I would like to detect the "impulse" command and ban user who use this command with the parametters "102" (skulls) it's for a Hide And Seek server. I hope someone can help me or say if it's possible.

Thanks a lot in advance.
Altar is offline
pRED*
Join Date: Dec 2006
Old 12-28-2007 , 22:45   Re: Detect a command
Reply With Quote #2

Code:
new impulse = GetEntData(client, Prop_Data, "m_nImpulse")

Should return the clients current impulse value. I'm not sure if you can use this to block impulse commands.

Try maybe using the 'OnGameFrame()' forward to check clients current impulse setting and set it to 0 if necessary?

Looking at the SDK the impulse processing seems to check this value for what to use but you need to zero it between when the value gets updated from the client and when the server processes it.

If OnGameFrame doesn't have any effect you could probably file a feature request asking for a new hooking option.
pRED* 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 18:11.


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