simpler demo, added "Reload admins" option to "Server Commands" category

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401527
This commit is contained in:
David Anderson 2007-10-02 01:52:15 +00:00
parent afbfb98f1a
commit 9c1807bd31
3 changed files with 7 additions and 3 deletions

View File

@ -54,6 +54,7 @@ new Handle:hTopMenu = INVALID_HANDLE;
public OnPluginStart() public OnPluginStart()
{ {
LoadTranslations("common.phrases"); LoadTranslations("common.phrases");
LoadTranslations("plugin.basecommands");
RegAdminCmd("sm_kick", Command_Kick, ADMFLAG_KICK, "sm_kick <#userid|name> [reason]"); RegAdminCmd("sm_kick", Command_Kick, ADMFLAG_KICK, "sm_kick <#userid|name> [reason]");
RegAdminCmd("sm_map", Command_Map, ADMFLAG_CHANGEMAP, "sm_map <map>"); RegAdminCmd("sm_map", Command_Map, ADMFLAG_CHANGEMAP, "sm_map <map>");

View File

@ -18,7 +18,7 @@ public AdminMenu_ReloadAdmins(Handle:topmenu,
{ {
if (action == TopMenuAction_DrawOption) if (action == TopMenuAction_DrawOption)
{ {
Format(buffer, maxlength, "%T", "Kick player", param); Format(buffer, maxlength, "%T", "Reload admins", param);
} }
else if (action == TopMenuAction_SelectOption) else if (action == TopMenuAction_SelectOption)
{ {
@ -33,5 +33,3 @@ public Action:Command_ReloadAdmins(client, args)
return Plugin_Handled; return Plugin_Handled;
} }

View File

@ -261,5 +261,10 @@
{ {
"en" "Server Commands" "en" "Server Commands"
} }
"Reload admins"
{
"en" "Reload admins"
}
} }