share/hedgewars/Data/Scripts/Multiplayer/Capture_the_Flag.lua
changeset 14578 50f511588635
parent 13643 690cc84e9fd6
child 14989 5188ecbf726f
equal deleted inserted replaced
14577:221380cdee7e 14578:50f511588635
   169 			return a.score > b.score
   169 			return a.score > b.score
   170 		end
   170 		end
   171 		table.sort(teamList, teamRank)
   171 		table.sort(teamList, teamRank)
   172 
   172 
   173 		for i=1, #teamList do
   173 		for i=1, #teamList do
   174 			SendStat(siPointType, loc("point(s)"))
   174 			SendStat(siPointType, "!POINTS")
   175 			SendStat(siPlayerKills, tostring(teamList[i].score), teamList[i].name)
   175 			SendStat(siPlayerKills, tostring(teamList[i].score), teamList[i].name)
   176 		end
   176 		end
   177 
   177 
   178 		if mostCaptures >= 2 then
   178 		if mostCaptures >= 2 then
   179 			SendStat(siCustomAchievement, string.format(loc("%s (%s) has captured the flag %d times."), mostCapturesHogName, mostCapturesHogTeam, mostCaptures))
   179 			SendStat(siCustomAchievement, string.format(loc("%s (%s) has captured the flag %d times."), mostCapturesHogName, mostCapturesHogTeam, mostCaptures))