Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.00 KB | None | 0 0
  1. function PLAYER:PayWage()
  2.         if (not self:IsValid()) then return end
  3.         if (not self.Loaded) then return false end
  4.         local bonus = 1
  5.     local ecoCut = 1.5
  6.     local citizen = 60
  7.     local medic = 175
  8.     local fireman = 175
  9.     local police = 210
  10.     local swat = 225
  11.     local chief = 250
  12.     local mayor = 300
  13.         if self:IsPremium() then
  14.                 bonus = 1.50
  15.         end
  16.        
  17.         if self:Team() == CLASS_CITIZEN then
  18.                 self:AddMoney(BANK,math.Round(( (citizen * bonus) + math.Round(GetGlobalInt("Eco_points") / ecoCut) )))
  19.                 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.")              
  20.         elseif self:Team() == CLASS_POLICE then
  21.                 self:AddMoney(BANK, math.Round(( (police * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )) )
  22.                 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.")              
  23.         elseif self:Team() == CLASS_MEDIC then
  24.                 self:AddMoney(BANK, math.Round(( (medic * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )) )
  25.                 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.")
  26.         elseif self:Team() == CLASS_FIREMAN then
  27.                 self:AddMoney(BANK, math.Round(( (fireman * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )) )
  28.                 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.")
  29.         elseif self:Team() == CLASS_SWAT then
  30.                 self:AddMoney(BANK, math.Round(( (swat * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )) )
  31.                 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.")  
  32.         elseif self:Team() == CLASS_CHIEF then
  33.                 self:AddMoney(BANK, math.Round(( (chief * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )) )
  34.                 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.")        
  35.         elseif self:Team() == CLASS_MAYOR then
  36.                 self:AddMoney(BANK,math.Round(( (mayor * bonus) + math.Round(GetGlobalInt("Eco_points") * ecoCut) )))
  37.                 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.")
  38.         end
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement