entity spawnqueue_first;
entity spawnqueue_last;
entity champion;
+string champion_name;
float warmup;
float allowed_to_spawn;
float ca_players;
if(g_ca)
if(champion && champion.classname == "player" && player_count > 1)
- TeamScore_AddToTeam(champion.team, SP_SCORE, 1);
+ TeamScore_AddToTeam(champion.team, ST_SCORE, +1);
self = oldself;
}
return;
f = ceil(warmup - time);
- if(f <= 0)
+ if(f > 0)
champion = world; // this is done because a if(champion) will not execute if champion = world
allowed_to_spawn = 0;
if (g_ca)
allowed_to_spawn = 1;
if(champion && g_arena)
- msg = strcat("The Champion is ", champion.netname, "^7\n");
+ msg = strcat("The Champion is ", champion_name, "^7\n");
//centerprint(self, strcat(msg, "The Champion is ", champion.netname, "^7\n"));
if(f != roundStartTime_prev) {
next_round = time + 5;
champion = find(world, classname, "player");
+ if(champion_name)
+ strunzone(champion_name);
+ champion_name = strzone(champion.netname);
string champion_team;
if(champion.team == COLOR_TEAM1) {
champion_team = "^1Red team";