Raised This Month: $ Target: $400
 0% 

Can somebody help :/ ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-12-2017 , 13:09   Re: Can somebody help :/ ?
Reply With Quote #10

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <colorchat>

#define USERFLAG ADMIN_USER

new bool:chat_locked

public plugin_init() {
        
register_plugin("Block the Chat""1.0""Natsheh")
    
register_clcmd("say""usersay")
        
register_clcmd("say_team""usersay")
        
register_clcmd("say /lock""lock_chat"ADMIN_KICK)
}

public 
lock_chat(idlevelcid)
{
             if(!
cmd_access(idlevelcid1)) return 1;

             
chat_locked chat_locked false:true
             ColorChat
(0GREEN"[AMXX] ^3The Chat has been %slocked."chat_locked "":"un")
             return 
0;
}
public 
usersay(id){
        if(!
chat_locked) return PLUGIN_CONTINUE;
        
    if(
get_user_flags(id) & USERFLAG)
    {
        
ColorChat(idGREEN"[AMXX] ^3Chat is locked.")
                return 
PLUGIN_HANDLED
    
}
        return 
PLUGIN_CONTINUE;


Last edited by Natsheh; 02-12-2017 at 13:24.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



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 21:04.


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