renamed all the admin menu items

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401606
This commit is contained in:
David Anderson 2007-10-17 02:40:41 +00:00
parent 31d8511904
commit 96cb8cbc38
7 changed files with 35 additions and 34 deletions

View File

@ -8,25 +8,26 @@
{ {
"PlayerCommands" "PlayerCommands"
{ {
"item" "Slay" "item" "sm_slay"
"item" "Kick" "item" "sm_kick"
"item" "Ban" "item" "sm_ban"
"item" "Gag/Mute" "item" "sm_gag"
"item" "Burn" "item" "sm_burn"
} }
"ServerCommands" "ServerCommands"
{ {
"item" "Change Map" "item" "sm_map"
"item" "Exec CFG" "item" "sm_execcfg"
"item" "Reload Admins" "item" "sm_reloadadmins"
} }
"VotingCommands" "VotingCommands"
{ {
"item" "Cancel Vote" "item" "sm_cancelvote"
"item" "Map Vote" "item" "sm_votemap"
"item" "Kick Vote" "item" "sm_votekick"
"item" "Ban Vote" "item" "sm_voteban"
} }
} }

View File

@ -87,7 +87,7 @@ public OnAdminMenuReady(Handle:topmenu)
if (player_commands != INVALID_TOPMENUOBJECT) if (player_commands != INVALID_TOPMENUOBJECT)
{ {
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Ban", "sm_ban",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_Ban, AdminMenu_Ban,
player_commands, player_commands,

View File

@ -106,7 +106,7 @@ public OnAdminMenuReady(Handle:topmenu)
if (player_commands != INVALID_TOPMENUOBJECT) if (player_commands != INVALID_TOPMENUOBJECT)
{ {
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Gag/Mute", "sm_gag",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_Gag, AdminMenu_Gag,
player_commands, player_commands,
@ -191,4 +191,4 @@ public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{ {
SetClientListeningFlags(client, VOICE_TEAM); SetClientListeningFlags(client, VOICE_TEAM);
} }
} }

View File

@ -108,7 +108,7 @@ public OnAdminMenuReady(Handle:topmenu)
if (player_commands != INVALID_TOPMENUOBJECT) if (player_commands != INVALID_TOPMENUOBJECT)
{ {
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Kick", "sm_kick",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_Kick, AdminMenu_Kick,
player_commands, player_commands,
@ -116,7 +116,7 @@ public OnAdminMenuReady(Handle:topmenu)
ADMFLAG_KICK); ADMFLAG_KICK);
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Identify", "sm_who",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_Who, AdminMenu_Who,
player_commands, player_commands,
@ -129,7 +129,7 @@ public OnAdminMenuReady(Handle:topmenu)
if (server_commands != INVALID_TOPMENUOBJECT) if (server_commands != INVALID_TOPMENUOBJECT)
{ {
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Reload Admins", "sm_reloadadmins",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_ReloadAdmins, AdminMenu_ReloadAdmins,
server_commands, server_commands,
@ -137,7 +137,7 @@ public OnAdminMenuReady(Handle:topmenu)
ADMFLAG_BAN); ADMFLAG_BAN);
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Change Map", "sm_map",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_Map, AdminMenu_Map,
server_commands, server_commands,
@ -145,7 +145,7 @@ public OnAdminMenuReady(Handle:topmenu)
ADMFLAG_CHANGEMAP); ADMFLAG_CHANGEMAP);
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Exec CFG", "sm_execcfg",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_ExecCFG, AdminMenu_ExecCFG,
server_commands, server_commands,
@ -158,7 +158,7 @@ public OnAdminMenuReady(Handle:topmenu)
if (voting_commands != INVALID_TOPMENUOBJECT) if (voting_commands != INVALID_TOPMENUOBJECT)
{ {
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Cancel Vote", "sm_cancelvote",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_CancelVote, AdminMenu_CancelVote,
voting_commands, voting_commands,

View File

@ -89,7 +89,7 @@ public OnAdminMenuReady(Handle:topmenu)
if (player_commands != INVALID_TOPMENUOBJECT) if (player_commands != INVALID_TOPMENUOBJECT)
{ {
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Slay", "sm_slay",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_Slay, AdminMenu_Slay,
player_commands, player_commands,
@ -97,7 +97,7 @@ public OnAdminMenuReady(Handle:topmenu)
ADMFLAG_SLAY); ADMFLAG_SLAY);
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Burn", "sm_burn",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_Burn, AdminMenu_Burn,
player_commands, player_commands,
@ -105,7 +105,7 @@ public OnAdminMenuReady(Handle:topmenu)
ADMFLAG_SLAY); ADMFLAG_SLAY);
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Slap", "sm_slap",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_Slap, AdminMenu_Slap,
player_commands, player_commands,

View File

@ -146,7 +146,7 @@ public OnAdminMenuReady(Handle:topmenu)
if (voting_commands != INVALID_TOPMENUOBJECT) if (voting_commands != INVALID_TOPMENUOBJECT)
{ {
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Gravity Vote", "sm_votegravity",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_VoteGravity, AdminMenu_VoteGravity,
voting_commands, voting_commands,
@ -154,7 +154,7 @@ public OnAdminMenuReady(Handle:topmenu)
ADMFLAG_VOTE); ADMFLAG_VOTE);
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Burn Vote", "sm_voteburn",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_VoteBurn, AdminMenu_VoteBurn,
voting_commands, voting_commands,
@ -162,7 +162,7 @@ public OnAdminMenuReady(Handle:topmenu)
ADMFLAG_VOTE|ADMFLAG_SLAY); ADMFLAG_VOTE|ADMFLAG_SLAY);
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Slay Vote", "sm_voteslay",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_VoteSlay, AdminMenu_VoteSlay,
voting_commands, voting_commands,
@ -170,7 +170,7 @@ public OnAdminMenuReady(Handle:topmenu)
ADMFLAG_VOTE|ADMFLAG_SLAY); ADMFLAG_VOTE|ADMFLAG_SLAY);
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Alltalk Vote", "sm_votealltalk",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_VoteAllTalk, AdminMenu_VoteAllTalk,
voting_commands, voting_commands,
@ -178,7 +178,7 @@ public OnAdminMenuReady(Handle:topmenu)
ADMFLAG_VOTE); ADMFLAG_VOTE);
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"FF Vote", "sm_voteff",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_VoteFF, AdminMenu_VoteFF,
voting_commands, voting_commands,
@ -346,4 +346,4 @@ bool:TestVoteDelay(client)
} }
return true; return true;
} }

View File

@ -156,7 +156,7 @@ public OnAdminMenuReady(Handle:topmenu)
if (voting_commands != INVALID_TOPMENUOBJECT) if (voting_commands != INVALID_TOPMENUOBJECT)
{ {
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Kick Vote", "sm_votekick",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_VoteKick, AdminMenu_VoteKick,
voting_commands, voting_commands,
@ -164,7 +164,7 @@ public OnAdminMenuReady(Handle:topmenu)
ADMFLAG_VOTE|ADMFLAG_KICK); ADMFLAG_VOTE|ADMFLAG_KICK);
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Ban Vote", "sm_voteban",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_VoteBan, AdminMenu_VoteBan,
voting_commands, voting_commands,
@ -172,7 +172,7 @@ public OnAdminMenuReady(Handle:topmenu)
ADMFLAG_VOTE|ADMFLAG_BAN); ADMFLAG_VOTE|ADMFLAG_BAN);
AddToTopMenu(hTopMenu, AddToTopMenu(hTopMenu,
"Map Vote", "sm_votemap",
TopMenuObject_Item, TopMenuObject_Item,
AdminMenu_VoteMap, AdminMenu_VoteMap,
voting_commands, voting_commands,
@ -438,4 +438,4 @@ public Action:Timer_ChangeMap(Handle:timer, Handle:dp)
ServerCommand("changelevel \"%s\"", mapname); ServerCommand("changelevel \"%s\"", mapname);
return Plugin_Stop; return Plugin_Stop;
} }