Code:
public plugin_init(){
register_plugin("Dev Commands","0.9a","Server Dev Team")
register_concmd("submitmsg","cmdSay",ADMIN_RCON,"<message> - Devoloper command.")
}
public cmdSay(id,level,cid){
new message[192], name[32],authid[32]
read_args(message,191)
remove_quotes(message)
get_user_authid(id,authid,31)
get_user_name(id,name,31)
client_print(0,print_notify,"(Server Developer) %s : %s",name,message)
server_cmd("echo (Announce) %s : %s",name,message)
return PLUGIN_HANDLED
}
I'd want it so if i do the command "submitmsg Hello" it would say "(Server Developer) <Foamy> is playing with name <Homeless> : Hello"
But if another one of my admins did it my name would be replaced with his.
__________________