From 4306c4f5b606c54e9e9e0e848a2741828e3b95cb Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Wed, 26 Jul 2006 00:53:45 +0000 Subject: [PATCH] Fixed am42013 TFC plmenu - team menu didn't allow changing from blue team All plmenu - Team change message was always in language of the admin that changed the player --- plugins/dod/plmenu.sma | 4 ++-- plugins/plmenu.sma | 4 ++-- plugins/tfc/plmenu.sma | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/dod/plmenu.sma b/plugins/dod/plmenu.sma index fa83f947..393019a5 100755 --- a/plugins/dod/plmenu.sma +++ b/plugins/dod/plmenu.sma @@ -477,8 +477,8 @@ public actionTeamMenu(id,key) { name,get_user_userid(id),authid, name2,get_user_userid(player),authid2, g_menuOption[id] ? "Allies" : "Axis" ) switch (get_cvar_num("amx_show_activity")) { - case 2: client_print(0,print_chat,"%L",id,"ADMIN_TRANSF_2",name,name2,g_menuOption[id] ? "Allies" : "Axis" ) - case 1: client_print(0,print_chat,"%L",id,"ADMIN_TRANSF_1",name2,g_menuOption[id] ? "Allies" : "Axis" ) + case 2: client_print(0, print_chat, "%L", LANG_PLAYER, "ADMIN_TRANSF_2", name, name2, g_menuOption[id] ? "Allies" : "Axis") + case 1: client_print(0, print_chat, "%L", LANG_PLAYER, "ADMIN_TRANSF_1", name2, g_menuOption[id] ? "Allies" : "Axis") } dod_user_kill(player) diff --git a/plugins/plmenu.sma b/plugins/plmenu.sma index 7ec75c62..172aee99 100755 --- a/plugins/plmenu.sma +++ b/plugins/plmenu.sma @@ -552,8 +552,8 @@ public actionTeamMenu(id, key) switch (get_cvar_num("amx_show_activity")) { - case 2: client_print(0, print_chat, "%L", id, "ADMIN_TRANSF_2", name, name2, g_menuOption[id] ? "TERRORIST" : "CT") - case 1: client_print(0, print_chat, "%L", id, "ADMIN_TRANSF_1", name2, g_menuOption[id] ? "TERRORIST" : "CT") + case 2: client_print(0, print_chat, "%L", LANG_PLAYER, "ADMIN_TRANSF_2", name, name2, g_menuOption[id] ? "TERRORIST" : "CT") + case 1: client_print(0, print_chat, "%L", LANG_PLAYER, "ADMIN_TRANSF_1", name2, g_menuOption[id] ? "TERRORIST" : "CT") } if (g_cstrike) diff --git a/plugins/tfc/plmenu.sma b/plugins/tfc/plmenu.sma index ddf94c50..5bf37ebc 100755 --- a/plugins/tfc/plmenu.sma +++ b/plugins/tfc/plmenu.sma @@ -478,8 +478,8 @@ public actionTeamMenu(id,key) { log_amx("Cmd: ^"%s<%d><%s><>^" transfer ^"%s<%d><%s><>^" (team ^"%s^")", name,get_user_userid(id),authid, name2,get_user_userid(player),authid2, g_teamNames[g_menuOption[id]] ) switch (get_cvar_num("amx_show_activity")) { - case 2: client_print(0,print_chat,"%L",id,"ADMIN_TRANSF_2",name,name2, g_teamNames[g_menuOption[id]] ) - case 1: client_print(0,print_chat,"%L",id,"ADMIN_TRANSF_1",name2, g_teamNames[g_menuOption[id]] ) + case 2: client_print(0, print_chat, "%L", LANG_PLAYER, "ADMIN_TRANSF_2", name, name2, g_teamNames[g_menuOption[id]]) + case 1: client_print(0, print_chat, "%L", LANG_PLAYER, "ADMIN_TRANSF_1", name2, g_teamNames[g_menuOption[id]]) } new szCmd[2] @@ -523,7 +523,7 @@ displayTeamMenu(id, pos) get_user_name(i, name, 31) iteam = get_user_team(i) - if ((iteam == (g_menuOption[id] ? 1 : 2)) || access(i, ADMIN_IMMUNITY)) + if ((iteam == g_menuOption[id]) || access(i, ADMIN_IMMUNITY)) { ++b