Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. // vvv CONFIG vvv
  2. DBonus.ResetAfterMaxDay = false // true to reset after it reaches the last day Ex: after day 7 it goes back to day 1, false to not
  3.  
  4. DBonus.RewardOnFirstJoin = true // true for a new player to be awarded on first join, false to not
  5.  
  6. DBonus.LoginCooldown = 24 // how many HOURS before a player can advance to the next day
  7.  
  8. DBonus.AllowChatCommandOpen = false // true to allow to open with a chat command
  9. DBonus.ChatCommand = "!dailyreward" // if allowed above, defines the chat command name
  10.  
  11. DBonus.DelayedMenuOpen = 0 // how long should the menu wait before opening in SECONDS
  12.  
  13.  
  14. /*
  15. HOW TO ADD BONUS DAYS:
  16. USE ONE OF THE 4 TYPES(by default) - Cash for DarkRP, PointShopPoints for PS points, PointShopItem for PS items, Weapon for weapons
  17.  
  18. COPY FROM UNDER THE TEMPLATE
  19.  
  20. -- CASH TEMPLATE --
  21. DBonus:AddBonus({
  22. Day = 1,
  23. Type = "Cash",
  24. Amount = 500
  25. })
  26.  
  27. -- POINTSHOP POINTS TEMPLATE --
  28. DBonus:AddBonus({
  29. Day = 1,
  30. Type = "PointShopPoints",
  31. Amount = 100
  32. })
  33.  
  34. -- POINTSHOP ITEM TEMPLATE --
  35. DBonus:AddBonus({
  36. Day = 1,
  37. Type = "PointShopItem",
  38. ID = "some_pointshop_id_here", -- actual pointshop item id
  39. Name = "Fedora" --display name here
  40. })
  41.  
  42. -- WEAPON TEMPLATE --
  43. DBonus:AddBonus({
  44. Day = 5,
  45. Type = "Weapon",
  46. Class = "weapon_pistol", -- weapon class name (name of the weapon folder name usually)
  47. Name = "HL2 Pistol" -- display name here
  48. })
  49.  
  50. -- POINTSHOP 2 (by Kamshak) POINTS TEMPLATE --
  51. DBonus:AddBonus({
  52. Day = 1,
  53. Type = "PointShop2Points",
  54. Amount = 100
  55. })
  56.  
  57. -- POINTSHOP 2 (by Kamshak) ITEM TEMPLATE --
  58. DBonus:AddBonus({
  59. Day = 1,
  60. Type = "PointShop2Item",
  61. ClassName = "some pointshop2 id here", -- actual pointshop item class name
  62. Name = "My item name" --display name here
  63. })
  64.  
  65. PASTE YOUR DAILY LOGIN BONUS REWARDS UNDER THIS*/
  66.  
  67. DBonus:AddBonus({ // < example, remove this if you don't want it
  68. Day = 1,
  69. Type = "cash",
  70. Amount = 10000
  71. })
  72. DBonus:AddBonus({
  73. Day = 2,
  74. Type = "Cash",
  75. Amount = 20000
  76. })
  77.  
  78.  
  79.  
  80.  
  81. /*
  82. More advanced Lua users: to add custom types, go to /autorun/sh_dailylogin.lua
  83. Add a custom draw function there on the table DBonus.RewardPaint with the index of "YourRewardTypeHere"
  84.  
  85. When adding rewards with DBonus:AddBonus use the following template:
  86. DBonus:AddBonus({
  87. Day = 1,
  88. Type = "Your Type Here",
  89. SpawnFunc = function(ply, tbl) // use this function to define what happens when the player receives the reward
  90. //ply = player object, tbl = table you used in DBonus:AddBonus (ex: Day, Type, Amount.. etc)
  91.  
  92. end
  93. })
  94. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement