Raised This Month: $ Target: $400
 0% 

How to hide players say?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 08-01-2010 , 07:09   Re: How to hide players say?
Reply With Quote #1

PHP Code:
public handle_say(id) {
    new 
said[192]
    
read_args(said,192)
    if( ( 
containi(said"who") != -&& containi(said"admin") != -) || contain(said"/admin") != -)
        
set_task(0.1,"print_adminlist",id)
    return 
PLUGIN_CONTINUE

Code:
return PLUGIN_CONTINUE
is the result returned by public function and
Code:
 return PLUGIN_HANDLED
pauses the "say" command if the specified is said.
So use HANDLED.

Last edited by SpeeDeeR; 08-01-2010 at 07:13.
SpeeDeeR 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 00:13.


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