diff --git a/lua/autorun/server/pointsaving_mapstats.lua b/lua/autorun/server/pointsaving_mapstats.lua
index fa0d7c0..a7186db 100644
--- a/lua/autorun/server/pointsaving_mapstats.lua
+++ b/lua/autorun/server/pointsaving_mapstats.lua
@@ -56,11 +56,11 @@ local function resetVariables()
end
local function postStatistics(mapParams, timesPlayed, freqMult, zombiePercentCalcMap)
- PrintMessage(HUD_PRINTTALK,"This map has been played "..timesPlayed.." times with humans winning "..(mapParams.TimesWon).." times.("..(math.Round((mapParams.TimesWon/timesPlayed)*100)).."%)")
- PrintMessage(HUD_PRINTTALK,"Zombies were playing this map for "..math.Round(zombiePercentCalcMap * 100).."% of the time.")
- PrintMessage(HUD_PRINTTALK,"frequency multiplier for this map is "..freqMult..". play maps infrequently for a higher value!")
- PrintMessage(HUD_PRINTTALK,"Special boost for this map is "..(mapParams.Boost)..". tell an admin if you think it should be changed!")
- PrintMessage(HUD_PRINTTALK,"Map jackpot is now "..(mapParams.Jackpot)..".")
+ PrintMessage(HUD_PRINTTALK,"This map has been played "..timesPlayed.." times with humans winning "..(mapParams.TimesWon).." times.("..(math.Round((mapParams.TimesWon/timesPlayed)*100)).."%)")
+ PrintMessage(HUD_PRINTTALK,"Zombies were playing this map for "..math.Round(zombiePercentCalcMap * 100).."% of the time.")
+ PrintMessage(HUD_PRINTTALK,"frequency multiplier for this map is "..freqMult..". Play maps infrequently for a higher value!")
+ PrintMessage(HUD_PRINTTALK,"Special boost for this map is "..(mapParams.Boost)..". Tell an admin if you think it should be changed!")
+ PrintMessage(HUD_PRINTTALK,"Map jackpot is now "..(mapParams.Jackpot)..".")
end
-- TODO: When round is lost, take away points from human players that were there at the beginning of the game (All Human players that were there at the end of round 1, when late joiners join as zombies)
@@ -116,7 +116,7 @@ hook.Add("PostEndRound", "pointsave_givedapoints", function(winner)
-- Check if map was played enough times
if timesPlayed < settings.MinimumRounds then
- PrintMessage(HUD_PRINTTALK,"Sorry, this map needs to be played at least "..(settings.MinimumRounds - timesPlayed).." more times, before you can get points for winning.")
+ PrintMessage(HUD_PRINTTALK, "Sorry, this map needs to be played at least "..(settings.MinimumRounds - timesPlayed).." more times, before you can get points for winning.")
postStatistics(mapParams, timesPlayed, freqMult, zombiePercentCalcMap)
saveMapParams(mapParams)
resetVariables()
@@ -128,7 +128,7 @@ hook.Add("PostEndRound", "pointsave_givedapoints", function(winner)
if winner == TEAM_HUMAN then
local finalMultiply = (mapParams.Boost * freqMult * (mapParams.TimesLost / timesPlayed) * zombiePercentCalcMap)
- PrintMessage(HUD_PRINTTALK,"Congratulations, you won the jackpot of "..mapParams.Jackpot.." for winning this round")
+ PrintMessage(HUD_PRINTTALK, "Congratulations, you won the jackpot of "..mapParams.Jackpot.." for winning this round")
pointsToGive = math.Round((settings.EndroundPoints * finalMultiply) + mapParams.Jackpot)
mapParams.Jackpot = settings.JackpotStart
else
@@ -155,9 +155,9 @@ hook.Add("PostEndRound", "pointsave_givedapoints", function(winner)
ply:SetSavedPoints(points + pointsToGivePly)
-- Display message
if pointsToGivePly > 0 then
- ply:PrintMessage(HUD_PRINTTALK,"You gained "..(pointsToGivePly).." this round for playing to the end!")
+ ply:PrintMessage(HUD_PRINTTALK, "You gained "..(pointsToGivePly).." this round for playing to the end!")
elseif pointsToGivePly < 0 then
- ply:PrintMessage(HUD_PRINTTALK,"You lost "..(-pointsToGivePly).." points this round!")
+ ply:PrintMessage(HUD_PRINTTALK, "You lost "..(-pointsToGivePly).." points this round!")
end
end