So is this how I would test for players on Prophunts teams:
[CODE]
local Hunters = team.GetPlayers( TEAM_HUNTERS )
local Props = team.GetPlayers( TEAM_PROPS )
for k, v inpairs( player.GetAll() ) do
if ( Hunters > Props ) then
v:SetTeam( TEAM_PROPS )
v:PrintMessage( HUD_PRINTTALK, "You were changed to Props!" )
elseif ( Props > Hunters ) then
v:SetTeam( TEAM_HUNTERS )
v:PrintMessage( HUD_PRINTTALK, "You were changed to Hunters!" )
end
end[/CODE]
I wan't to pick 1 player, to join the other team, to balance it. How?
Do you really have to run a query through all players? Especially with no [b]break[/b]
Sorry, you need to Log In to post a reply to this thread.