+#include "../../common/command/command.qh"
#include "sv_cmd.qh"
-#include "../_.qh"
+#include "../_all.qh"
#include "banning.qh"
#include "cmd.qh"
#include "../../common/teams.qh"
#include "../../common/util.qh"
-#include "../../common/command/shared_defs.qh"
-
#include "../../common/monsters/sv_monsters.qh"
#include "../../warpzonelib/mathlib.qh"
// count the total amount of players and total amount of teams
t_players = 0;
t_teams = 0;
- FOR_EACH_PLAYER(tmp_player)
+ FOR_EACH_CLIENT(tmp_player)
+ if(IS_PLAYER(tmp_player) || tmp_player.caplayer)
{
CheckAllowedTeams(tmp_player);
}
// build a list of the players in a random order
- FOR_EACH_PLAYER(tmp_player)
+ FOR_EACH_CLIENT(tmp_player)
+ if(IS_PLAYER(tmp_player) || tmp_player.caplayer)
{
for (;;)
{