PHP- Kodu:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "No-Chat"
#define VERSION "1.0"
#define AUTHOR "Nemesis"
#define CHAT_LEVEL ADMIN_KICK
new gCvar;
new gAdmin;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say","Block")
register_clcmd("say_team","Block_team")
gCvar = register_cvar("nochat_enabled","1") // 0 -> Say Acilir, 1-Say Kapanir, 2-Sadece say_team calisir.
gAdmin = register_cvar("nochat_admin","0") // 0 -> Adminler Konusabilir, 1-> Adminler Konusamaz.
}
public Block(id) {
if((get_pcvar_num(gCvar) == 2) && (!get_pcvar_num(gAdmin) && !(get_user_flags(id) & CHAT_LEVEL))) {
client_print(id,print_chat,"Bu Serverda ^"Say^" Kapalidir !")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public Block_team(id) {
if((get_pcvar_num(gCvar) == 2) && (!get_pcvar_num(gAdmin) && !(get_user_flags(id) & CHAT_LEVEL))) {
client_print(id,print_chat,"Bu Serverda ^"Say_Team^" Kapalidir !")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
Deneyin