Raised This Month: $ Target: $400
 0% 

How to block status command?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 07-03-2012 , 07:49   How to block status command?
Reply With Quote #1

How to disable status command on kliens?
__________________
kiki33hun is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 07-03-2012 , 10:32   Re: How to block status command?
Reply With Quote #2

PHP Code:
register_concmd("status""statusBlock"0"DON'T DO THAT!")

public 
statusBlock(id)
{
    
client_print(idprint_console"That command has been disabled. Sorry you can't look at your steamID.")
    return 
PLUGIN_HANDLED

__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-03-2012 , 19:26   Re: How to block status command?
Reply With Quote #3

Quote:
Originally Posted by Liverwiz View Post
PHP Code:
register_concmd("status""statusBlock"0"DON'T DO THAT!")

public 
statusBlock(id)
{
    
client_print(idprint_console"That command has been disabled. Sorry you can't look at your steamID.")
    return 
PLUGIN_HANDLED

. . .

Quote:
Originally Posted by ConnorMcLeod View Post
Also, you can't block client side commands such as 'connect', 'retry', 'reconnect', 'status' etc...
__________________

Last edited by fysiks; 07-03-2012 at 19:28.
fysiks is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 07-03-2012 , 23:41   Re: How to block status command?
Reply With Quote #4

What about autobuy, rebuy, etc? You're able to block those....

And isn't status considered a server query? Because it does query the server for assorted information....
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-04-2012 , 00:52   Re: How to block status command?
Reply With Quote #5

status is not a client command, as retry and reconnect are.
status is hooked by engine and never sent to dll, metamod and amxx only catch commands that engine lets pass to dll.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 07-04-2012, 05:12
OvidiuS
This message has been deleted by OvidiuS. Reason: spam message
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 15:09.


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