Ok here my problem when someone get kick for saying brb or /brb on my server. When they have a name like "W. People" when it does it kick. It list the reason as "People".
Quote:
You have been disconnected from the server.
Reason: Kicked: "People"
|
How can i fix this to this
Quote:
You have been disconnected from the server.
Reason: Kicked
|
or
Quote:
You have been disconnected from the server.
Reason: Kicked: "You have been auto kicked by the server."
|
Code:
#include <amxmodx>
#include <amxmisc>
public brbkick( id ) {
new name[34]
get_user_name(id,name,32)
if ( get_user_flags(id) & ADMIN_IMMUNITY ) return PLUGIN_CONTINUE
else
{
server_cmd("amx_kick %s",name, "You have been autokick by the server.")
client_print(0,print_chat,"[EniGmA] Server: Autokicking %s", name)
}
return PLUGIN_HANDLED;
}
public plugin_init() {
register_plugin("Kick Say Brb","0.1","EniGmA")
register_clcmd("say /brb","brbkick")
register_clcmd("say brb","brbkick")
return PLUGIN_CONTINUE;
}
Thank you if you can help me.