From de339cab8b077824d62793d63aaa25f481142c6f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 8 Jun 2007 01:09:17 +0000 Subject: [PATCH] sm_kick now uses targeting properly --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40928 --- plugins/basecommands.sp | 2 ++ translations/common.cfg | 5 +++++ 2 files changed, 7 insertions(+) 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." + } }