blocked sm_admin from being used by rcon

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401609
This commit is contained in:
David Anderson 2007-10-17 17:12:26 +00:00
parent 261295acd6
commit 1777c84a75
2 changed files with 17 additions and 1 deletions

View File

@ -175,6 +175,12 @@ public __AddTargetsToMenu(Handle:plugin, numParams)
public Action:Command_DisplayMenu(client, args) public Action:Command_DisplayMenu(client, args)
{ {
if (client == 0)
{
ReplyToCommand(client, "[SM] %t", "Command is in-game only");
return Plugin_Handled;
}
DisplayTopMenu(hAdminMenu, client, TopMenuPosition_Start); DisplayTopMenu(hAdminMenu, client, TopMenuPosition_Start);
return Plugin_Handled; return Plugin_Handled;

View File

@ -286,24 +286,34 @@
{ {
"en" "Reload admins" "en" "Reload admins"
} }
"Ban player" "Ban player"
{ {
"en" "Ban player" "en" "Ban player"
} }
"Ban reason" "Ban reason"
{ {
"en" "Ban reason" "en" "Ban reason"
} }
"Burn player" "Burn player"
{ {
"en" "Burn player" "en" "Burn player"
} }
"Slap player" "Slap player"
{ {
"en" "Slap player" "en" "Slap player"
} }
"Slap damage" "Slap damage"
{ {
"en" "Slap damage" "en" "Slap damage"
} }
"Command is in-game only"
{
"en" "This command can only be used in-game."
}
} }