Raised This Month: $ Target: $400
 0% 

Doing something with client command.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 09-27-2011 , 12:09   Doing something with client command.
Reply With Quote #1

"stop"

hooking like this "register_clcmd("stop", "quit")" doesn't work as very few commands can be hooked like this right?
I read somewhere those commands would need to be specifically hooked, how is that possible? an entire plugin method for one command? have no idea.

how about cl_query_cvar "stop" or what was the name.
is that possible? or does it only work for cvar with values?

The Idea is to have a punishment set kick for whoever executes the command "stop".
the stop command itself may be executed at this time.
it does not need to block or prevent. kick will do.
vamppa is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-27-2011 , 12:14   Re: Doing something with client command.
Reply With Quote #2

Commands can be hooked with register_clcmd.

Only few commands CAN'T be hooked because it's client commands, such as record, stop, status, connect, retry etc... because those commands are never sent to server.
There is NO way to hook those commands.

query_client_cvar is for cvars, not for commands, and it only allow you to check cvars value, not when cvars values are changed.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 09-27-2011 , 12:21   Re: Doing something with client command.
Reply With Quote #3

damn I see.
thank you for the clarification.
vamppa is offline
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 09-27-2011 , 12:49   Re: Doing something with client command.
Reply With Quote #4

Is it possible to check if the client is recording a demo?
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 09-28-2011 , 10:53   Re: Doing something with client command.
Reply With Quote #5

guess the same answer applies to that mate.
vamppa 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 19:39.


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