mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
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
This commit is contained in:
parent
3b62b91fb7
commit
4306c4f5b6
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user