Fixed Auto Rank Again

This commit is contained in:
Cooldude2606
2017-06-23 16:05:48 +01:00
parent 2d51a80d33
commit cb65c63d20

View File

@@ -139,8 +139,8 @@ function autoRank(player)
if Break then break end
end
if playerAutoRank == nil then
if ticktominutes(player.online_time) >= timeForVeteran then playerAutoRank = stringToRank('Veteran') end
if ticktominutes(player.online_time) >= timeForRegular then playerAutoRank = stringToRank('Regular') end
if ticktominutes(player.online_time) >= timeForVeteran then playerAutoRank = stringToRank('Veteran')
elseif ticktominutes(player.online_time) >= timeForRegular then playerAutoRank = stringToRank('Regular') end
playerAutoRank = playerAutoRank or stringToRank('Guest')
end
if currentRank.name ~='Jail' and currentRank.power > playerAutoRank.power or currentRank.name == 'Guest' then