Map Raid System

Hello, i’m making a Custom Code for my map(BG). But i don’t get a Code for:
When enter map, join to Raid

I have written something like, but when each player enters the map, creates a distinct group, instead of joining the Original.

[http://pastebin.com/kq3zQVTv](http://pastebin.com/kq3zQVTv)

Group* group = player->GetGroup(team); // Error
but

Group* group = GetBgRaid(team);
if i use this, it isn’t declarate

something more like “GetBgRaid(team)”?