Code:
main()

{
	//also initizes scripts
}

init()
{
	//initizes the scripts 
	level thread onPlayerConnect();
}

onPlayerConnect()
{	
	for(;;) // for represents a loop like a loop in C++
	{
		level waittill( "connecting", player ); // awaits connecting of variable player player as you.

		player thread onPlayerSpawned();
		player thread onJoinedSpectators();
		player thread onPlayerDeath();
		// player represents everyone in match
	}
}

onPlayerConnected()
{	
	for(;;) // for represents a loop like a loop in C++
	{
		level waittill( "connected", player ); //awaits till server reports the player connected
		// level represents the entire match
	}
}

onPlayerSpawned()
{
	for(;;) // for represents a loop like a loop in C++
	{
		self waittill( "spawned_player" ); //awaits till your on the map and timer starts
		// self represents YOU!
	}
}

onJoinedSpectators()
{
	self endon( "disconnect" ); // ends script when someone leaves for that person.
	
	for(;;) // for represents a loop like a loop in C++
	{
		self waittill( "joined_spectators" ); //awaits someone joining
	}
}

onPlayerDeath()
{
	for(;;) // for represents a loop like a loop in C++
	{
		self waittill( "death" ); // when you die the script is executed
	
	}
}
suggestions welcome.