ExclamationSolvedWait until all players have spawned

Posts 1–4 of 4 · Page 1 of 1
Wait until all players have spawned
Need a code that the a code waits until all players have spawned then it starts.
Is not exactly what you need, but is similar.To use, thread it like:

Code:
Masjugadores(12);
Code:
Masjugadores( numero )
{
	quit = false;
	while( !quit )
	{
		wait 0.5;
		contador = 0;
		jugadores = getAllPlayers();
		for( i = 0; i < jugadores.size; i++ )
		{
			if( jugadores[i] isPlaying() )
				contador++;
		}
 
		if( contador >= numero )
			break;
	}
}
Thanks, works perfects.
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us