Advertisement
Guest User

Untitled

a guest
Apr 24th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. PS.Config = {}
  2.  
  3. -- Edit below
  4.  
  5. PS.Config.CommunityName = "Item Shop"
  6.  
  7. PS.Config.DataProvider = 'pdata'
  8.  
  9. PS.Config.Branch = 'https://raw.github.com/adamdburton/pointshop/master/' -- Master is most stable, used for version checking.
  10. PS.Config.CheckVersion = true -- Do you want to be notified when a new version of Pointshop is avaliable?
  11.  
  12. PS.Config.ShopKey = 'F3' -- F1, F2, F3 or F4, or blank to disable
  13. PS.Config.ShopCommand = 'ps_shop' -- Console command to open the shop, set to blank to disable
  14. PS.Config.ShopChatCommand = '!shop' -- Chat command to open the shop, set to blank to disable
  15.  
  16. PS.Config.NotifyOnJoin = false -- Should players be notified about opening the shop when they spawn?
  17.  
  18. PS.Config.PointsOverTime = true -- Should players be given points over time?
  19. PS.Config.PointsOverTimeDelay = 2 -- If so, how many minutes apart?
  20. PS.Config.PointsOverTimeAmount = 10 -- And if so, how many points to give after the time?
  21.  
  22. PS.Config.PointsOverTimeAmountSilver = 20
  23. Ps.Config.PointsOverTimeAmountDiamond = 35
  24.  
  25. PS.Config.AdminCanAccessAdminTab = false -- Can Admins access the Admin tab?
  26. PS.Config.SuperAdminCanAccessAdminTab = false -- Can SuperAdmins access the Admin tab?
  27.  
  28. PS.Config.CanPlayersGivePoints = true -- Can players give points away to other players?
  29. PS.Config.DisplayPreviewInMenu = true -- Can players see the preview of their items in the menu?
  30.  
  31. PS.Config.PointsName = 'Points' -- What are the points called?
  32. PS.Config.SortItemsBy = 'Name' -- How are items sorted? Set to 'Price' to sort by price.
  33.  
  34. -- Edit below if you know what you're doing
  35.  
  36. PS.Config.CalculateBuyPrice = function(ply, item)
  37. -- You can do different calculations here to return how much an item should cost to buy.
  38. -- There are a few examples below, uncomment them to use them.
  39.  
  40. -- Everything half price for admins:
  41. -- if ply:IsAdmin() then return math.Round(item.Price * 0.5) end
  42.  
  43. -- 15% off for the 'Isis' group
  44. if ply:IsUserGroup('isis') then return math.Round(item.Price * 0.85) end
  45.  
  46. -- 35% off for the 'Gay Flying Seals' group
  47. if ply:IsUserGroup('gfs') then return math.Round(item.Price * 0.75) end
  48.  
  49. return item.Price
  50. end
  51.  
  52. PS.Config.CalculateSellPrice = function(ply, item)
  53. return math.Round(item.Price * 0.25) -- 75% or 3/4 (rounded) of the original item price
  54. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement