Raised This Month: $ Target: $400
 0% 

Client_Cmd Problem:


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-23-2013 , 08:03   Re: Client_Cmd Problem:
Reply With Quote #2

return 1;

In amxconst

PHP Code:
#define PLUGIN_CONTINUE        0    /* Results returned by public functions */
#define PLUGIN_HANDLED        1    /* stop other plugins */
#define PLUGIN_HANDLED_MAIN    2    /* to use in client_command(), continue all plugins but stop the command */ 
So >

return 1 >> return PLUGIN_HANDLED;

PHP Code:
if(!is_user_admin(id))
        return 
1
TO

PHP Code:
if(!is_user_admin(id))
        return 
PLUGIN_HANDLED
Its is delete the chat from all persos, including for Admins..

You want to clear chat for all players except for Admins?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
 



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:52.


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