#include <amxmodx>
#include <reapi>
new g_iRound;
public plugin_init()
{
RegisterHookChain(RG_CSGameRules_RestartRound, "@CSGRules_RestartRound_Pre", .post = false);
}
@CSGRules_RestartRound_Pre()
{
if(get_member_game(m_bCompleteReset))
{
g_iRound = 0;
}
if(++g_iRound >= 16)
{
rg_swap_all_players();
//server_cmd("sv_restartround 3");
g_iRound = 0;
}
}