Added request am44517 (jRaven, spectator team)
This commit is contained in:
parent
f880fc6ee9
commit
02fb807a0b
|
@ -54,7 +54,7 @@ new g_clcmdNum
|
||||||
|
|
||||||
new g_coloredMenus
|
new g_coloredMenus
|
||||||
|
|
||||||
new g_teamNames[5][] = {"", "Blue", "Red", "Yellow", "Green"}
|
new g_teamNames[6][] = {"", "Blue", "Red", "Yellow", "Green", "Spectator"}
|
||||||
|
|
||||||
public plugin_init()
|
public plugin_init()
|
||||||
{
|
{
|
||||||
|
@ -461,7 +461,7 @@ public actionTeamMenu(id,key) {
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case 7:{
|
case 7:{
|
||||||
g_menuOption[id]++
|
g_menuOption[id]++
|
||||||
if( g_menuOption[id] > 4 )
|
if (g_menuOption[id] > 5)
|
||||||
g_menuOption[id] = 1
|
g_menuOption[id] = 1
|
||||||
displayTeamMenu(id,g_menuPosition[id])
|
displayTeamMenu(id,g_menuPosition[id])
|
||||||
}
|
}
|
||||||
|
@ -485,7 +485,12 @@ public actionTeamMenu(id,key) {
|
||||||
new szCmd[2]
|
new szCmd[2]
|
||||||
format(szCmd,2,"%d",g_menuOption[id])
|
format(szCmd,2,"%d",g_menuOption[id])
|
||||||
tfc_userkill(player)
|
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])
|
displayTeamMenu(id,g_menuPosition[id])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user