MYTHARP-Merlin

sh_config.lua

Jul 23rd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. PS.Config.CalculateBuyPrice = function(ply, item)
  2.    
  3.     Everything half price for admins:
  4.     if ply:IsAdmin() then return math.Round(item.Price * 0.5) end
  5.    
  6.     25% off for the 'donator' group
  7.     if ply:IsUserGroup('donator') then return math.Round(item.Price * 0.75) end
  8.    
  9.     40% off for the 'superdonator' group
  10.     if ply:IsUserGroup('superdonator') then return math.Round(item.Price * 0.75) end
  11.    
  12.     return item.Price
  13. end
Add Comment
Please, Sign In to add comment