Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PLAYER:PayWage()
- if (not self:IsValid()) then return end
- if (not self.Loaded) then return false end
- local bonus = 1
- local ecoCut = 1.5
- local citizen = 60
- local medic = 175
- local fireman = 175
- local police = 210
- local swat = 225
- local chief = 250
- local mayor = 300
- if self:IsPremium() then
- bonus = 1.50
- end
- if self:Team() == CLASS_CITIZEN then
- self:AddMoney(BANK,math.Round(( (citizen * bonus) + math.Round(GetGlobalInt("Eco_points") / ecoCut) )))
- self:Hint("You have received $"..math.Round(( (citizen * bonus) + math.Round(GetGlobalInt("Eco_points") / ecoCut) )).." for being a Citizen. It has been sent to your bank account.")
- elseif self:Team() == CLASS_POLICE then
- self:AddMoney(BANK, math.Round(( (police * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )) )
- self:Hint("You have received $"..math.Round(( (police * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )).." for being a Police officer. It has been sent to your bank account.")
- elseif self:Team() == CLASS_MEDIC then
- self:AddMoney(BANK, math.Round(( (medic * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )) )
- self:Hint("You have received $"..math.Round(( (medic * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )).." for being a Paramedic. It has been sent to your bank account.")
- elseif self:Team() == CLASS_FIREMAN then
- self:AddMoney(BANK, math.Round(( (fireman * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )) )
- self:Hint("You have received $"..math.Round(( (fireman * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )).." for being a Fire Fighter. It has been sent to your bank account.")
- elseif self:Team() == CLASS_SWAT then
- self:AddMoney(BANK, math.Round(( (swat * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )) )
- self:Hint("You have received $"..math.Round(( (swat * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )).." for being part of the SWAT team. It has been sent to your bank account.")
- elseif self:Team() == CLASS_CHIEF then
- self:AddMoney(BANK, math.Round(( (chief * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )) )
- self:Hint("You have received $"..math.Round(( (chief * bonus) +math.Round(GetGlobalInt("Eco_points") * ecoCut) )).." for being the police chief. It has been sent to your bank account.")
- elseif self:Team() == CLASS_MAYOR then
- self:AddMoney(BANK,math.Round(( (mayor * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )))
- self:Hint("You have received $"..math.Round(( (mayor * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )).." for being the Mayor of this city. It has been sent to your bank account.")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement