zombs = getaispeciesarray("axis"); for(i=0;i<zombs.size;i++) { zombs[i] delete(); //removes all currently spawned in zombies }
maps\_zombiemode_powerups::powerup_round_start(); //restarts the amount of powerups you can earn this round array_thread( players, maps\_zombiemode_blockers_new::rebuild_barrier_reward_reset ); //restarts your barrier points this round level thread round_spawning();
players = get_players(); for( i = 0; i < players.size; i++ ) //respawns you back in and gives you your weapons back { players[i] spectator_respawn(); players[i] [[level.spawnPlayer]](); while(1) { if(players[i] hasWeapon("zombie_colt")) { players[i] maps\_laststand::laststand_giveback_player_weapons(); if( isDefined( players[i].has_altmelee ) && players[i].has_altmelee ) { players[i] SetPerk( "specialty_altmelee" ); } level thread award_grenades_for_survivors(); //get 2 extra grenades when you spawn back in, optional break; } wait(0.05); } } iprintlnbold("You have been given another chance"); //message letting you know the round restarted, optional }
The problem is that the amount of zombies and zombies health increases when the round restarts. When I used a println to show the amount of zombies left for the round, it showed the right amount of zombies that were supposed to be in the round, but there were actually more zombies spawning in then that and when I killed enough zombies over the round amount, then the println would go negative.
If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time
Trie to add this i don't know if it will work i am a beginner in scripting but i think that "level.zombie_total" is vars who control the numbers of zombies that will spawn in a round