Let's make it have CVAR
Code:
#include <amxmodx>
public plugin_init() {
register_clcmd("say" , "hook_say");
register_clcmd("say_team" , "hook_say");
register_cvar("allowtalk","1")
}
public hook_say(id) {
new allowtalk[64]
new talkallow = get_cvar_string("allowtalk",allowtalk,63)
if(talkallow != 1) {
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
Maybe, not really sure about cvar stuff >_>
__________________