From 02fb807a0b04cc2ab28101757c81c210a3849fe7 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 10 Sep 2006 05:13:03 +0000 Subject: [PATCH] Added request am44517 (jRaven, spectator team) --- plugins/tfc/plmenu.sma | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/plugins/tfc/plmenu.sma b/plugins/tfc/plmenu.sma index 5bf37ebc..cd25edfb 100755 --- a/plugins/tfc/plmenu.sma +++ b/plugins/tfc/plmenu.sma @@ -54,7 +54,7 @@ new g_clcmdNum new g_coloredMenus -new g_teamNames[5][] = {"", "Blue", "Red", "Yellow", "Green"} +new g_teamNames[6][] = {"", "Blue", "Red", "Yellow", "Green", "Spectator"} public plugin_init() { @@ -461,7 +461,7 @@ public actionTeamMenu(id,key) { switch (key) { case 7:{ g_menuOption[id]++ - if( g_menuOption[id] > 4 ) + if (g_menuOption[id] > 5) g_menuOption[id] = 1 displayTeamMenu(id,g_menuPosition[id]) } @@ -485,7 +485,12 @@ public actionTeamMenu(id,key) { new szCmd[2] format(szCmd,2,"%d",g_menuOption[id]) tfc_userkill(player) - engclient_cmd(player,"jointeam" , szCmd ) + if (g_menuOption[id] == 5) + { + engclient_cmd(player, "spectate") + } else { + engclient_cmd(player, "jointeam", szCmd ) + } displayTeamMenu(id,g_menuPosition[id])