et.trap_SendConsoleCommand(et.EXEC_APPEND,"csay "..clientId.."\"^dkick: ^9no connected player by that name or slot #\";")
returntrue
end
ifauth.isallowed(cmdClient,"!")==1then
et.trap_SendConsoleCommand(et.EXEC_APPEND,"csay "..clientId.."\"^dkick: ^7"..et.gentity_get(cmdClient,"pers.netname").." ^9is immune to this command.\";")
et.trap_SendConsoleCommand(et.EXEC_APPEND,"csay "..clientId.."\"^dkick: ^9sorry, but your intended victim has a higher admin level than you do.\";")
returntrue
end
et.trap_DropClient(cmdClient,"You have been kicked, Reason: "..(cmdArguments[2]andcmdArguments[2]or"kicked by admin"),0)
returnfalse
end
commands.addadmin("kick",commandKick,auth.PERM_KICK,"kick a player with an optional reason","^9[^3name|slot#^9] ^9(^3reason^9)",(settings.get("g_standalone")==0))