diff --git a/plugins/basecommands.sp b/plugins/basecommands.sp index 8ff82d3c..21e4bf38 100644 --- a/plugins/basecommands.sp +++ b/plugins/basecommands.sp @@ -224,6 +224,8 @@ public Action:Command_Kick(client, args) } else if (numClients > 1) { ReplyToCommand(client, "[SM] %t", "More than one client matches", arg); return Plugin_Handled; + } else if (!CanUserTarget(client, clients[0])) { + ReplyToCommand(client, "[SM] %t", "Unable to target"); } new userid = GetClientUserId(clients[0]); diff --git a/translations/common.cfg b/translations/common.cfg index 8bb785c0..27ed9766 100644 --- a/translations/common.cfg +++ b/translations/common.cfg @@ -34,4 +34,9 @@ "#format" "{1:s}" "en" "Map {1} was not found." } + + "Unable to target" + { + "en" "You cannot target this player." + } }