Garry's Mod Wiki

team.TotalDeaths

  number team.TotalDeaths( number index )

Description

Returns the total number of deaths of all players in the team.

Arguments

1 number index
The team index.

Returns

1 number
Total deaths in team.

Example

Outputs the name and total deaths of all existing teams.

for k, v in ipairs( team.GetAllTeams() ) do print( v.Name, team.TotalDeaths( k ) ) end