Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. /*****************
  2. * CONFIGURATIONS
  3. ******************/
  4.  
  5. if SERVER then
  6. resource.AddWorkshop("322897174")
  7. end
  8.  
  9. /*****************
  10. * ADDON CONFIG
  11. ******************/
  12. ----------------------------------
  13. -- PLEASE SET BASE OF YOUR GAMEMODE ( 2.5 (2.5.0 or 2.5.1) or 2.4 (2.4.3))
  14. SWM_GM_VERSION = 2.5
  15. -- Draw distance
  16. SWM_DISTANCE = 512
  17. -- Tools which helps players cut trees.
  18. SWM_CUTTING_TOOLS = {"swm_chopping_axe"}
  19. ----------------------------------
  20. /*****************
  21. * TREES CONFIG
  22. ******************/
  23. ----------------------------------
  24. -- Set tree's health.
  25. SWM_TREE_HEALTH = 20
  26. -- Respawning trees time.
  27. SWM_TREE_REPLACE_TIMER = 40
  28. -- Set Red tree's health
  29. SWM_TREE_RED_HEALTH = 23
  30. -- Respawning Red trees time
  31. SWM_TREE_RED_REPLACE_TIMER = 45
  32.  
  33. --Custom models for standart trees
  34. SWM_TREE_MODELS = {"models/props/de_inferno/tree_small.mdl"}
  35. --Custom models for Red trees
  36. SWM_TREE_RED_MODELS = {"models/props/CS_militia/tree_large_militia.mdl"}
  37. ----------------------------------
  38. /*****************
  39. * LOGS CONFIG
  40. ******************/
  41. ----------------------------------
  42. -- Price for one Log.
  43. SWM_LOG_PRICE = 15
  44. -- Removing log time which isn't used
  45. SWM_LOG_REMOVE_TIME = 200
  46. -- Maximum logs in cart.
  47. SWM_CART_MAX_LOGS = 15
  48. ----------------------------------
  49. /*****************
  50. * SAWMILL CONFIG
  51. ******************/
  52. ----------------------------------
  53. -- Sawing time.
  54. SWM_SAW_TIME = 5
  55. -- Safe mode. If you sets 'false' it will spawn money as entity, else money would be add to player.
  56. SWM_SAFEMODE = false
  57. -- Enable sawing effects.
  58. SWM_SAW_EFFECT = true
  59. ----------------------------------
  60.  
  61. function ENT:DrawTranslucent()
  62. if (self:GetNWInt("IsOn") == 1) then
  63. local Pos = self:GetPos()
  64. local Ang = self:GetAngles()
  65. local result = string.Explode("\n", self:GetNWString("Paper"))
  66. local money_wood = self:GetNWInt("Paper")
  67. local col = Color(255,255,255,255)
  68. local flash = math.abs(math.sin(CurTime()*10)*255)
  69. local money_woodclassn = paper.Get(result[1])
  70. if money_woodclassn ~= nil then
  71. col = Color(flash,50,50,255)
  72. pcol = Color(255,50,50,100)
  73. else
  74. col = Color(50,flash,50,255)
  75. pcol = Color(50,255,50,100)
  76. end
  77. if money == 1 then give "paper"
  78. col = Color(flash,flash,50,255)
  79. pcol = Color(255,255,50,100)
  80. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement