Raised This Month: $ Target: $400
 0% 

Hide chat commands


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Tonda
Senior Member
Join Date: Aug 2009
Old 04-17-2013 , 15:19   Hide chat commands
Reply With Quote #1

Hi, i used this code for hide all chat commands like a /hp , /top15 etc.


PHP Code:
register_clcmd"say""cmdCheckCmd" )
register_clcmd"say_team""cmdCheckCmd" )


public 
cmdCheckCmdid )
{
    new 
szSaid128 ]
    
read_argsszSaidsizeof szSaid -)
    
remove_quotesszSaid )
    
    if( 
szSaid] == '/' || equalszSaid"command" ) )
    {
        return 
PLUGIN_HANDLED_MAIN
    
}
    
    return 
PLUGIN_CONTINUE

All works fine and all players cant see all commands, but ... If player havent team (spectate), he see all commands and this script doesnt hide.

Why?

Last edited by Tonda; 04-17-2013 at 15:19.
Tonda 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 10:49.


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