function Game::menuRequest(%clId) {
%clName = Client::getName(%clId); // Client Name
%menuTitle = $KTMod::About::Title; // Menu Title
%curItem = 0; // Current Menu Item
if (!$KTMod::Menu::AllowMenu) {
Client::sendMessage(%clId, 0, "Menu is currently disabled");
return;
}
Client::buildMenu(%clId, %menuTitle, "::Options", True); // Build Menu
// Change Teams
if ((!$MatchStarted) || (!$Server::TourneyMode))
Client::addMenuItem(%clId, %curItem++ @ "Change Teams/Observe", "opt_changeteam");
// Selected Player Options
if (%clId.selClient) {
%selId = %clientId.selClient;
%selName = Client::getName(%selId);
// No Vote In Progress, and not admin
if (($KTMod::Admin::VoteTopic == "") && (!%clId.isAdmin)) {
// Not Already Super Admin
if ((!%clId.isSuperAdmin) && ($KTMod::Menu::VoteSAdmin))
Client::addMenuItem(%clId, %curItem++ @ "Vote To Super-Admin " @ %selName, "opt_vote_sadmin " @ %selId);
// Not Already Admin
if ((!%clId.isAdmin) && ($KTMod::Menu::VoteAdmin))
Client::addMenuItem(%clId, %curItem++ @ "Vote To Admin " @ %selName, "opt_vote_admin " @ %selId);
// Vote To Kick
if ($KTMod::Menu::VoteKick)
Client::addMenuItem(%clId, %curItem++ @ "Vote To Kick " @ %selName, "opt_vote_kick " @ %selId);
// Vote To Ban
if ($KTMod::Menu::VoteBan)
Client::addMenuItem(%clId, %curItem++ @ "Vote To Ban " @ %selName, "opt_vote_ban " @ %selId);
// Vote To Gag
if ($KTMod::Menu::VoteGag)
Client::addMenuItem(%clId, %curItem++ @ "Vote To Gag " @ %selName, "opt_vote_gag " @ %selId);
}