Advertisement
Guest User

heavy

a guest
Jan 30th, 2010
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. --[[
  2. Made by teh Unrealsoftware.de User "Heavy"
  3. Rule no 1: Do what ever you want with this script. But dont claim this as your own!
  4.  
  5. #######################
  6. Changelog v1.1:
  7. #######################
  8. [ADDED] disabling/enabling money
  9. [FIXED] mines didn't work
  10. [FIXED] building sometimes didn't work (if this still doesn't work ,try disabling other buildingluascripts)
  11. [FIXED] you weren't able to see whose building it is/was
  12. [CHANGED] code cleaned up a bit
  13.  
  14. #######################
  15. Changelog v1.2:
  16. #######################
  17. [FIXED] Supply didn't "gave" standardly HE's
  18.  
  19.  
  20. ENABLE/DISABLE Stuff (Note: 1 means enabled and 0 means disabled ]]--
  21. fastbuild=1
  22. unlimitedbuild=1
  23. money=0
  24.  
  25.  
  26. -- FastBuild:
  27.  
  28. addhook("build","fb")
  29.  
  30. function fb(id,type,x,y)
  31.  
  32. function spawnobject()
  33. parse("spawnobject "..type.." "..x.." "..y.." 0 1 "..player(id,"team").." "..id);
  34. end
  35.  
  36. function checkmoney(mmoney)
  37. if(money==1) then
  38. parse("setmoney "..id.." "..player(id,"money")-mmoney);
  39. end
  40. end
  41.  
  42. if (fastbuild==1) then
  43. if(type==1) and (player(id,"money")>=300) then
  44. spawnobject()
  45. checkmoney(300)
  46. elseif(type==2) and (player(id,"money")>=500) then
  47. spawnobject()
  48. checkmoney(500)
  49. elseif(type==3) and (player(id,"money")>=1000) then
  50. spawnobject()
  51. checkmoney(1000)
  52. elseif(type==4) and (player(id,"money")>=2000) then
  53. spawnobject()
  54. checkmoney(2000)
  55. elseif(type==5) and (player(id,"money")>=3000) then
  56. spawnobject()
  57. checkmoney(3000)
  58. elseif(type==6) and (player(id,"money")>=1500) then
  59. spawnobject()
  60. checkmoney(1500)
  61. elseif(type==7) and (player(id,"money")>=5000) then
  62. spawnobject()
  63. checkmoney(5000)
  64. elseif(type==8) and (player(id,"money")>=5000) then
  65. spawnobject()
  66. checkmoney(5000)
  67. elseif(type==9) and (player(id,"money")>=5000) then
  68. spawnobject()
  69. checkmoney(5000)
  70. elseif(type==13) and (player(id,"money")>=3000) then
  71. spawnobject()
  72. checkmoney(3000)
  73. elseif(type==14) and (player(id,"money")>=3000) then
  74. spawnobject()
  75. checkmoney(5000)
  76. elseif(type==20) then -- Mines...
  77. spawnobject()
  78. end
  79. return 1
  80. else
  81. return 0
  82. end
  83. end
  84.  
  85. -- UnlimitedBuild:
  86.  
  87. if (unlimitedbuild==1) then
  88. parse('mp_building_limit "Barricade" 10000');
  89. parse('mp_building_limit "Barbed Wire" 10000');
  90. parse('mp_building_limit "Wall I" 10000');
  91. parse('mp_building_limit "Wall II" 10000');
  92. parse('mp_building_limit "Wall III" 10000');
  93. parse('mp_building_limit "Gate Field" 10000');
  94. parse('mp_building_limit "Turret" 10000');
  95. parse('mp_building_limit "Dispenser" 10000');
  96. parse('mp_building_limit "Supply" 10000');
  97. parse('mp_building_limit "Teleporter Entrance" 10000');
  98. parse('mp_building_limit "Teleporter Exit" 10000');
  99. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement