Code:
public check_input(id,level,sid)
{
if ( ! cmd_access(id,level,sid,0))
{
client_print(id, print_chat,"You have no access to that command")
return PLUGIN_HANDLED
}
new message[20]
read_args(message,18)
remove_quotes(message)
if (containi(message,"/password")!= -1)
{
cmd_pw(id)
}
if(containi(message,"/generate") != -1)
{
password_generator()
}
if(containi(message,"/nopassword") != -1)
{
cmd_nopw()
}
if(containi(message,"/warhelp") != -1)
{
show_motd(id, "addons/amxmodx/configs/warhelp.txt")
}
if(containi(message,"/war") != -1)
{
cmd_war(id,level,sid)
}
if(containi(message,"/restore") != -1)
{
cmd_unwar(id,level,sid)
}
return PLUGIN_CONTINUE // here i let the say command reach the server and let it be printed out (PLUGIN_HANDLED had blocked this)
}