Advertisement
Guest User

[US] [CS2D] [Lua] Thread(15-03-04): ArgentinaMaster

a guest
Mar 5th, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.09 KB | None | 0 0
  1. addhook ("say","say_adms")
  2. function say_adms(id,txt)
  3.      if (txt=="!cmds") then
  4.           msg2 (id,"!goto <id>")
  5.           msg2 (id,"!bring <id>")
  6.           msg2 (id,"!goto <id>")
  7.           msg2 (id,"!burn <id> (If dead no burn again!)")
  8.           msg2 (id,"!kick <id>")
  9.           msg2 (id,"!punish <id>")
  10.           msg2 (id,"!speed <id> <speed>")
  11.           msg2 (id,"!firesuit <id>")
  12.           msg2 (id,"!health <id> <hp>")
  13.           msg2 (id,"!heal <id>")
  14.           msg2 (id,"!curse <id> (Curse forEVER) (Need !antidote <id> $admin$")
  15.           msg2 (id,"!antidote <id>")
  16.           msg2 (id,"!equip <id> <iid>")
  17.           msg2 (id,"!lookusgn <id>")
  18.           msg2 (id,"!shakeplayer <id> <str>")
  19.           msg2 (id,"!godbuilding")
  20.           msg2 (id,"!fastbuild <angel x> <angel y> <building type>")
  21.           msg2 (id,">>Angel max 5 and min -5<<")
  22.           msg2 (id,">>Type 16-19 is does not work<<")
  23.           msg2 (id,"!cancelfastbuild")
  24.           msg2 (id,"!fastbuildteam <team>")
  25.           msg2 (id,"!projecttype <item id>")
  26. end
  27.      for target = 1, 32 do
  28.           if (txt=="!goto "..target) then
  29.                if (a[id]>=1) then
  30.                     parse ("setpos "..id.." "..(player(target,"x")).." "..(player(target,"y")))
  31.                end
  32.           end
  33.      end
  34.      for target = 1, 32 do
  35.           if (txt=="!bring "..target) then
  36.                if (a[id]>=1) then
  37.                     parse ("setpos "..target.." "..(player(id,"x")).." "..(player(id,"y")))
  38.                end
  39.           end
  40.      end
  41.      for target = 1, 32 do
  42.           if (txt=="!burn "..target) then
  43.                if (a[id]>=1) then
  44.                     burnmode[target] = 1
  45.                     msg ("SERVER  "..player(id,"name").." throws fire to "..player(target,"name"))
  46.                end
  47.           end
  48.      end
  49.      for target = 1, 32 do
  50.           if (txt=="!kick "..target) then
  51.                if (a[id]>=1) then
  52.                     if (a[target]<=0) then
  53.                          parse ("kick "..target)
  54.                     else
  55.                          msg2 (id,"Cant Kick Admin !")
  56.                     end
  57.                end
  58.           end
  59.      end
  60.      for target = 1, 32 do
  61.           if (txt=="!punish "..target) then
  62.                if (a[id]>=1) then
  63.                     parse ("killplayer "..target)
  64.                end
  65.           end
  66.      end
  67.      for target = 1, 32 do
  68.           if (txt=="!mute "..target) then
  69.                if (a[id]>=1) then
  70.                     mm[target] = 1
  71.                end
  72.           end
  73.      end
  74.      for target = 1, 32 do
  75.           if (txt=="!unmute "..target) then
  76.                if (a[id]>=1) then
  77.                     mm[target] = 0
  78.                end
  79.           end
  80.      end
  81.      for target = 1, 32 do
  82.           for speed = 0, 100 do
  83.                if (txt=="!speed "..target.." "..speed) then
  84.                     if (a[id]>=1) then
  85.                          parse ("speedmod "..target.." "..speed)
  86.                     end
  87.                end
  88.           end
  89.      end
  90.      if (txt=="!firesuit") then
  91.           if (a[id]>=1) then
  92.                if (fs[id]==0) then
  93.                     fs[id] = 1
  94.                     msg2 (id,"Fire Suit ACTIVED")
  95.                else
  96.                     fs[id] = 0
  97.                     msg2 (id,"Fire Suit DEACTIVED")
  98.                end
  99.           end
  100.      end
  101.      for target = 1, 32 do
  102.           for hp = 1, 250 do
  103.                if (txt=="!health "..target.." "..hp) then
  104.                     if (a[id]>=1) then
  105.                          parse ("setmaxhealth "..target.." "..hp)
  106.                     end
  107.                end
  108.           end
  109.      end
  110.      for target = 1, 32 do
  111.           if (txt=="!heal "..target) then
  112.                if (a[id]>=1) then
  113.                     parse ("sethealth "..target.." 250")
  114.                end
  115.           end
  116.      end
  117.      for target = 1, 32 do
  118.           if (txt=="!curse "..target) then
  119.                if (a[id]>=1) then
  120.                     cm[target] = 1
  121.                     msg ("SERVER  "..player(id,"name").." curses "..player(target,"name"))
  122.                end
  123.           end
  124.      end
  125.      for target = 1, 32 do
  126.           if (txt=="!antidote "..target) then
  127.                if (a[id]>=1) then
  128.                     cm[target] = 0
  129.                end
  130.           end
  131.      end
  132.      for target = 1, 32 do
  133.           for iid = 1, 91 do
  134.                if (txt=="!equip "..target.." "..iid) then
  135.                     parse ("equip "..target.." "..iid)
  136.                end
  137.           end
  138.      end
  139.      for target = 1, 32 do
  140.           if (txt=="!lookusgn "..target) then
  141.                if (a[id]>=1) then
  142.                     msg2 (id,"USGN : "..(player(target,"usgn")))
  143.                end
  144.           end
  145.      end
  146.      for target = 1, 32 do
  147.           for str = 1, 100 do
  148.                if (txt=="!shakeplayer "..target.." "..str) then
  149.                     if (a[id]>=1) then
  150.                          parse ("shake "..target.." "..str)
  151.                     end
  152.                end
  153.           end
  154.      end
  155.      if (txt=="!godbuilding") then
  156.           if (a[id]>=1) then
  157.                if (bnd[id]==0) then
  158.                     bnd[id] = 1
  159.                     msg2 (id,"God Building ACTIVED")
  160.                else
  161.                     bnd[id] = 0
  162.                     msg2 (id,"God Building DEACTIVED")
  163.                end
  164.           end
  165.      end
  166.      for angelx = -5, 5 do
  167.           for angely = -5, 5 do
  168.                for bid = 1, 25 do
  169.                     if (txt=="!fastbuild "..angelx.." "..angely.." "..bid) then
  170.                          if (a[id]>=1) then
  171.                               fbb[id] = 1
  172.                               msg2 (id,"Fast Build ACTIVED")
  173.                               xangel[id] = angelx
  174.                               yangel[id] = angely
  175.                               bd[id] = bid
  176.                          end
  177.                     end
  178.                end
  179.           end
  180.      end
  181.      if (txt=="!cancelfastbuild") then
  182.           if (a[id]>=1) then
  183.                fbb[id] = 0
  184.                xangel[id] = 0
  185.                yangel[id] = 0
  186.                bd[id] = 0
  187.           end
  188.      end
  189.      if (txt=="!fastbuildteam neutral") then
  190.           if (a[id]>=1) then
  191.                fbt[id] = 0
  192.           end
  193.      end
  194.      if (txt=="!fastbuildteam tero") then
  195.           if (a[id]>=1) then
  196.                fbt[id] = 1
  197.           end
  198.      end
  199.      if (txt=="!fastbuildteam cotero") then
  200.           if (a[id]>=1) then
  201.                fbt[id] = 2
  202.           end
  203.      end
  204.      if (txt=="!fastbuildteam vip") then
  205.           if (a[id]>=1) then
  206.                fbt[id] = 3
  207.           end
  208.      end
  209.      if (txt=="!tag") then
  210.           if (a[id]>=1) then
  211.                if (at[id]==0) then
  212.                     at[id] = 1
  213.                     msg2 (id,"Tag ACTIVED")
  214.                else
  215.                     at[id] = 0
  216.                     msg2 (id,"Tag DEACTIVED")
  217.                end
  218.           end
  219.      end
  220.      for ptt = 0, 91 do
  221.           if (txt=="!projecttype "..ptt) then
  222.                if (a[id]>=1) then
  223.                     pt[id] = ptt
  224.                end
  225.           end
  226.      end
  227. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement