Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*****************
- * CONFIGURATIONS
- ******************/
- if SERVER then
- resource.AddWorkshop("322897174")
- end
- /*****************
- * ADDON CONFIG
- ******************/
- ----------------------------------
- -- PLEASE SET BASE OF YOUR GAMEMODE ( 2.5 (2.5.0 or 2.5.1) or 2.4 (2.4.3))
- SWM_GM_VERSION = 2.5
- -- Draw distance
- SWM_DISTANCE = 512
- -- Tools which helps players cut trees.
- SWM_CUTTING_TOOLS = {"swm_chopping_axe"}
- ----------------------------------
- /*****************
- * TREES CONFIG
- ******************/
- ----------------------------------
- -- Set tree's health.
- SWM_TREE_HEALTH = 20
- -- Respawning trees time.
- SWM_TREE_REPLACE_TIMER = 40
- -- Set Red tree's health
- SWM_TREE_RED_HEALTH = 23
- -- Respawning Red trees time
- SWM_TREE_RED_REPLACE_TIMER = 45
- --Custom models for standart trees
- SWM_TREE_MODELS = {"models/props/de_inferno/tree_small.mdl"}
- --Custom models for Red trees
- SWM_TREE_RED_MODELS = {"models/props/CS_militia/tree_large_militia.mdl"}
- ----------------------------------
- /*****************
- * LOGS CONFIG
- ******************/
- ----------------------------------
- -- Price for one Log.
- SWM_LOG_PRICE = 15
- -- Removing log time which isn't used
- SWM_LOG_REMOVE_TIME = 200
- -- Maximum logs in cart.
- SWM_CART_MAX_LOGS = 15
- ----------------------------------
- /*****************
- * SAWMILL CONFIG
- ******************/
- ----------------------------------
- -- Sawing time.
- SWM_SAW_TIME = 5
- -- Safe mode. If you sets 'false' it will spawn money as entity, else money would be add to player.
- SWM_SAFEMODE = false
- -- Enable sawing effects.
- SWM_SAW_EFFECT = true
- ----------------------------------
- function ENT:DrawTranslucent()
- if (self:GetNWInt("IsOn") == 1) then
- local Pos = self:GetPos()
- local Ang = self:GetAngles()
- local result = string.Explode("\n", self:GetNWString("Paper"))
- local money_wood = self:GetNWInt("Paper")
- local col = Color(255,255,255,255)
- local flash = math.abs(math.sin(CurTime()*10)*255)
- local money_woodclassn = paper.Get(result[1])
- if money_woodclassn ~= nil then
- col = Color(flash,50,50,255)
- pcol = Color(255,50,50,100)
- else
- col = Color(50,flash,50,255)
- pcol = Color(50,255,50,100)
- end
- if money == 1 then give "paper"
- col = Color(flash,flash,50,255)
- pcol = Color(255,255,50,100)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement