sm_kick now uses targeting properly
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40928
This commit is contained in:
parent
ce9b783485
commit
de339cab8b
@ -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]);
|
||||
|
@ -34,4 +34,9 @@
|
||||
"#format" "{1:s}"
|
||||
"en" "Map {1} was not found."
|
||||
}
|
||||
|
||||
"Unable to target"
|
||||
{
|
||||
"en" "You cannot target this player."
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user