Think this is what you mean by function mate, let me know if you want more info.
Code:
public handle_say(id) {
if ((get_user_flags(id)&ADMIN_MAP)){
new name[32]
new Speech[192]
new voicedir[32]
new arg[100]
new cmd[10]
new argx[32]
read_argv(1,arg,99)
parse(arg,cmd,9,argx,31)
if(equal(arg,"yy_help",7)){
search_engine(id,0,argx)
return PLUGIN_HANDLED
}
else if(equal(arg,"uu_help",7)){
search_engine(id,1,argx)
return PLUGIN_HANDLED
}
else if(equal(arg,"tt_help",7)){
search_engine(id,2,argx)
return PLUGIN_HANDLED
}
else if(equal(arg,"rr_help",7)){
search_engine(id,3,argx)
return PLUGIN_HANDLED
}
else if(equal(arg,"ii_help",7)){
search_engine(id,4,argx)
return PLUGIN_HANDLED
}
else if(equal(arg,"uu",2))
copy(voicedir,32,"fvox/")
else if(equal(arg,"tt",2))
copy(voicedir,32,"hgrunt/")
else if(equal(arg,"rr",2))
copy(voicedir,32,"barney/")
else if(equal(arg,"ii",2))
copy(voicedir,32,"scientist/")
else if(equal(arg,"yy",2))
copy(voicedir,32,"")
else
return PLUGIN_CONTINUE
read_args(Speech,191)
remove_quotes(Speech)
get_user_name(id,name,31)
if(safety_check(Speech)){
client_print(id,print_chat,"[AMX] Illegal input. Speech command aborted.")
return PLUGIN_HANDLED
}
if(strlen(voicedir) > 0){
client_cmd(0,"spk ^"%s%s^"",voicedir,Speech[3])
}else{
client_cmd(0,"spk ^"%s^"",Speech[3])
}
client_print(0,print_console,"%s SPOKE %s",name,Speech[3])
server_print("%s SPOKE %s",name,Speech[3])
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
yes decemberx i can try that, i might work for some, but it would be better to be able to type diff things.
got that many bound already.