init()
{
	level.clientid = 0;
	
	level thread onPlayerConnect();
	
	// bootstrap
	level thread scripts\mp\bots_adapter_libcod::init();
	level thread scripts\mp\bots::init();
}

onPlayerConnect()
{
	for ( ;; )
	{
		level waittill( "connecting", player );
		
		player.clientid = level.clientid;
		level.clientid++;	// Is this safe? What if a server runs for a long time and many people join/leave
	}
}
