I'm trying to add Crossfaction Battleground Script, but All CF-BG Scripts whic I find is very outdated.
I find this "simple" code for CrossFaction Script, But I'm not sure is that good for my core and is that working!
Here is Code:
void Battleground::AddPlayer(Player* player)
// remove afk from player
if (player->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_AFK))
// score struct must be created in inherited class
uint32 hCount = GetPlayersCountByTeam(HORDE);
uint32 aCount = GetPlayersCountByTeam(ALLIANCE);
uint64 guid = player->GetGUID();
if(aCount > hCount)
team = HORDE;
team = ALLIANCE;
Is this possible ?