fixed amb920 - blank kick messages from sm_kick
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401423
This commit is contained in:
parent
67e6ad739e
commit
f942b65db1
@ -667,7 +667,14 @@ public Action:Command_Kick(client, args)
|
||||
ShowActivity(client, "%t", "Kicked player", arg);
|
||||
LogAction(client, target, "\"%L\" kicked \"%L\" (reason \"%s\")", client, target, Arguments[len]);
|
||||
|
||||
KickClient(target, "%s", Arguments[len]);
|
||||
if (Arguments[0] == '\0')
|
||||
{
|
||||
KickClient(target, "%t", "Kicked by admin");
|
||||
}
|
||||
else
|
||||
{
|
||||
KickClient(target, "%s", Arguments[len]);
|
||||
}
|
||||
|
||||
return Plugin_Handled;
|
||||
}
|
||||
@ -685,4 +692,4 @@ public Action:Command_CancelVote(client, args)
|
||||
CancelVote();
|
||||
|
||||
return Plugin_Handled;
|
||||
}
|
||||
}
|
||||
|
@ -26,6 +26,11 @@
|
||||
"#format" "{1:s}"
|
||||
"en" "Kicked player '{1}'"
|
||||
}
|
||||
|
||||
"Kicked by admin"
|
||||
{
|
||||
"en" "Kicked by administrator"
|
||||
}
|
||||
|
||||
"Changing map"
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user