overhaul of the phrases for consistency

renamed config files for adminmenu
cleaned up execcfg menu code

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401598
This commit is contained in:
David Anderson
2007-10-16 18:37:24 +00:00
parent 2b15d877aa
commit 5d72810449
24 changed files with 129 additions and 115 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ public AdminMenu_VoteAllTalk(Handle:topmenu,
{
if (action == TopMenuAction_DisplayOption)
{
Format(buffer, maxlength, "%T", "Vote AllTalk", param);
Format(buffer, maxlength, "%T", "Alltalk vote", param);
}
else if (action == TopMenuAction_SelectOption)
{
+9 -5
View File
@@ -2,7 +2,7 @@ DisplayVoteBurnMenu(client,target,String:name[])
{
if (!IsPlayerAlive(target))
{
ReplyToCommand(client, "[SM] %t", "Cannot performed on dead", name);
ReplyToCommand(client, "[SM] %t", "Cannot be performed on dead", name);
return;
}
@@ -15,7 +15,7 @@ DisplayVoteBurnMenu(client,target,String:name[])
g_voteType = voteType:burn;
g_hVoteMenu = CreateMenu(Handler_VoteCallback, MenuAction:MENU_ACTIONS_ALL);
SetMenuTitle(g_hVoteMenu, "Voteburn Player");
SetMenuTitle(g_hVoteMenu, "Voteburn player");
AddMenuItem(g_hVoteMenu, VOTE_YES, "Yes");
AddMenuItem(g_hVoteMenu, VOTE_NO, "No");
SetMenuExitButton(g_hVoteMenu, false);
@@ -27,7 +27,7 @@ DisplayBurnTargetMenu(client)
new Handle:menu = CreateMenu(MenuHandler_Burn);
decl String:title[100];
Format(title, sizeof(title), "%T:", "Vote Burn", client);
Format(title, sizeof(title), "%T:", "Burn vote", client);
SetMenuTitle(menu, title);
SetMenuExitBackButton(menu, true);
@@ -45,7 +45,7 @@ public AdminMenu_VoteBurn(Handle:topmenu,
{
if (action == TopMenuAction_DisplayOption)
{
Format(buffer, maxlength, "%T", "Vote Burn", param);
Format(buffer, maxlength, "%T", "Burn vote", param);
}
else if (action == TopMenuAction_SelectOption)
{
@@ -87,6 +87,10 @@ public MenuHandler_Burn(Handle:menu, MenuAction:action, param1, param2)
{
PrintToChat(param1, "[SM] %t", "Unable to target");
}
else if (!IsPlayerAlive(target))
{
PrintToChat(param1, "[SM] %t", "Player has since died");
}
else
{
DisplayVoteBurnMenu(param1, target, name);
@@ -127,4 +131,4 @@ public Action:Command_VoteBurn(client, args)
DisplayVoteBurnMenu(client, target, arg);
return Plugin_Handled;
}
}
+1 -1
View File
@@ -40,7 +40,7 @@ public AdminMenu_VoteGravity(Handle:topmenu,
{
if (action == TopMenuAction_DisplayOption)
{
Format(buffer, maxlength, "%T", "Vote Gravity", param);
Format(buffer, maxlength, "%T", "Gravity vote", param);
}
else if (action == TopMenuAction_SelectOption)
{
+7 -3
View File
@@ -3,7 +3,7 @@ DisplayVoteSlayMenu(client,target,String:name[])
{
if (!IsPlayerAlive(target))
{
ReplyToCommand(client, "[SM] %t", "Cannot performed on dead", name);
ReplyToCommand(client, "[SM] %t", "Cannot be performed on dead", name);
return;
}
@@ -28,7 +28,7 @@ DisplaySlayTargetMenu(client)
new Handle:menu = CreateMenu(MenuHandler_Slay);
decl String:title[100];
Format(title, sizeof(title), "%T:", "Vote Slay", client);
Format(title, sizeof(title), "%T:", "Slay vote", client);
SetMenuTitle(menu, title);
SetMenuExitBackButton(menu, true);
@@ -46,7 +46,7 @@ public AdminMenu_VoteSlay(Handle:topmenu,
{
if (action == TopMenuAction_DisplayOption)
{
Format(buffer, maxlength, "%T", "Vote Slay", param);
Format(buffer, maxlength, "%T", "Slay vote", param);
}
else if (action == TopMenuAction_SelectOption)
{
@@ -88,6 +88,10 @@ public MenuHandler_Slay(Handle:menu, MenuAction:action, param1, param2)
{
PrintToChat(param1, "[SM] %t", "Unable to target");
}
else if (!IsPlayerAlive(target))
{
PrintToChat(param1, "[SM] %t", "Player has since died");
}
else
{
DisplayVoteSlayMenu(param1, target, name);