 |
|
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
|

02-12-2017
, 12:56
Re: Can somebody help :/ ?
|
#5
|
Quote:
Originally Posted by yas17sin
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(id, print_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(id, print_chat,"chat are now unlocked") } return PLUGIN_HANDLED; }
|
actualy this did work i test it.
|
|
|
|