sm_kick now uses targeting properly

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40928
This commit is contained in:
David Anderson 2007-06-08 01:09:17 +00:00
parent ce9b783485
commit de339cab8b
2 changed files with 7 additions and 0 deletions

View File

@ -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]);

View File

@ -34,4 +34,9 @@
"#format" "{1:s}"
"en" "Map {1} was not found."
}
"Unable to target"
{
"en" "You cannot target this player."
}
}