if (get_alive_players() >= 5) { // your code...l } get_alive_players() { static alive, id; alive = 0; for (id = 1; id <= get_maxplayers(); id++) { if (is_user_alive(id)) alive++; } return alive; }