Team Kills To Win System

how can i make a line of code that says if a TEAM had 100 Kills in total, then to run a certain function?

[lua]if team.TotalFrags(A_TEAM) == 100 then
myFunc();
end[/lua]

**[Team.TotalFrags

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Team.TotalFrags)**