- removed incorrect information about DrawOption, renamed to DisplayOption
- renamed DrawTitle to DisplayTitle --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401531
This commit is contained in:
@@ -19,26 +19,15 @@ public AdminMenu_CancelVote(Handle:topmenu,
|
||||
String:buffer[],
|
||||
maxlength)
|
||||
{
|
||||
if (action == TopMenuAction_DrawOption)
|
||||
if (action == TopMenuAction_DisplayOption)
|
||||
{
|
||||
Format(buffer, maxlength, "%T", "Cancel vote", param);
|
||||
|
||||
if (IsVoteInProgress())
|
||||
{
|
||||
return ITEMDRAW_DEFAULT;
|
||||
}
|
||||
else
|
||||
{
|
||||
return ITEMDRAW_IGNORE;
|
||||
}
|
||||
}
|
||||
else if (action == TopMenuAction_SelectOption)
|
||||
{
|
||||
PerformCancelVote(param);
|
||||
RedisplayAdminMenu(topmenu, param);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Action:Command_CancelVote(client, args)
|
||||
|
||||
@@ -39,7 +39,7 @@ public AdminMenu_Kick(Handle:topmenu,
|
||||
String:buffer[],
|
||||
maxlength)
|
||||
{
|
||||
if (action == TopMenuAction_DrawOption)
|
||||
if (action == TopMenuAction_DisplayOption)
|
||||
{
|
||||
Format(buffer, maxlength, "%T", "Kick player", param);
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ public AdminMenu_ReloadAdmins(Handle:topmenu,
|
||||
String:buffer[],
|
||||
maxlength)
|
||||
{
|
||||
if (action == TopMenuAction_DrawOption)
|
||||
if (action == TopMenuAction_DisplayOption)
|
||||
{
|
||||
Format(buffer, maxlength, "%T", "Reload admins", param);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user