mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 06:45:37 +03:00
Replace s/get_pdata* with s/get_ent_data* in plmenu.sma (#424)
This commit is contained in:
parent
d23d9b1ba8
commit
fa3d28872e
@ -37,7 +37,7 @@ new g_clcmdNum;
|
|||||||
|
|
||||||
new g_coloredMenus;
|
new g_coloredMenus;
|
||||||
new bool:g_cstrike = false;
|
new bool:g_cstrike = false;
|
||||||
new bool:g_fakemeta = false, m_iMenu, m_bTeamChanged, Menu_ChooseAppearance;
|
new bool:g_fakemeta = false;
|
||||||
|
|
||||||
new Array:g_bantimes;
|
new Array:g_bantimes;
|
||||||
new Array:g_slapsettings;
|
new Array:g_slapsettings;
|
||||||
@ -127,9 +127,6 @@ public plugin_init()
|
|||||||
if (LibraryExists("fakemeta", LibType_Library))
|
if (LibraryExists("fakemeta", LibType_Library))
|
||||||
{
|
{
|
||||||
g_fakemeta = true;
|
g_fakemeta = true;
|
||||||
m_iMenu = 205;
|
|
||||||
m_bTeamChanged = 501;
|
|
||||||
Menu_ChooseAppearance = 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
new modname[9];
|
new modname[9];
|
||||||
@ -831,7 +828,7 @@ public actionTeamMenu(id, key)
|
|||||||
{
|
{
|
||||||
if (g_fakemeta)
|
if (g_fakemeta)
|
||||||
{
|
{
|
||||||
if (get_pdata_int(player, m_iMenu) == Menu_ChooseAppearance)
|
if (get_ent_data(player, "CBasePlayer", "m_iMenu") == CS_Menu_ChooseAppearance)
|
||||||
{
|
{
|
||||||
// works for both vgui and old style menus, and send menuselect could close other menus (and since get_user_menu fails to return VGUI and old style classes menus...)
|
// works for both vgui and old style menus, and send menuselect could close other menus (and since get_user_menu fails to return VGUI and old style classes menus...)
|
||||||
engclient_cmd(player, "joinclass", "6");
|
engclient_cmd(player, "joinclass", "6");
|
||||||
@ -863,7 +860,7 @@ public actionTeamMenu(id, key)
|
|||||||
}
|
}
|
||||||
if (g_fakemeta)
|
if (g_fakemeta)
|
||||||
{
|
{
|
||||||
set_pdata_bool(player, m_bTeamChanged, true);
|
set_ent_data(player, "CBasePlayer", "m_bTeamChanged", true);
|
||||||
}
|
}
|
||||||
new limit_setting;
|
new limit_setting;
|
||||||
if (mp_limitteams)
|
if (mp_limitteams)
|
||||||
@ -906,7 +903,7 @@ public actionTeamMenu(id, key)
|
|||||||
}
|
}
|
||||||
if (g_fakemeta)
|
if (g_fakemeta)
|
||||||
{
|
{
|
||||||
set_pdata_bool(player, m_bTeamChanged, true);
|
set_ent_data(player, "CBasePlayer", "m_bTeamChanged", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_transferingAdmin = 0;
|
g_transferingAdmin = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user