#include <AmxModX>
#include <ReApi>
const NeedRoundToSpawn = 15; // Нужное количество сыграных раундов для свапа и рестарта.
public plugin_init() {
register_plugin("[ReApi]: Swap Team", "1.0", "ImmortalAmxx");
RegisterHookChain(RG_RoundEnd, "RoundEnd_Post", true);
}
public RoundEnd_Post() {
if(get_member_game(m_iTotalRoundsPlayed) >= NeedRoundToSpawn) {
rg_swap_all_players();
server_cmd("sv_restart 1");
}
}