2010-02-16, 11:00:09
Ill stick with your original solution if I can.
So editing the game.ccp would look like this?
So editing the game.ccp would look like this?
Code:
{
CBaseGame :: EventGameStarted( );
// record everything we need to ban each player in case we decide to do so later
// this is because when a player leaves the game an admin might want to ban that player
// but since the player has already left the game we don't have access to their information anymore
// so we create a "potential ban" for each player and only store it in the database if requested to by an admin
for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ )
m_DBBans.push_back( new CDBBan( (*i)->GetJoinedRealm( ), (*i)->GetName( ), (*i)->GetExternalIPString( ), string( ), string( ), string( ), string( ) ) );
ShuffleSlots( );
}