fixed regular auto rank

This commit is contained in:
Cooldude2606
2017-06-17 16:38:03 +01:00
parent 236c4b5fb8
commit 2d51a80d33

View File

@@ -139,9 +139,9 @@ 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')
else playerAutoRank = stringToRank('Guest') end
playerAutoRank = playerAutoRank or stringToRank('Guest')
end
if currentRank.name ~='Jail' and currentRank.power > playerAutoRank.power or currentRank.name == 'Guest' then
if playerAutoRank.name == 'Guest' then