hello,can anybody help with fix hack no-safe zone?
with this hack player can attack other players in safe-zone(in map empires)
i try so in char_battle:
bool CHARACTER::Attack(LPCHARACTER pkVictim, BYTE bType) {if (test_server) sys_log(0, "[TEST_SERVER] Attack : %s type %d, MobBattleType %d", GetName(), bType, !GetMobBattleType() ? 0 : GetMobAttackRange());//PROF_UNIT puAttack("Attack");if (!CanMove())return false;
SECTREE *sectree = NULL; SECTREE *vsectree = NULL; sectree = GetSectree(); vsectree = pkVictim->GetSectree();if (sectree && vsectree){if (sectree->IsAttr(GetX(), GetY(), ATTR_BANPK) vsectree->IsAttr(pkVictim->GetX(), pkVictim->GetY(), ATTR_BANPK)) {if (GetDesc()) {LogManager::instance().HackLog("ANTISAFEZONE", this);GetDesc()->DelayedDisconnect(3);}}}
but so have kick and players who attack without hack about safe-zone..