Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2014
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.59 KB | None | 0 0
  1. ------------------Lua make by Deadlox-----------------
  2. ------------------USGN: 121114 & Deadlox995----------
  3.  
  4. ms={}
  5.  
  6. function initArray(m)
  7.      local array = {}
  8.      for i = 1, m do
  9.           array[i]=0
  10.      end
  11.      return array
  12. end
  13. ms.money=initArray(32)
  14.  
  15. function ms.moneyshow(id)
  16.      parse('hudtxt2 '..id..' 1 "©255255255Ammo Packs: ©255000000'..ms.money[id]..' " 13 200')
  17. end
  18.  
  19. addhook ("serveraction","ser")
  20. function ser(id,action)
  21. if player(id,"team")== 1 then
  22. if action == 1 then
  23.           ms.shopzm(id)
  24. end
  25. end
  26. end
  27.  
  28. function ms.shopzm(id)
  29.      menu(id,"Zombie Shop,GutBomd|5,Armor|10,Chainsaw|15,Zombie madness|20,RPG|50")
  30.  
  31. end
  32.  
  33. addhook ("menu","ms.buy")
  34. function ms.buy(id,title,sel)
  35.      if title == "Zombie Shop" then
  36.           if sel == 1 then
  37.                if ms.money[id] > 4 then
  38.                     parse("equip "..id.." 86")
  39.                     msg2(id,"©000255000You've buy GutBomd!")
  40.                     ms.money[id]=ms.money[id]-5
  41.                     ms.moneyshow(id)
  42.                else
  43.                     msg2(id,"©255000000You have not enouch Ammo Packs!")
  44.                end
  45.           end
  46.           if sel == 2 then
  47.                if ms.money[id] > 9 then
  48.                     parse("equip "..id.." 80")
  49.                     msg2(id,"©000255000You've buy Armor!")
  50.                     ms.money[id]=ms.money[id]-10
  51.                     ms.moneyshow(id)
  52.                else
  53.                     msg2(id,"©255000000You have not enouch Ammo Pack!")
  54.                end
  55.           end
  56.           if sel == 3 then
  57.                if ms.money[id] > 14 then
  58.                     parse("equip "..id.." 85")
  59.                     msg2(id,"©000255000You've buy Chainsaw!")
  60.                     ms.money[id]=ms.money[id]-15
  61.                     ms.moneyshow(id)
  62.                else
  63.                     msg2(id,"©255000000You have not enouch Ammo Pack!")
  64.                end
  65.           end
  66.           if sel == 4 then
  67.                if ms.money[id] > 19 then
  68.                     parse("setmaxealth "..id.." 250")
  69. parse("speedmod "..id.." 6")
  70.                     msg2(id,"©000255000You've Zombie madness!")
  71.                     ms.money[id]=ms.money[id]-20
  72.                     ms.moneyshow(id)
  73.                else
  74.                     msg2(id,"©255000000You have not enouch Ammo Pack!")
  75.                end
  76.           end
  77.           if sel == 5 then
  78.                if ms.money[id] > 49 then
  79.                     parse("equip "..id.." 47")
  80.                     msg2(id,"©000255000You've buy RPG!")
  81.                     ms.money[id]=ms.money[id]-50
  82.                     ms.moneyshow(id)
  83.                else
  84.                     msg2(id,"©255000000You have not enouch Ammo Packs!")
  85.                end
  86.            end
  87.          
  88.     end
  89. end
  90.  
  91.  
  92. addhook ("serveraction","ser2")
  93. function ser2(id,action)
  94. if player(id,"team")== 2 then
  95. if action == 1 then
  96.           ms.shophm(id)
  97. end
  98. end
  99. end
  100.  
  101. function ms.shophm(id)
  102.      menu(id,"Human Shop,HE|1,Boot Speed|5,Chainsaw|10,Medic Armor|13,FN2000|15")
  103. end
  104.  
  105.  
  106. addhook ("menu","ms.buy")
  107. function ms.buy(id,title,sel)
  108.      if title == "human Shop" then
  109.           if sel == 1 then
  110.                if ms.money[id] > 0 then
  111.                     parse("equip "..id.." 51")
  112.                     msg2(id,"©000255000You've buy HE!")
  113.                     ms.money[id]=ms.money[id]-1
  114.                     ms.moneyshow(id)
  115.                else
  116.                     msg2(id,"©255000000You have not enouch Ammo Packs!")
  117.                end
  118.           end
  119.           if sel == 2 then
  120.                if ms.money[id] > 9 then
  121.                     parse("speedmod "..id.." 85")
  122.                     msg2(id,"©000255000You've buy Chiansaw!")
  123.                     ms.money[id]=ms.money[id]-10
  124.                     ms.moneyshow(id)
  125.                else
  126.                     msg2(id,"©255000000You have not enouch Ammo Pack!")
  127.                end
  128.           end
  129.           if sel == 3 then
  130.                if ms.money[id] > 9 then
  131.                     parse("equip "..id.." 85")
  132.                     msg2(id,"©000255000You've buy Chainsaw!")
  133.                     ms.money[id]=ms.money[id]-10
  134.                     ms.moneyshow(id)
  135.                else
  136.                     msg2(id,"©255000000You have not enouch Ammo Pack!")
  137.                end
  138.           end
  139.           if sel == 4 then
  140.                if ms.money[id] > 12 then
  141.                     parse("equip "..id.." 83")
  142. msg2(id,"©000255000You've buy Medic Armor!")
  143.                     ms.money[id]=ms.money[id]-13
  144.                     ms.moneyshow(id)
  145.                else
  146.                     msg2(id,"©255000000You have not enouch Ammo Pack!")
  147.                end
  148.           end
  149.           if sel == 5 then
  150.                if ms.money[id] > 14 then
  151.                     parse("equip "..id.." 91")
  152.                     msg2(id,"©000255000You've buy FN2000!")
  153.                     ms.money[id]=ms.money[id]-15
  154.                     ms.moneyshow(id)
  155.                else
  156.                     msg2(id,"©255000000You have not enouch Ammo Packs!")
  157.                end
  158.            end
  159.          
  160.      end
  161. end
  162.  
  163. addhook("spawn","ms.spawn")
  164. function ms.spawn(id)
  165.      ms.moneyshow(id)
  166. end
  167.  
  168. addhook("kill","ms.kill")
  169. function ms.kill(id)
  170.      ms.money[id]=ms.money[id]+30
  171.      ms.moneyshow(id)
  172. end
  173.  
  174. addhook("die","ms.die")
  175. function ms.die(id)
  176.      ms.money[id]=ms.money[id]-0
  177.      ms.moneyshow(id)
  178. end
  179.  
  180. addhook("minute","minute_shop")
  181. function minute_shop()
  182.      msg("©255255255Have Fun! Thanks For Playing!")
  183.      msg("©000255000Vist Us At ©255255255www.knifeuser.lolbb.com!")
  184.      msg("©000255000LUA make by Deadlox")
  185. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement