TTT New Roles Stats

This Garrys Mod Addon is for anyone who is playing Trouble in terrorist town with the new roles added.
TTT New Roles Stats is a complete analytics and statistic plugin to allow server admins and also the players to get a breakdown (by role) of their wins and losses

This Addon Works out everyone’s wins and losses over the games they have played and records them and then splits it down to what roles they were so you can compare and discuss (argue) who was the best Detective, Swapper, Killer or Traitor (all the roles are supported) with the help of these statistics

This addon allows server and players that are using the additional roles addon to get a full set of stats from the server.

The server admin can type in the command that makes the addon export all players stats to a file in the server folder. from this they can perform some basic spreadsheet work to produce some graphs and charts that they can post to their server players so they can see how well they are performing over their fellow players on the server 

Use this addon along side our Assassin Target addon, they both work really well together and it can help boost your assassin score Assassin Target

TTT New Roles Stats works both on client and Server side

works with the TTT addon “Custom Roles for TTT”
https://steamcommunity.com/sharedfiles/filedetails/?id=1215502383

Many thanks to AutomaticFrenzy for his TTT Statistics Adon that gave me the building basics for this mod
https://steamcommunity.com/sharedfiles/filedetails/?id=477978068

TTT Stats

##Commands for TTT New Roles Stats##

tstat_print
Server- prints everyones stats to server and also to text.txt file in data

tstat_enabled (def 1)
Server- Sets whether the addon records the current rounds

tstat_min_players (def 5)
Server- Minimum players to start recording.

tstat_me
Client- sends your stats to your player console


Link to TTT New Roles Stats Addon