Quote:
Originally Posted by DarkT1
??
|
Don't bump your thread until 2 weeks have passed.
Untested:
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
new RoundCount;
new pCvarSwap;
public plugin_init() {
register_event("HLTV", "Round_Start", "a", "1=0", "2=0");
pCvarSwap = register_cvar("amx_swap", "0");
}
public Round_Start() {
if(get_pcvar_num(pCvarSwap)) {
RoundCount++;
if(RoundCount > 2) {
new iPlayers[32], iNum;
get_players(iPlayers, iNum, "ch")
for(--iNum; iNum>=0; iNum--)
{
switch(cs_get_user_team(iPlayers[iNum]))
{
case CS_TEAM_CT: {
cs_set_user_team(iPlayers[iNum], CS_TEAM_T);
}
case CS_TEAM_T: {
cs_set_user_team(iPlayers[iNum], CS_TEAM_CT);
}
}
}
}
RoundCount = 0;
}
}
__________________