Variables.
Code:
#include <amxmodx>
new bool:cant_type[33];
public plugin_init() {
register_clcmd("say" , "hook_say");
register_clcmd("say_team" , "hook_say");
}
public client_connect(id) {
cant_type[id] = false;
}
public hook_say(id) {
if(cant_type[id]) {
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
Now somewhere along the line you want to set cant_type[index] = true.
__________________