Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function payCheck(job, pay, vol) -- String, Base Pay, Volatility (vol*eco_points)
- local bonus = 1
- if self:IsPremium() then
- bonus = 1.50
- end
- local pay = math.Round(( (pay * bonus) + math.Round(GetGlobalInt("Eco_points") * vol) ))
- if pay >= 1)
- self:AddMoney(BANK, pay)
- self:Hint("You have received $"..pay.." for being "..job.. ". It has been sent to your bank account.")
- end
- -- failsafe in case any checks go below 0. dont want people losing money for working.
- if pay <= 0
- self:Hint("The economy is too low and cannot afford to pay your wages.")
- end
- function PLAYER:PayWage()
- if (not self:IsValid()) then return end
- if (not self.Loaded) then return false end
- -- MAX hourly for growing w/ prem ~55,000
- if self:Team() == CLASS_CITIZEN then
- payCheck("a Citizen", 60, 1) -- MAX hourly w/ prem 5,600 REALISTIC 4,480
- elseif self:Team() == CLASS_POLICE then
- payCheck("a Policeman", 350, 7) -- MAX hourly w/ prem 35,000 REALISTIC 26,800
- elseif self:Team() == CLASS_MEDIC then
- payCheck("a Medic", 325, 7) -- MAX hourly w/ prem 33,500 REALISTIC 26,800
- elseif self:Team() == CLASS_FIREMAN then
- payCheck("a Firefighter", 325, 7) -- MAX hourly w/ prem 33,500 REALISTIC 26,800
- elseif self:Team() == CLASS_SWAT then
- payCheck("a member of the Swat Team", 350, 7) -- MAX hourly w/ prem 35,000 REALISTIC 28,000
- elseif self:Team() == CLASS_CHIEF then
- payCheck("the Police Chief", 400, 8) -- MAX hourly w/ prem 40,000 REALISTIC 32,000
- elseif self:Team() == CLASS_MAYOR then
- payCheck("the Mayor of Evocity", 500, 9) -- MAX hourly w/ prem 48,000 REALISTIC 38,000
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement