Code:
#include <amxmodx>
#include <amxmisc>
#define USERFLAG ADMIN_USER
public plugin_init() {
register_clcmd("say", "usersay")
}
public usersay(id){
if(get_user_flags(id) & USERFLAG)
{
return PLUGIN_HANDLED;
ColorChat(id, GREEN, "[AMXX] ^3Chat is locked.")
}
}
First im noob at this

I wanted to make LockChat plugin where Admin could lock chat by /lock - /unlock command to users with Z flag (just user)
Now i dont have idea how to make that or is it even possible :/