diff --git a/plugins/basebans/ban.sp b/plugins/basebans/ban.sp index 216f1cce..1a06cf2d 100644 --- a/plugins/basebans/ban.sp +++ b/plugins/basebans/ban.sp @@ -57,14 +57,20 @@ void PrepareBan(int client, int target, int time, const char[] reason) if (reason[0] == '\0') { ShowActivity(client, "%t", "Permabanned player", name); - } else { + } + else + { ShowActivity(client, "%t", "Permabanned player reason", name, reason); } - } else { + } + else + { if (reason[0] == '\0') { ShowActivity(client, "%t", "Banned player", name, time); - } else { + } + else + { ShowActivity(client, "%t", "Banned player reason", name, time, reason); } } @@ -267,7 +273,15 @@ public Action Command_Ban(int client, int args) { if (args < 2) { - ReplyToCommand(client, "[SM] Usage: sm_ban <#userid|name> [reason]"); + if ((GetCmdReplySource() == SM_REPLY_TO_CHAT) && (client != 0) && (args == 0)) + { + DisplayBanTargetMenu(client); + } + else + { + ReplyToCommand(client, "[SM] Usage: sm_ban <#userid|name> [reason]"); + } + return Plugin_Handled; } diff --git a/plugins/basecommands/kick.sp b/plugins/basecommands/kick.sp index 838943c9..0127f5ca 100644 --- a/plugins/basecommands/kick.sp +++ b/plugins/basecommands/kick.sp @@ -125,7 +125,15 @@ public Action Command_Kick(int client, int args) { if (args < 1) { - ReplyToCommand(client, "[SM] Usage: sm_kick <#userid|name> [reason]"); + if ((GetCmdReplySource() == SM_REPLY_TO_CHAT) && (client != 0)) + { + DisplayKickMenu(client); + } + else + { + ReplyToCommand(client, "[SM] Usage: sm_kick <#userid|name> [reason]"); + } + return Plugin_Handled; } diff --git a/plugins/basecommands/map.sp b/plugins/basecommands/map.sp index 22b51d19..bcf2a942 100644 --- a/plugins/basecommands/map.sp +++ b/plugins/basecommands/map.sp @@ -85,7 +85,15 @@ public Action Command_Map(int client, int args) { if (args < 1) { - ReplyToCommand(client, "[SM] Usage: sm_map "); + if ((GetCmdReplySource() == SM_REPLY_TO_CHAT) && (client != 0)) + { + g_MapList.SetTitle("%T", "Choose Map", client); + g_MapList.Display(client, MENU_TIME_FOREVER); + } + else + { + ReplyToCommand(client, "[SM] Usage: sm_map "); + } return Plugin_Handled; }