Raised This Month: $ Target: $400
 0% 

Can somebody help :/ ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-12-2017 , 12:21   Re: Can somebody help :/ ?
Reply With Quote #4

maybe something like this should work.
PHP Code:
#include <amxmodx>
#include <amxmisc>
//#include <chatcolor>

#define ACSSES_LEVEL ADMIN_USER

public plugin_init() {
    
register_clcmd("say /lock""usersay")
    
register_clcmd("say /unlock""unsay")
}
public 
usersay(id)
{
    if(
get_user_flags(id) && ACSSES_LEVEL )
    {
        
client_cmd(id"amx_cvar hud_saytext_time 0")
        
//ColorChat(id, GREY, "[AMXX] ^3Chat is locked.")
        
client_print(idprint_chat"chat are now locked")
    }
    return 
PLUGIN_HANDLED;
}
public 
unsay(id)
{
    if(
get_user_flags(id) && ACSSES_LEVEL )
    {
        
client_cmd(id"amx_cvar hud_saytext_time 5")
        
//ColorChat(id, GREY, "[AMXX] ^3Chat is unlocked.")
        
client_print(idprint_chat,"chat are now unlocked")
    }
    return 
PLUGIN_HANDLED;


Last edited by yas17sin; 02-12-2017 at 12:56.
yas17sin is offline
Send a message via ICQ to yas17sin
 



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