How would I go about doing that? Currently, the sandbox scoreboard sorts the player row based on who has the most kills, but I’d like to have them sorted randomly, but in teams.
Currently it’s like this:
function PANEL:HigherOrLower( row )
if ( !self.Player:IsValid() || self.Player:Team() == TEAM_CONNECTING ) then return false end if ( !row.Player:IsValid() || row.Player:Team() == TEAM_CONNECTING ) then return true end if ( self.Player:Frags() == row.Player:Frags() ) then return self.Player:Deaths() < row.Player:Deaths() end return self.Player:Frags() > row.Player:Frags()
So, could anyone help me make a scoreboard where it sorts the players based on their teams?