Hi elitepvpers,
i am trying to make the teleport system for users that has an premium status.
For testing purposes i did not create the premium system yet.
Instead i am using IK3_ARMOREFFECTCHANGE
so
CWndTeleporter::OnInitialUpdate(void)
if(g_pPlayer->HasBuffByIk3(IK3_ARMOREFFECTCHANGE)
{
Destroy();
}
it simply means when the player has the buff IK3_ARMOREFFECTCHANGE
it wont open CWndTeleporter.
However when i have the buff active it still opens up the Teleporter.
I also tried it for testing with SM_MODE SM_MAX_HP
So
if(g_pPlayer->IsSMMode(SM_MAX_HP))
Destroy();
Also that one isn't working.
i am trying to make the teleport system for users that has an premium status.
For testing purposes i did not create the premium system yet.
Instead i am using IK3_ARMOREFFECTCHANGE
so
CWndTeleporter::OnInitialUpdate(void)
if(g_pPlayer->HasBuffByIk3(IK3_ARMOREFFECTCHANGE)
{
Destroy();
}
it simply means when the player has the buff IK3_ARMOREFFECTCHANGE
it wont open CWndTeleporter.
However when i have the buff active it still opens up the Teleporter.
I also tried it for testing with SM_MODE SM_MAX_HP
So
if(g_pPlayer->IsSMMode(SM_MAX_HP))
Destroy();
Also that one isn't working.