Fixed amb1929 - Banning via console should now work properly
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402533
This commit is contained in:
parent
2c107e3601
commit
d707ea0de5
@ -36,8 +36,16 @@ PrepareBan(client, target, time, const String:reason[])
|
||||
new originalTarget = GetClientOfUserId(g_BanTargetUserId[client]);
|
||||
|
||||
if (originalTarget != target)
|
||||
{
|
||||
if (client == 0)
|
||||
{
|
||||
PrintToServer("[SM] %t", "Player no longer available");
|
||||
}
|
||||
else
|
||||
{
|
||||
PrintToChat(client, "[SM] %t", "Player no longer available");
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@ -273,6 +281,8 @@ public Action:Command_Ban(client, args)
|
||||
|
||||
new time = StringToInt(s_time);
|
||||
|
||||
g_BanTargetUserId[client] = GetClientUserId(target);
|
||||
|
||||
PrepareBan(client, target, time, Arguments[len]);
|
||||
|
||||
return Plugin_Handled;
|
||||
|
Loading…
Reference in New Issue
Block a user