function calculatePoints(rank, pc, mode) if not pc then pc = g_playerCount end if not mode then mode = g_mode end local points if mode == 1 then -- Race points = math.floor(pc - rank) elseif mode == 2 then -- DD points = math.floor(pc - rank) elseif mode == 3 then -- DM points = math.floor(pc - rank) end return points end function calculateMoney(rank, pc, mode) if not pc then pc = g_playerCount end if not mode then mode = g_mode end local money if mode == 1 then -- Race money = (pc - rank) * 250 elseif mode == 2 then -- DD money = (pc - rank) * 250 elseif mode == 3 then -- DM money = (pc - rank) * 250 end return money end