Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // vvv CONFIG vvv
- 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
- DBonus.RewardOnFirstJoin = true // true for a new player to be awarded on first join, false to not
- DBonus.LoginCooldown = 24 // how many HOURS before a player can advance to the next day
- DBonus.AllowChatCommandOpen = false // true to allow to open with a chat command
- DBonus.ChatCommand = "!dailyreward" // if allowed above, defines the chat command name
- DBonus.DelayedMenuOpen = 0 // how long should the menu wait before opening in SECONDS
- /*
- HOW TO ADD BONUS DAYS:
- USE ONE OF THE 4 TYPES(by default) - Cash for DarkRP, PointShopPoints for PS points, PointShopItem for PS items, Weapon for weapons
- COPY FROM UNDER THE TEMPLATE
- -- CASH TEMPLATE --
- DBonus:AddBonus({
- Day = 1,
- Type = "Cash",
- Amount = 500
- })
- -- POINTSHOP POINTS TEMPLATE --
- DBonus:AddBonus({
- Day = 1,
- Type = "PointShopPoints",
- Amount = 100
- })
- -- POINTSHOP ITEM TEMPLATE --
- DBonus:AddBonus({
- Day = 1,
- Type = "PointShopItem",
- ID = "some_pointshop_id_here", -- actual pointshop item id
- Name = "Fedora" --display name here
- })
- -- WEAPON TEMPLATE --
- DBonus:AddBonus({
- Day = 5,
- Type = "Weapon",
- Class = "weapon_pistol", -- weapon class name (name of the weapon folder name usually)
- Name = "HL2 Pistol" -- display name here
- })
- -- POINTSHOP 2 (by Kamshak) POINTS TEMPLATE --
- DBonus:AddBonus({
- Day = 1,
- Type = "PointShop2Points",
- Amount = 100
- })
- -- POINTSHOP 2 (by Kamshak) ITEM TEMPLATE --
- DBonus:AddBonus({
- Day = 1,
- Type = "PointShop2Item",
- ClassName = "some pointshop2 id here", -- actual pointshop item class name
- Name = "My item name" --display name here
- })
- PASTE YOUR DAILY LOGIN BONUS REWARDS UNDER THIS*/
- DBonus:AddBonus({ // < example, remove this if you don't want it
- Day = 1,
- Type = "cash",
- Amount = 10000
- })
- DBonus:AddBonus({
- Day = 2,
- Type = "Cash",
- Amount = 20000
- })
- /*
- More advanced Lua users: to add custom types, go to /autorun/sh_dailylogin.lua
- Add a custom draw function there on the table DBonus.RewardPaint with the index of "YourRewardTypeHere"
- When adding rewards with DBonus:AddBonus use the following template:
- DBonus:AddBonus({
- Day = 1,
- Type = "Your Type Here",
- SpawnFunc = function(ply, tbl) // use this function to define what happens when the player receives the reward
- //ply = player object, tbl = table you used in DBonus:AddBonus (ex: Day, Type, Amount.. etc)
- end
- })
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement