View file element_function/element_function_arena.php

File size: 298B
<?php
	function status_game_arena($count_team_1, $count_team_2, $time_start) {
		if ($time_start > time()) return 0; // Ожидаем начала боя
		else if ($count_team_1 == 0 OR $count_team_2 == 0) return 1; // Результат боя
		else return 2; // Тут бой
	}



?>