init()
{
	level.clientid = 0;

	level thread onPlayerConnect();

	// bootstrap
	level thread scripts\bots_adapter::init();
	level thread scripts\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
	}
}
