Advertisement
Guest User

[LTM] v1.7 AdminFly+Restart map

a guest
Feb 21st, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 57.77 KB | None | 0 0
  1. --LuaTribeManager [LTM]
  2. SuperAdmin={"Bushmeister"}
  3. admins={"a"}
  4. --!fly and !flyoff
  5. function start()
  6. char = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z","0","1","2","3","4","5","6","7","8","9"}
  7. math.randomseed(os.time())
  8. pass = {}
  9. function generate(s, l)
  10. pass = {}
  11.         size = math.random(s,l)
  12.  
  13.         for z = 1,size do
  14.  
  15.                 case = math.random(1)
  16.                 a = math.random(1,#char)
  17.                 if case == 1 then
  18.                         x=string.upper(char[a])
  19.                 elseif case == 2 then
  20.                         x=string.lower(char[a])
  21.                 end
  22.         table.insert(pass, x)
  23.         end
  24.         return(table.concat(pass))
  25. end
  26. system.disableChatCommandDisplay("m#", true)
  27. generate(9,9);
  28. oj=20
  29. oj=oj*2
  30. rouF=-1
  31. rempver=-500
  32. proverenniy={}
  33. Banned={}
  34. mor="<font color='#2ECF73'>ON</font>"
  35. far=false
  36. faro="<font color='#CB546B'>OFF</font>"
  37. tear=false
  38. tea="<font color='#CB546B'>OFF</font>"
  39. xClick=000
  40. yClick=000
  41. info=false
  42. idName={}
  43. Module_Shamanhunt=false
  44. Module_Survivor=false
  45. Module_Bootcamp=false
  46. fire=false
  47. firew="<font color='#CB546B'>OFF</font>"
  48. adminfly={}
  49. log={}
  50.  
  51. popu=true
  52. popuset="<font color='#2ECF73'>ON</font>"
  53.  
  54. pabla=0
  55. gafra=10
  56. ui.addPopup(42,0, "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>",nil,-5000,-900,10200)
  57. ui.addTextArea(41,"<p align='center'><a href='event:NOWAYBAY'><font size='40'><font color='#879efe'><b>Lua</font><font color='#ffd667'>TribeManager</font></font></b></a></p>",nil,200,200,400,nil,nil,0x324650,99999999,true)
  58.  
  59. for name in pairs (admins) do
  60.     adminfly[name]=false
  61.         print(adminfly[name])
  62. end
  63. for name in pairs (SuperAdmin) do
  64. adminfly[name]=false
  65.     print(adminfly[name])
  66. end
  67.  
  68. function Log(element)
  69. abr=table.maxn(log)
  70. if abr<=23 then
  71. table.insert(log, element)
  72. elseif abr>=24 then
  73. table.remove(log,1)
  74. table.insert(log,element)
  75. end
  76. end
  77. function textarea(player,msg)
  78. ui.addTextArea(77777,"<p align='center'><a href='event:close'> <font size='11'>"..msg.."</font></p></a>",player,6,368,800,30,0x1C3C41,0x1C3C41,0.7,true)
  79. end
  80. textt="<font color='#CB546B'>Администраторы: </font><font color='#ED67EA'>"..table.concat(admins, ", ").."</font>"
  81. textarea(player,textt)
  82. for name,player in pairs(tfm.get.room.playerList) do
  83. idName[name]=0
  84. end
  85. ralF={4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4014,4015,4016,4017,4018,4019,4020,4021,4022,4023,4024,4025,4026,4027,4028,4029,4030,4031,4032,4033,4034,4035,4036,4037,4038,4039,4040,4041,4042,4043,4044,4045,4046,4047,4048,4049,4050,4051,4052,4053,4054,4055,4056,4057,4058,4059,4061,4062,4063,4064,4065,4066,4067,4068,4069,4070}
  86. function eventNewPlayer(playerName)
  87. for name,player in pairs(tfm.get.room.playerList) do
  88. idName[name]=0
  89. end
  90. system.bindMouse(playerName, true)
  91. tfm.exec.bindKeyboard(playerName, 32, true, true)
  92. tfm.exec.bindKeyboard(playerName, 80, true, true)
  93. tfm.exec.bindKeyboard(playerName, 72, true, true)
  94. tfm.exec.bindKeyboard(playerName, 76, true, true)
  95. end
  96. function eventKeyboard(playerName, keyCode, down, xPosition, yPosition)
  97. if Module_Shamanhunt==true and sec<0 then--НАЧАЛО ШАМАНХАНТ
  98. if tfm.get.room.playerList[playerName].isShaman then
  99.     if keyCode == 81 then
  100.             keyCodeUserName[playerName] = 20
  101.         elseif keyCode == 37 then
  102.         keyCodeUserName[playerName] = 20
  103.     elseif keyCode == 39 then
  104.         keyCodeUserName[playerName] = 19
  105.         elseif keyCode == 68 then
  106.         keyCodeUserName[playerName] = 19
  107.     elseif keyCode == 40 or keyCode == 83 then
  108.         if os.time() - keyCodeULastTime[playerName] >= 1000 then
  109.             tfm.exec.addShamanObject(keyCodeUserName[playerName], xPosition, yPosition + 15, 0, 0, 0, false)
  110.             keyCodeULastTime[playerName] = os.time()
  111.         end
  112.     end
  113. end
  114. end--КОНЕЦ ШАМАНХАНТ
  115. if adminfly[playerName]==true then
  116. if keyCode==32 then
  117. tfm.exec.movePlayer(playerName,0,0,true,0,-50,false)
  118. tfm.exec.displayParticle(26, xPosition-15, yPosition-35, 0, 0, 0, 0, nil)
  119. end
  120. end
  121. if far==true then
  122. if keyCode==32 then
  123. tfm.exec.movePlayer(playerName,0,0,true,0,-50,false)
  124. tfm.exec.displayParticle(26, xPosition-15, yPosition-35, 0, 0, 0, 0, nil)
  125. end
  126. end
  127. for _,recv in pairs (admins) do
  128.     if (recv == playerName) then
  129. -----------------------------------LOG
  130. if keyCode == 76 and down == true then
  131. ui.addTextArea(08502, "<p align='center'><font color='#2ECF73'>----ADMIN LOG----</p><br><p align='left'>"..table.concat(log,"<br>").."</p></font>", playerName, 200, 40, 400, 340, 0x1C3C41, 0x1C3C41, 0.6)
  132. tfm.exec.bindKeyboard(playerName, 76, false, true)
  133. elseif keyCode == 76 and down == false then
  134. ui.removeTextArea(08502, playerName)
  135. tfm.exec.bindKeyboard(playerName, 76, true, true)
  136. end
  137. -----------------------------------LOG END
  138.         if keyCode==80 then
  139.         ui.addTextArea(401,"<p align='center'><a href='event:plusik'><b>+</b></a></p>",recv,22,36,53,16,nil,0x324650,nil,true)
  140.         end
  141.         end
  142.         end
  143.         for _,govno in pairs (SuperAdmin) do
  144.     if (govno == playerName) then
  145. ------------------------------LOG SPADMIN
  146. if keyCode == 76 and down == true then
  147. ui.addTextArea(08502, "<p align='center'><font color='#2ECF73'>----ADMIN LOG----</p><br><p align='left'>"..table.concat(log,"<br>").."</p></font>", playerName, 200, 40, 400, 340, 0x1C3C41, 0x1C3C41, 0.6)
  148. tfm.exec.bindKeyboard(playerName, 76, false, true)
  149. elseif keyCode == 76 and down == false then
  150. ui.removeTextArea(08502, playerName)
  151. tfm.exec.bindKeyboard(playerName, 76, true, true)
  152. end
  153. ------------------------------LOGEND SPADMIN
  154.         if keyCode==80 then
  155.         ui.addTextArea(401,"<p align='center'><a href='event:plusik'><b>+</b></a></p>",govno,22,36,53,16,nil,0x324650,nil,true)
  156.         end
  157.         end
  158.         end
  159.         for _,recv in pairs (admins) do
  160.     if (recv == playerName) then
  161.         if keyCode==72 then
  162.         ui.addTextArea(403,"| Пароль: |<p align='center'><a href='event:parol'><b>"..table.concat(pass).."</b></a></p>",recv,628,363,153,20,nil,0x324650,nil,true)
  163. rouF=oj
  164. end
  165. end
  166. end
  167. for _,govno in pairs (SuperAdmin) do
  168.     if (govno == playerName) then
  169.         if keyCode==72 then
  170.         ui.addTextArea(403,"| Пароль: |<p align='center'><a href='event:parol'><b>"..table.concat(pass).."</b></a></p>",govno,628,363,153,20,nil,0x324650,nil,true)
  171. rouF=oj
  172. end
  173. end
  174. end
  175. end
  176. idd=ralF[math.random(#ralF)]
  177. function eventMouse(playerName, xC, yC)
  178. for _,recv in pairs (admins) do
  179.     if (recv == playerName) then
  180. if fire==true then
  181. a=xC
  182. b=yC
  183. local mas={a={0,10,-10,0,10,-10,0}, b={0,10,-10,10,0,0,-10}}
  184. for i = 1, 7 do
  185. fa(a+mas.a[i], b+mas.b[i])
  186. end
  187. end
  188. end
  189. end
  190. for _,abc in pairs (SuperAdmin) do
  191.     if (abc == playerName) then
  192. if fire==true then
  193. a=xC
  194. b=yC
  195. local mas={a={0,10,-10,0,10,-10,0}, b={0,10,-10,10,0,0,-10}}
  196. for i = 1, 7 do
  197. fa(a+mas.a[i], b+mas.b[i])
  198. end
  199. end
  200. end
  201. end
  202. if tear==true then
  203. tfm.exec.movePlayer(playerName, xC, yC, false, 0, 0, false)
  204. tfm.exec.displayParticle(3, xC-10, yC-5, 0, 0, 0, 0, nil)
  205. tfm.exec.displayParticle(3, xC, yC, 0, 0, 0, 0, nil)
  206. tfm.exec.displayParticle(3, xC+3, yC+2, 0, 0, 0, 0, nil)
  207. tfm.exec.displayParticle(3, xC+6, yC+4, 0, 0, 0, 0, nil)
  208. tfm.exec.displayParticle(3, xC-5, yC+6, 0, 0, 0, 0, nil)
  209. tfm.exec.displayParticle(3, xC-2, yC+8, 0, 0, 0, 0, nil)
  210. tfm.exec.displayParticle(3, xC-10, yC+15, 0, 0, 0, 0, nil)
  211. tfm.exec.displayParticle(3, xC-10, yC+8, 0, 0, 0, 0, nil)
  212. tfm.exec.displayParticle(3, xC+10, yC+10, 0, 0, 0, 0, nil)
  213. end
  214. if info==true then
  215. xClick=xC
  216. yClick=yC
  217. ui.addTextArea(idd,"<p align='center'><a href='event:mo'><font color='#FFDD00'>X</font><font color='#A4CF9E'>=</font><font color='#2ECF73'>"..xClick.."</font> <font color='#FFDD00'>Y</font><font color='#A4CF9E'>=</font><font color='#2ECF73'>"..yClick.."</font><b></b></a></p>",playerName,xC+10,yC-5,nil,20,nil,0x324650,nil,true)
  218. gord=10
  219. end
  220. end
  221. function eventChatCommand(playerName, message)
  222. local args={}
  223. for _,recv in pairs (admins) do
  224.     if (recv == playerName) then
  225.  
  226.  
  227.                 for argument in message:gmatch("[^#]+") do
  228.                         table.insert(args,argument)
  229.                 end
  230. if message=="fly" then
  231. adminfly[playerName]=true
  232. elseif message=="flyoff" then
  233. adminfly[playerName]=false
  234. end
  235. if args[1]=="chat" and args[2] then
  236. end
  237. if args[1]=="m" and args[2] then
  238. textarea(player,"<font color='#ED67EA'>[~Modération] "..args[2].."</font>")
  239. end
  240. if message=="panel" then
  241. ui.addTextArea(401,"<p align='center'><a href='event:plusik'><b>+</b></a></p>",playerName,22,36,53,16,nil,0x324650,nil,true)
  242. end    
  243. if message=="arg" then
  244. print(arg[#arg])
  245. end
  246. if message=="pass" then
  247. ui.addTextArea(403,"| Пароль: |<p align='center'><a href='event:parol'><b>"..table.concat(pass).."</b></a></p>",playerName,628,363,153,20,nil,0x324650,nil,true)
  248. rouF=oj
  249. end
  250. if message=="banlist" then
  251. print(Banned[#Banned])
  252. end
  253.         end
  254.         end
  255.         for _,abv in pairs (SuperAdmin) do
  256.              if (abv == playerName) then
  257. if message=="fly" then
  258. adminfly[playerName]=true
  259. elseif message=="flyoff" then
  260. adminfly[playerName]=false
  261. end
  262.     end
  263.     end
  264.         end
  265. function eventTextAreaCallback(id,name,callback)
  266. if Module_Shamanhunt==true then--НАЧАЛО ШАМАНХАНТ
  267. if callback == "close" then
  268. ui.removeTextArea(55555,name)
  269. end
  270. if callback == "closeShaman" then
  271. ui.removeTextArea(77777,name)
  272. end
  273. if callback=="closeSmall" then
  274. ui.removeTextArea(44444,name)
  275. end
  276. if callback=="closeBigAll" then
  277. ui.removeTextArea(33333,name)
  278. end
  279. end--КОНЕЦ ШАМАНХАНТ
  280. if Module_Survivor==true then --НАЧАЛО СУРВИВОР
  281. if callback=="closeSmall" then
  282. ui.removeTextArea(44444,name)
  283. ui.removeTextArea(44445,name)
  284. ui.removeTextArea(44446,name)
  285. end
  286. end--КОНЕЦ СУРВИВОР
  287. if callback=="mo" then
  288. ui.removeTextArea(idd,name)
  289. end
  290. if callback == "close" then
  291. ui.removeTextArea(77777,name)
  292. end
  293. keyinvoker = name
  294. if callback=="plusik" then
  295. if table.contains(proverenniy, keyinvoker) == false then
  296. ui.addPopup(1,2, "Введите пароль для доступа к функциям администратора",name,300,150,200)
  297. elseif table.contains(proverenniy, keyinvoker) == true then
  298. ui.removeTextArea(401, name)
  299. ui.addTextArea(401,"<p align='center'><a href='event:minus'><b>-</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
  300. ui.addTextArea(402,"<p align='center'><a href='event:sir'><b>Дать..</b></a></p>",name,92,36,83,16,nil,0x324650,nil,true)
  301. ui.addTextArea(404,"<p align='center'><a href='event:карта'><b>Карта..</b></a></p>",name,192,36,83,16,nil,0x324650,nil,true)
  302. ui.addTextArea(405,"<p align='center'><a href='event:игрок'><b>Игрок..</b></a></p>",name,292,36,83,16,nil,0x324650,nil,true)
  303. ui.addTextArea(406,"<p align='center'><a href='event:другое'><b>Другое..</b></a></p>",name,392,36,83,16,nil,0x324650,nil,true)
  304. ui.addTextArea(407,"<p align='center'><a href='event:админ'><b>Admin</b></a></p>",name,492,36,73,16,nil,0x324650,nil,true)
  305. ui.addTextArea(408,"<p align='center'><a href='event:мини-игры'><b>Мини-игры</b></a></p>",name,582,36,103,16,nil,0x324650,nil,true)
  306. end
  307. end
  308. if callback=="sir" then
  309. ui.addPopup(2,2, "  <font color='#A4CF9E'>Введите что Вы хотите дать и кому</font><br>             <font color='#BABD2F'>Доступные команды:</font><br>                   <font color='#2ECF73'>cheese</font> <font color='#BABD2F'>Nick</font><br>                  <font color='#2ECF73'>vampire</font> <font color='#BABD2F'>Nick</font><br>                  <font color='#2ECF73'>shaman</font> <font color='#BABD2F'>Nick</font><br>                   <font color='#2ECF73'>victory</font> <font color='#BABD2F'>Nick</font><br><font size='9'><font color='#CB546B'>*Никнейм обязательно вводить с большой буквы (Пример:cheese Bushmeister)</font></font>",name,300,150,240)
  310. end
  311. if callback=="minus" then
  312. ui.removeTextArea(401, name)
  313. ui.removeTextArea(402, name)
  314. ui.removeTextArea(404, name)
  315. ui.removeTextArea(405, name)
  316. ui.removeTextArea(406, name)
  317. ui.removeTextArea(407, name)
  318. ui.removeTextArea(408, name)
  319. ui.addTextArea(401,"<p align='center'><a href='event:plusik'><b>+</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
  320. --remove
  321. end
  322. if callback=="карта" then
  323. ui.removeTextArea(401, name)
  324. ui.removeTextArea(402, name)
  325. ui.removeTextArea(404, name)
  326. ui.removeTextArea(405, name)
  327. ui.removeTextArea(406, name)
  328. ui.removeTextArea(407, name)
  329. ui.removeTextArea(408, name)
  330. ui.addTextArea(03,"<p align='center'><a href='event:назад'><b>Назад</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
  331. ui.addTextArea(04,"<p align='center'><a href='event:изменить карту'><b>Изменить карту</b></a></p>",name,92,36,113,16,nil,0x324650,nil,true)
  332. ui.addTextArea(05,"<p align='center'><a href='event:изменить название'><b>Изменить название</b></a></p>",name,222,36,133,16,nil,0x324650,nil,true)
  333. ui.addTextArea(06,"<p align='center'><a href='event:изменить время'><b>Изменить время</b></a></p>",name,372,36,133,16,nil,0x324650,nil,true)
  334. ui.addTextArea(1706,"<p align='center'><a href='event:рестартмап'><b>Перезагрузить</b></a></p>",name,520,36,133,16,nil,0x324650,nil,true)
  335. end
  336. if callback=="назад" then
  337. ui.removeTextArea(03, name)
  338. ui.removeTextArea(04, name)
  339. ui.removeTextArea(05, name)
  340. ui.removeTextArea(06, name)
  341. ui.removeTextArea(1706, name)
  342. ui.addTextArea(401,"<p align='center'><a href='event:minus'><b>-</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
  343. ui.addTextArea(402,"<p align='center'><a href='event:sir'><b>Дать..</b></a></p>",name,92,36,83,16,nil,0x324650,nil,true)
  344. ui.addTextArea(404,"<p align='center'><a href='event:карта'><b>Карта..</b></a></p>",name,192,36,83,16,nil,0x324650,nil,true)
  345. ui.addTextArea(405,"<p align='center'><a href='event:игрок'><b>Игрок..</b></a></p>",name,292,36,83,16,nil,0x324650,nil,true)
  346. ui.addTextArea(406,"<p align='center'><a href='event:другое'><b>Другое..</b></a></p>",name,392,36,83,16,nil,0x324650,nil,true)
  347. ui.addTextArea(407,"<p align='center'><a href='event:админ'><b>Admin</b></a></p>",name,492,36,73,16,nil,0x324650,nil,true)
  348. ui.addTextArea(408,"<p align='center'><a href='event:мини-игры'><b>Мини-игры</b></a></p>",name,582,36,103,16,nil,0x324650,nil,true)
  349. end
  350. if callback=="изменить карту" then
  351. ui.addPopup(3,2, "<br><p align='center'><b>Введите @номер карты</b></p>",name,300,150,200)
  352. end
  353. if callback=="изменить название" then
  354. ui.addPopup(4,2, "<br><p align='center'><b>Введите название карты</b></p>",name,300,150,200)
  355. end
  356. if callback=="изменить время" then
  357. ui.addPopup(5,2, "<br><p align='center'><b>Введите время раунда в секундах</b></p>",name,300,150,200)
  358. end
  359. if callback=="рестартмап" then
  360. kodrestarta = tfm.get.room.xmlMapInfo.mapCode
  361. tfm.exec.newGame(kodrestarta)
  362. end
  363. if callback=="игрок" then
  364. ui.removeTextArea(401, name)
  365. ui.removeTextArea(402, name)
  366. ui.removeTextArea(404, name)
  367. ui.removeTextArea(405, name)
  368. ui.removeTextArea(406, name)
  369. ui.removeTextArea(407, name)
  370. ui.removeTextArea(408, name)
  371. ui.addTextArea(07,"<p align='center'><a href='event:назадигрок'><b>Назад</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
  372. ui.addTextArea(08,"<p align='center'><a href='event:цвет'><b>Цвет никнейма</b></a></p>",name,92,36,113,16,nil,0x324650,nil,true)
  373. ui.addTextArea(09,"<p align='center'><a href='event:убить'><b>Убить</b></a></p>",name,222,36,83,16,nil,0x324650,nil,true)
  374. ui.addTextArea(010,"<p align='center'><a href='event:телепорт'><b>Телепортировать</b></a></p>",name,322,36,133,16,nil,0x324650,nil,true)
  375. end
  376. if callback=="цвет" then
  377. ui.addPopup(6,2, "<br><p align='center'><b>Введите никнейм и код цвета.</b></p><br><font size='9'><font color='#CB546B'>*Код цвета должен быть без # (Пример:Bushmeister FF9500)</font></font>",name,300,150,200)
  378. end
  379. if callback=="убить" then
  380. ui.addPopup(7,2, "<br><p align='center'><b>Введите никнейм игрока которого хотите убить.</b></p>",name,300,150,200)
  381. end
  382. if callback=="телепорт" then
  383. ui.addPopup(8,2, "<br><p align='center'><b>Введите никнейм игрока и x y координаты.</b></p>",name,300,150,200)
  384. end
  385. if callback=="бан" then
  386. ui.addPopup(9,2, "<br><p align='center'><b>Введите никнейм игрока и причину.<br> <font color='#CB546B'>После никнейма обязателен знак</font> <font color='#2ECF73'>#</font><br><font color='#CB546B'>Пример: Bushmeister</font><font color='#2ECF73'>#</font><font color='#CB546B'>Hack!</font></b></p>",name,300,150,200)
  387. end
  388. if callback=="разбан" then
  389. ui.addPopup(10,2, "<br><p align='center'><b>Введите никнейм игрока.</b></p>",name,300,150,200)
  390. end
  391. if callback=="назадигрок" then
  392. ui.addTextArea(401,"<p align='center'><a href='event:minus'><b>-</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
  393. ui.addTextArea(402,"<p align='center'><a href='event:sir'><b>Дать..</b></a></p>",name,92,36,83,16,nil,0x324650,nil,true)
  394. ui.addTextArea(404,"<p align='center'><a href='event:карта'><b>Карта..</b></a></p>",name,192,36,83,16,nil,0x324650,nil,true)
  395. ui.addTextArea(405,"<p align='center'><a href='event:игрок'><b>Игрок..</b></a></p>",name,292,36,83,16,nil,0x324650,nil,true)
  396. ui.addTextArea(406,"<p align='center'><a href='event:другое'><b>Другое..</b></a></p>",name,392,36,83,16,nil,0x324650,nil,true)
  397. ui.addTextArea(407,"<p align='center'><a href='event:админ'><b>Admin</b></a></p>",name,492,36,73,16,nil,0x324650,nil,true)
  398. ui.addTextArea(408,"<p align='center'><a href='event:мини-игры'><b>Мини-игры</b></a></p>",name,582,36,103,16,nil,0x324650,nil,true)
  399. ui.removeTextArea(07, name)
  400. ui.removeTextArea(08, name)
  401. ui.removeTextArea(09, name)
  402. ui.removeTextArea(010, name)
  403. end
  404. if callback=="другое" then
  405. ui.removeTextArea(401, name)
  406. ui.removeTextArea(402, name)
  407. ui.removeTextArea(404, name)
  408. ui.removeTextArea(405, name)
  409. ui.removeTextArea(406, name)
  410. ui.removeTextArea(407, name)
  411. ui.removeTextArea(408, name)
  412. ui.addTextArea(013,"<p align='center'><a href='event:назаддругое'><b>Назад</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
  413. ui.addTextArea(014,"<p align='center'><a href='event:snow'><b>Снег</b></a></p>",name,92,36,53,16,nil,0x324650,nil,true)
  414. ui.addTextArea(015,"<p align='center'><a href='event:скилы'><b>Умения шамана: "..mor.."</b></a></p>",name,162,36,153,16,nil,0x324650,nil,true)
  415. ui.addTextArea(016,"<p align='center'><a href='event:фли'><b>Fly: "..faro.."</b></a></p>",name,332,36,73,16,nil,0x324650,nil,true)
  416. ui.addTextArea(017,"<p align='center'><a href='event:телепортак'><b>Телепортация: "..tea.."</b></a></p>",name,422,36,153,16,nil,0x324650,nil,true)
  417. ui.addTextArea(018,"<p align='center'><a href='event:добъект'><b>Добавить объект</b></a></p>",name,592,36,143,16,nil,0x324650,nil,true)
  418. ui.addTextArea(027,"<p align='center'><a href='event:файер'><b>Фейерверки: </b>"..firew.."</a></p>",name,22,70,126,16,nil,0x324650,nil,true)
  419. end
  420. if callback=="snow" then
  421. ui.addPopup(11,2, "<br><p align='center'><b>Введите <font color='#2ECF73'>время</font> которое будет идти снег<br> (<font color='#2ECF73'>в секундах</font>) и <font color='#2ECF73'>силу</font> снежков(стандартная - 10)</b></p><font color='#CB546B'><font size='9'>Пример: 60 12</font></font>",name,300,150,200)
  422. end
  423. if callback=="скилы" then
  424. if mor=="<font color='#2ECF73'>ON</font>" then
  425. mor="<font color='#CB546B'>OFF</font>"
  426. Log(""..name.." отключил(а) умения шамана")
  427. tfm.exec.disableAllShamanSkills(true)
  428. textarea(player,"<font color='#ED67EA'>Skills:</font><font color='#CB546B'> OFF</font>")
  429. ui.removeTextArea(015, name)
  430. ui.addTextArea(015,"<p align='center'><a href='event:скилы'><b>Умения шамана:"..mor.."</b></a></p>",name,162,36,153,16,nil,0x324650,nil,true)
  431. elseif mor=="<font color='#CB546B'>OFF</font>" then
  432. mor="<font color='#2ECF73'>ON</font>"
  433. Log(""..name.." включил(a) умения шамана")
  434. tfm.exec.disableAllShamanSkills(false)
  435. textarea(player,"<font color='#ED67EA'>Skills:</font><font color='#2ECF73'> ON</font>")
  436. ui.removeTextArea(015, name)
  437. ui.addTextArea(015,"<p align='center'><a href='event:скилы'><b>Умения шамана:"..mor.."</b></a></p>",name,162,36,153,16,nil,0x324650,nil,true)
  438. end
  439. end
  440. if callback=="фли" then
  441. if far==false then
  442. far=true
  443. faro="<font color='#2ECF73'>ON</font>"
  444. Log(""..name.." включил(a) режим Fly")
  445. textarea(player,"<font color='#ED67EA'>Fly:</font><font color='#2ECF73'> ON</font>")
  446. dor();
  447. ui.removeTextArea(016, name)
  448. ui.addTextArea(016,"<p align='center'><a href='event:фли'><b>Fly: "..faro.."</b></a></p>",name,332,36,73,16,nil,0x324650,nil,true)
  449. elseif far==true then
  450. far=false
  451. Log(""..name.." выключил(a) режим Fly")
  452. faro="<font color='#CB546B'>OFF</font>"
  453. textarea(player,"<font color='#ED67EA'>Fly:</font><font color='#CB546B'> OFF</font>")
  454. dor();
  455. ui.removeTextArea(016, name)
  456. ui.addTextArea(016,"<p align='center'><a href='event:фли'><b>Fly: "..faro.."</b></a></p>",name,332,36,73,16,nil,0x324650,nil,true)
  457. end
  458. end
  459. if callback=="телепортак" then
  460. if tear==false then
  461. tear=true
  462. textarea(player,"<font color='#ED67EA'>Teleport:</font><font color='#2ECF73'> ON</font>")
  463. Log(""..name.." включил(а) режим Teleport")
  464. tea="<font color='#2ECF73'>ON</font>"
  465. ui.removeTextArea(017, name)
  466. ui.addTextArea(017,"<p align='center'><a href='event:телепортак'><b>Телепортация: "..tea.."</b></a></p>",name,422,36,153,16,nil,0x324650,nil,true)
  467. dor();
  468. elseif tear==true then
  469. tear=false
  470. Log(""..name.." выключил(а) режим Teleport")
  471. tea="<font color='#CB546B'>OFF</font>"
  472. textarea(player,"<font color='#ED67EA'>Teleport:</font><font color='#CB546B'> OFF</font>")
  473. ui.removeTextArea(017, name)
  474. ui.addTextArea(017,"<p align='center'><a href='event:телепортак'><b>Телепортация: "..tea.."</b></a></p>",name,422,36,153,16,nil,0x324650,nil,true)
  475. dor();
  476. end
  477. end
  478. if callback=="добъект" then
  479. ui.addPopup(12,2, "<br><p align='center'><b>Введите id объекта и X Y координаты.</b></p>",name,300,150,200)
  480. ui.addPopup(00889,0, "<p align='center'><b>Список объектов:</p></b><br><p align='left'>ID   27   оранжевый портал<br>ID   28   шарик<br>ID   32   руна<br>ID   34   снег<br>ID   35   стрелка Валентина<br>ID   39   яблоко<br>ID   40   овчека<br>ID   45   ледяная палка<br>ID   46   шоколадная палка<br>ID   57   облако<br>ID   59   пузырь<br>ID   60   крошечная палка<br>ID   61   компаньон-куб<br>ID   62   стабильная руна</p>",name,510,90,200)
  481. ui.addPopup(00888,0, "<p align='center'><b>Список объектов:</p></b><br><p align='left'>ID   0   стрелка<br>ID   1   маленький ящик<br>ID   2   большой ящик<br>ID   3   маленькая палка<br>ID   4   большая палка<br>ID   6   мячик<br>ID   7   трамплин<br>ID   10   наковальня<br>ID   18   ядро вниз<br>ID   19   ядро вправо<br>ID   20   ядро влево<br>ID   23   бомба<br>ID   24   спирит<br>ID   26   голубой портал</p>",name,90,90,200)
  482. end
  483. if callback=="файер" then
  484. if fire==false then
  485. fire=true
  486. firew="<font color='#2ECF73'>ON</font>"
  487. Log(""..name.." включил(а) фейерверки")
  488. ui.removeTextArea(027, name)
  489. ui.addTextArea(027,"<p align='center'><a href='event:файер'><b>Фейерверки: </b>"..firew.."</a></p>",name,22,70,126,16,nil,0x324650,nil,true)
  490. elseif fire==true then
  491. fire=false
  492. Log(""..name.." выключил(а) фейерверки")
  493. firew="<font color='#CB546B'>OFF</font>"
  494. ui.removeTextArea(027, name)
  495. ui.addTextArea(027,"<p align='center'><a href='event:файер'><b>Фейерверки: </b>"..firew.."</a></p>",name,22,70,126,16,nil,0x324650,nil,true)
  496. end
  497. end
  498. if callback=="назаддругое" then
  499. alfazet=0
  500. ui.removeTextArea(013, name)
  501. ui.removeTextArea(014, name)
  502. ui.removeTextArea(015, name)
  503. ui.removeTextArea(016, name)
  504. ui.removeTextArea(017, name)
  505. ui.removeTextArea(018, name)
  506. ui.removeTextArea(027, name)
  507. ui.addTextArea(401,"<p align='center'><a href='event:minus'><b>-</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
  508. ui.addTextArea(402,"<p align='center'><a href='event:sir'><b>Дать..</b></a></p>",name,92,36,83,16,nil,0x324650,nil,true)
  509. ui.addTextArea(404,"<p align='center'><a href='event:карта'><b>Карта..</b></a></p>",name,192,36,83,16,nil,0x324650,nil,true)
  510. ui.addTextArea(405,"<p align='center'><a href='event:игрок'><b>Игрок..</b></a></p>",name,292,36,83,16,nil,0x324650,nil,true)
  511. ui.addTextArea(406,"<p align='center'><a href='event:другое'><b>Другое..</b></a></p>",name,392,36,83,16,nil,0x324650,nil,true)
  512. ui.addTextArea(407,"<p align='center'><a href='event:админ'><b>Admin</b></a></p>",name,492,36,73,16,nil,0x324650,nil,true)
  513. ui.addTextArea(408,"<p align='center'><a href='event:мини-игры'><b>Мини-игры</b></a></p>",name,582,36,103,16,nil,0x324650,nil,true)
  514. end
  515. if callback=="админ" then
  516. ui.removeTextArea(401, name)
  517. ui.removeTextArea(402, name)
  518. ui.removeTextArea(404, name)
  519. ui.removeTextArea(405, name)
  520. ui.removeTextArea(406, name)
  521. ui.removeTextArea(407, name)
  522. ui.removeTextArea(408, name)
  523. ui.addTextArea(019,"<p align='center'><a href='event:назададмин'><b>Назад</b></a></p>",name,22,36,53,17,nil,0x324650,nil,true)
  524. ui.addTextArea(020,"<p align='center'><a href='event:папуп'><b>ui.addPopup() "..popuset.."</b></a></p>",name,92,36,133,17,nil,0x324650,nil,true)
  525. ui.addTextArea(021,"<p align='center'><a href='event:месаге'><b>Message</b></a></p>",name,242,36,85,17,nil,0x324650,nil,true)
  526. ui.addTextArea(011,"<p align='center'><a href='event:бан'><b>Забанить</b></a></p>",name,347,36,100,16,nil,0x324650,nil,true)
  527. ui.addTextArea(012,"<p align='center'><a href='event:разбан'><b>Разбанить</b></a></p>",name,469,36,100,16,nil,0x324650,nil,true)
  528. for _,govno in pairs (SuperAdmin) do
  529.     if (govno == name) then
  530.         ui.addTextArea(022,"<p align='center'><a href='event:Добавить админа'><b><font color='#FFDD00'>Добавить админа</font></b></a></p>",name,22,78,133,17,nil,0x324650,nil,true)
  531.         ui.addTextArea(023,"<p align='center'><a href='event:удалить админа'><b><font color='#FFDD00'>Удалить админа</font></b></a></p>",name,173,78,130,17,nil,0x324650,nil,true)
  532.         ui.addTextArea(024,"<p align='center'><a href='event:инфо'><b><font color='#FFDD00'>Info</font></b></a></p>",name,323,78,53,17,nil,0x324650,nil,true)
  533.         ui.addTextArea(025,"<p align='center'><a href='event:попустройки'><b><font color='#FFDD00'>Popup: "..popuset.."</font></b></a></p>",name,397,78,83,17,nil,0x324650,nil,true)
  534.                 ui.addTextArea(026,"<p align='center'><a href='event:рестарт'><b><font color='#FFDD00'>Restart</font></b></a></p>",name,500,78,73,17,nil,0x324650,nil,true)
  535.         end
  536.         end
  537. end
  538. if callback=="папуп" then
  539. if popu==true then
  540. ui.addPopup(13,2, "<p align='center'><b>Введите текст таблички и X Y координаты.<br><font color='#CB546B'>ВНИМАНИЕ!</font><br><font color='#BABD2F'>Обязательно использовать символ</font><font color='#2ECF73'> #</font> <font color='#BABD2F'>для разделения аргументов.</font></p><p align='left'><font color='#CB546B'>Пример:</font><font color='#2ECF73'>Текст </font><font color='#BABD2F'>#</font><font color='#2ECF73'>400</font><font color='#BABD2F'>#</font><font color='#2ECF73'>200</font></b></p>",name,300,150,200)
  541. end
  542. end
  543. if callback=="месаге" then
  544. ui.addPopup(14,2, "<br><p align='center'><b>Введите текст сообщения</b></p>",name,300,150,200)
  545. end
  546. if callback=="Добавить админа" then
  547. ui.addPopup(15,2, "<br><p align='center'><b>Введите никнейм нового админа</p>",name,300,150,200)
  548. end
  549. if callback=="удалить админа" then
  550. ui.addPopup(16,2, "<br><p align='center'><b>Введите никнейм админа и причину</b> <font size='9'>(необязательно)</font></p>",name,300,150,200)
  551. end
  552. if callback=="инфо" then
  553. if info==false then
  554. info=true
  555. textarea(player,"<font color='#ED67EA'>Info:</font><font color='#2ECF73'> ON</font>")
  556. elseif info==true then
  557. info=false
  558. textarea(player,"<font color='#ED67EA'>Info:</font><font color='#CB546B'> OFF</font>")
  559. ui.removeTextArea(idd)
  560. end
  561. end
  562. if callback=="попустройки" then
  563. if popu==true then
  564. popu=false
  565. popuset="<font color='#CB546B'>OFF"
  566. ui.removeTextArea(020, name)
  567. ui.addTextArea(020,"<p align='center'><a href='event:папуп'><b>ui.addPopup() "..popuset.."</b></a></p>",name,92,36,133,17,nil,0x324650,nil,true)
  568. for _,govno in pairs (SuperAdmin) do
  569.     if (govno == name) then
  570.         ui.removeTextArea(025,name)
  571.                 ui.addTextArea(025,"<p align='center'><a href='event:попустройки'><b><font color='#FFDD00'>Popup: "..popuset.."</font></font></b></a></p>",name,397,78,83,17,nil,0x324650,nil,true)
  572.                 end
  573.                 end
  574. elseif
  575. popu==false then
  576. popu=true
  577. popuset="<font color='#2ECF73'>ON"
  578. ui.removeTextArea(020, name)
  579. ui.addTextArea(020,"<p align='center'><a href='event:папуп'><b>ui.addPopup() "..popuset.."</b></a></p>",name,92,36,133,17,nil,0x324650,nil,true)
  580. for _,govno in pairs (SuperAdmin) do
  581.     if (govno == name) then
  582.                 ui.removeTextArea(025,name)
  583.                 ui.addTextArea(025,"<p align='center'><a href='event:попустройки'><b><font color='#FFDD00'>Popup: "..popuset.."</font></b></a></p>",name,397,78,83,17,nil,0x324650,nil,true)
  584. end
  585. end
  586. end
  587. end
  588. if callback=="рестарт" then
  589. ui.addPopup(17,1, "<br><p align='center'><b>Перезапустить скрипт?</p>",name,300,150,200)
  590. ui.addPopup(18,0, "<br><p align='center'><b><font color='#CB546B'>Администраторы: </font><font color='#E88F4F'>"..admn.."</font><font color='#CB546B'><br>SuperAdmin: </font><font color='#E88F4F'>"..sadmn.."</font></p>",name,300,250,200)
  591. end
  592. if callback=="назададмин" then
  593. for _,govno in pairs (SuperAdmin) do
  594.     if (govno == name) then
  595.         ui.removeTextArea(022,name)
  596.         ui.removeTextArea(023,name)
  597.         ui.removeTextArea(024,name)
  598.         ui.removeTextArea(025,name)
  599.         ui.removeTextArea(026,name)
  600.         end
  601.         end
  602.         ui.removeTextArea(011, name)
  603.         ui.removeTextArea(012, name)
  604. ui.removeTextArea(019, name)
  605. ui.removeTextArea(020, name)
  606. ui.removeTextArea(021, name)
  607. ui.addTextArea(401,"<p align='center'><a href='event:minus'><b>-</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
  608. ui.addTextArea(402,"<p align='center'><a href='event:sir'><b>Дать..</b></a></p>",name,92,36,83,16,nil,0x324650,nil,true)
  609. ui.addTextArea(404,"<p align='center'><a href='event:карта'><b>Карта..</b></a></p>",name,192,36,83,16,nil,0x324650,nil,true)
  610. ui.addTextArea(405,"<p align='center'><a href='event:игрок'><b>Игрок..</b></a></p>",name,292,36,83,16,nil,0x324650,nil,true)
  611. ui.addTextArea(406,"<p align='center'><a href='event:другое'><b>Другое..</b></a></p>",name,392,36,83,16,nil,0x324650,nil,true)
  612. ui.addTextArea(407,"<p align='center'><a href='event:админ'><b>Admin</b></a></p>",name,492,36,73,16,nil,0x324650,nil,true)
  613. ui.addTextArea(408,"<p align='center'><a href='event:мини-игры'><b>Мини-игры</b></a></p>",name,582,36,103,16,nil,0x324650,nil,true)
  614. end
  615. if callback=="мини-игры" then
  616. ui.removeTextArea(401, name)
  617. ui.removeTextArea(402, name)
  618. ui.removeTextArea(404, name)
  619. ui.removeTextArea(405, name)
  620. ui.removeTextArea(406, name)
  621. ui.removeTextArea(407, name)
  622. ui.removeTextArea(408, name)
  623. ui.addTextArea(028,"<p align='center'><a href='event:назадигра'><b>Назад</b></a></p>",name,22,36,53,17,nil,0x324650,nil,true)
  624. ui.addTextArea(029,"<p align='center'><a href='event:shamanhunt'><b>Shamanhunt</b></a></p>",name,92,36,113,17,nil,0x324650,nil,true)
  625. ui.addTextArea(030,"<p align='center'><a href='event:stopgame'><font color='#FFDD00'><b>Stop</b></font></a></p>",name,22,73,53,17,nil,0x324650,nil,true)
  626. ui.addTextArea(031,"<p align='center'><a href='event:survivor'><b>Survivor</b></a></p>",name,222,36,90,17,nil,0x324650,nil,true)
  627. ui.addTextArea(032,"<p align='center'><a href='event:bootcamp'><b>Bootcamp</b></a></p>",name,332,36,88,17,nil,0x324650,nil,true)
  628. end
  629. if callback=="shamanhunt" then
  630. if Module_Shamanhunt==false then
  631. Module_Shamanhunt=true
  632. startShamanhunt();
  633. Log(""..name.." включил(а) мини-игру Shamanhunt")
  634. print("<V>Module_Shamanhunt=<BV>true")
  635. elseif Module_Shamanhunt==true then
  636. end
  637. end
  638. if callback=="survivor" then
  639. if Module_Survivor==false then
  640. Module_Survivor=true
  641.  startSurvivor();
  642. print("<V>Module_Survivor=<BV>true")
  643. Log(""..name.." включил(а) режим Survivor")
  644. end
  645. end
  646. if callback=="bootcamp" then
  647. if Module_Bootcamp==false then
  648. Module_Bootcamp=true
  649. print("<V>Module_Bootcamp=<BV>true")
  650. Log(""..name.." включил(а) режим Bootcamp")
  651. startBootcamp();
  652. end
  653. end
  654. if callback=="stopgame" then
  655. ui.addPopup(18,1, "<br><p align='center'><b>Остановить работу всех игр?</p>",name,300,150,200)
  656. end
  657. if callback=="назадигра" then
  658. ui.removeTextArea(028, name)
  659. ui.removeTextArea(029, name)
  660. ui.removeTextArea(030, name)
  661. ui.removeTextArea(031, name)
  662. ui.removeTextArea(032, name)
  663. ui.addTextArea(401,"<p align='center'><a href='event:minus'><b>-</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
  664. ui.addTextArea(402,"<p align='center'><a href='event:sir'><b>Дать..</b></a></p>",name,92,36,83,16,nil,0x324650,nil,true)
  665. ui.addTextArea(404,"<p align='center'><a href='event:карта'><b>Карта..</b></a></p>",name,192,36,83,16,nil,0x324650,nil,true)
  666. ui.addTextArea(405,"<p align='center'><a href='event:игрок'><b>Игрок..</b></a></p>",name,292,36,83,16,nil,0x324650,nil,true)
  667. ui.addTextArea(406,"<p align='center'><a href='event:другое'><b>Другое..</b></a></p>",name,392,36,83,16,nil,0x324650,nil,true)
  668. ui.addTextArea(407,"<p align='center'><a href='event:админ'><b>Admin</b></a></p>",name,492,36,73,16,nil,0x324650,nil,true)
  669. ui.addTextArea(408,"<p align='center'><a href='event:мини-игры'><b>Мини-игры</b></a></p>",name,582,36,103,16,nil,0x324650,nil,true)
  670. end
  671. end
  672. gav={"ste"}
  673. function eventPopupAnswer(id,playerName,answer)
  674. local arg={}
  675. local rabbit={}
  676.  
  677.                 for argument in answer:gmatch("[^%s]+") do
  678.                         table.insert(arg,argument)
  679.                 end
  680.                 for argument in answer:gmatch("[^#]+") do
  681.                         table.insert(rabbit,argument)
  682.                 end
  683. if id==1 then
  684. if answer==table.concat(pass) then
  685. table.insert(proverenniy, playerName)
  686. ui.removeTextArea(401, playerName)
  687. ui.addTextArea(401,"<p align='center'><a href='event:minus'><b>-</b></a></p>",playerName,22,36,53,16,nil,0x324650,nil,true)
  688. ui.addTextArea(402,"<p align='center'><a href='event:sir'><b>Дать..</b></a></p>",playerName,92,36,83,16,nil,0x324650,nil,true)
  689. ui.addTextArea(404,"<p align='center'><a href='event:карта'><b>Карта..</b></a></p>",playerName,192,36,83,16,nil,0x324650,nil,true)
  690. ui.addTextArea(405,"<p align='center'><a href='event:игрок'><b>Игрок..</b></a></p>",playerName,292,36,83,16,nil,0x324650,nil,true)
  691. ui.addTextArea(406,"<p align='center'><a href='event:другое'><b>Другое..</b></a></p>",playerName,392,36,83,16,nil,0x324650,nil,true)
  692. ui.addTextArea(407,"<p align='center'><a href='event:админ'><b>Admin</b></a></p>",playerName,492,36,73,16,nil,0x324650,nil,true)
  693. ui.addTextArea(408,"<p align='center'><a href='event:мини-игры'><b>Мини-игры</b></a></p>",playerName,582,36,103,16,nil,0x324650,nil,true)
  694. ui.addTextArea(02,"<p align='center'><a href='event:AGHненужно'><b>Разблокировано!</b></a></p>",playerName,330,206,123,16,nil,0x324650,nil,true)
  695. rempver=5
  696. else
  697. print("<R>Неверный пароль!")
  698. end
  699. end
  700. if id==2 then
  701. if arg[1]=="cheese" and arg[2] then
  702. tfm.exec.giveCheese(arg[2])
  703. end
  704. if arg[1]=="vampire" and arg[2] then
  705. tfm.exec.setVampirePlayer(arg[2])
  706. end
  707. if arg[1]=="shaman" and arg[2] then
  708. tfm.exec.setShaman(arg[2])
  709. end
  710. if arg[1]=="victory" and arg[2] then
  711. tfm.exec.playerVictory(arg[2])
  712. end
  713. end
  714. if id==3 then
  715. if arg[1] then
  716.     if arg[1]~=nil then
  717.     tfm.exec.newGame(arg[1])
  718.         Log(""..playerName.." изменил(а) карту на @"..arg[1].."")
  719.         end
  720. end
  721. end
  722. if id==4 then
  723. if rabbit[1] then
  724.     if rabbit[1]~=nil then
  725.     tfm.exec.setUIMapName(rabbit[1])
  726.         Log(""..playerName.." сменил(а) название карты на "..rabbit[1].."")
  727.         end
  728. end
  729. end
  730. if id==5 then
  731. if arg[1] then
  732.     if arg[1]~=nil then
  733.     tfm.exec.setGameTime(arg[1])
  734.         Log(""..playerName.." установил(а) время раунда "..arg[1].." секунд")
  735.         end
  736. end
  737. end
  738. if id==6 then
  739. if arg[1]~=nil then
  740. tfm.exec.setNameColor(arg[1], "0x"..arg[2])
  741. Log(""..playerName.." изменил(а) цвет никнейма "..arg[1].."")
  742. end
  743. end
  744. if id==7 then
  745. if arg[1] then
  746.     if arg[1]~=nil then
  747.     tfm.exec.killPlayer(arg[1])
  748.         Log(""..playerName.." убил(а) "..arg[1])
  749.         end
  750. end
  751. end
  752. if id==8 then
  753. if arg[1] then
  754.     if arg[1]~=nil then
  755.         tfm.exec.movePlayer(arg[1], arg[2], arg[3])
  756.         Log(""..playerName.." телепортировал(а) "..arg[1])
  757. end
  758. end
  759. end
  760. if id==9 then
  761. if rabbit[1] and rabbit[2] then
  762.     if rabbit[1]~=nil then
  763.         textarea(player,"<font color='#CB546B'>"..rabbit[1].."</font><font color='#BABD2F'> забанен. Причина: </font><font color='#CB546B'>"..rabbit[2].."</font>")
  764.         table.insert(Banned,rabbit[1])
  765.         ui.addPopup(005,0, "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>",rabbit[1],-5000,-900,10200)
  766.     ui.addPopup(006,0, "<br><p align='center'>Вы были забанены<br>Причина: <font color='#CB546B'>"..rabbit[2].."</p></font>",rabbit[1],300,150,200)
  767.                 Log(""..playerName.." забанил(а) "..rabbit[1].." Причина: "..rabbit[2])
  768. end
  769. end
  770. end
  771. if id==10 then
  772. if arg[1] then
  773.     if arg[1]~=nil then
  774.         table.rem(Banned,arg[1])
  775.         ui.addPopup(005,0, "0",arg[1],-5000,-900,10200)
  776.         textarea(player,"<font color='#CB546B'>"..arg[1].."</font><font color='#BABD2F'> разбанен</font>")
  777.         Log(""..playerName.." разбанил(а) "..arg[1])
  778.         end
  779.         end
  780.         end
  781.         if id==11 then
  782. if arg[1] then
  783.     if arg[1]~=nil then
  784.         tfm.exec.snow(arg[1], arg[2])
  785.                 Log(""..playerName.." включил(а) снег на "..arg[1].." секунд")
  786.         end
  787.         end
  788.         end
  789. if id==12 then
  790. ui.addPopup(00888,0, "<br><p align='center'><b>0</b></p>",playerName,-2000,-5000,200)
  791. ui.addPopup(00889,0, "<br><p align='center'><b>0</b></p>",playerName,-2000,-5000,200)
  792. if arg[1] then
  793.     if arg[1]~=nil then
  794.         tfm.exec.addShamanObject(arg[1], arg[2], arg[3],nil,nil,nil, arg[4])
  795.         end
  796.         end
  797.         end
  798. if id==13 then
  799. if arg[1] then
  800.     if arg[1]~=nil then
  801. for name,player in pairs(tfm.get.room.playerList) do
  802. pabla=ralF[math.random(#ralF)]
  803. ui.addPopup(pabla,0, "<p align='center'><b>"..rabbit[1].."</b></p>",name,rabbit[2],rabbit[3],150)
  804.         end
  805.         end
  806. end
  807. end
  808. if id==14 then
  809. if arg[1] then
  810.     if arg[1]~=nil then
  811.         textarea(player,"<font color='#ED67EA'>[~Modération] "..rabbit[1].."</font>")
  812.         end
  813.         end
  814. end
  815. if id==15 then
  816. if arg[1] then
  817.     if arg[1]~=nil then
  818.         table.insert(admins,arg[1])
  819.                 textarea(player,"<font color='#BABD2F'>Приветствуем нового администратора - </font><font color='#ED67EA'>"..arg[1].."!</font>")
  820.         admn=table.concat(admins,", ")
  821.         end
  822.         end
  823. end
  824. if id==16 then
  825.                         if arg[1] then
  826.                                 if arg[1]~=nil then
  827.                                         table.rem(admins,arg[1])
  828.                                         for i,iddd in ipairs({401,402,403,404,405,406,407,408,028,029,019,020,021,011,012,022,023,024,025,026,020,027,018,017,016,015,014,013,07,08,09,010,03,04,05,06,030,031,032}) do
  829.                      ui.removeTextArea(iddd, arg[1])
  830.                     end
  831.                                         local pr = ""
  832.                                         if arg[2]~=nil then
  833.                                                 pr= " <R>Причина:<J> "
  834.                                                 for j=2, #arg, 1 do
  835.                                                         pr = pr.." "..arg[j]
  836.                                                 end
  837.                                         end
  838.                                         textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font>"..pr)
  839.                                     admn=table.concat(admins,", ")
  840.                                 end
  841.                         end
  842.                 end
  843. if id==17 then
  844. if answer=="yes" then
  845. start();
  846. end
  847. end
  848. if id==18 then
  849. if answer=="yes" then
  850. print("<V>Module_game=<R>false")
  851. Game_off()
  852.                 Log(""..playerName.." выключил(а) все мини-игры")
  853. end
  854. end
  855. end
  856. gord=-1
  857. regros={"<CEP>Bush","<VP>Creator: "}
  858. startsh=0
  859. function eventLoop(a,timeLeft)
  860. dor();
  861. if Module_Shamanhunt==true then--НАЧАЛО ШАМАНХАНТ
  862. if startsh==1 then
  863. if timeLeft <= 0 then
  864.                 tfm.exec.newGame(mapss[math.random(#mapss)]);
  865.         end
  866. z=z-1
  867. sec=sec-0.5
  868. if sec==0 then
  869. TextAllBig(player,"Start!")
  870. tfm.exec.newGame(mapss[math.random(#mapss)]);
  871. elseif sec>0 then
  872. TextAllBig(player,"Shamanhunt будет запущен через "..sec.." секунд")
  873. end
  874.  if(shaman~=nil) and not tfm.get.room.playerList[shaman].isDead then
  875.   local shamanx=tfm.get.room.playerList[shaman].x
  876.   local shamany=tfm.get.room.playerList[shaman].y
  877.   for name,player in pairs(tfm.get.room.playerList) do
  878.    if not tfm.get.room.playerList[name].isShaman then
  879.     x=tfm.get.room.playerList[name].x
  880.     y=tfm.get.room.playerList[name].y
  881.     if x>shamanx-30 and x<shamanx+30 and y>shamany-30 and y<shamany+30 and z<=6 then
  882.      tfm.exec.giveCheese(name)
  883.     end
  884.    if tfm.get.room.currentMap=="@4465309" then
  885.    if (x>740 and x<780 and y>70 and y<100) then
  886.    tfm.exec.setVampirePlayer(name)
  887.    end
  888.    end
  889.    end
  890.   end
  891.  end
  892.  if i==1 then
  893.  SmallText(player, "<font color='#98E2EB'>1 Мышь взяла сыр!</font>")
  894. i=i+20
  895. end
  896. if d==5 then
  897.  SmallText(player, "<font color='#98E2EB'>5 Мышам достался сыр!</font>")
  898. d=d+20
  899. end
  900. if k==10 then
  901.  SmallText(player, "<font color='#98E2EB'>10 мышам достался сыр! Шаман нуб и опозорился!</font>")
  902. tfm.exec.newGame(mapss[math.random(#mapss)]);
  903. end
  904. end
  905. end--КОНЕЦ ШАМАНХАНТ
  906. if Module_Survivor==true then --НАЧАЛО СУРВИВОР
  907.  getMouseCount();
  908.  if timeLeft<=0 and getMouseCount()>1 then
  909.  SmallText(player,"<font color='#ED67EA'>[~Modération]</font>Время вышло, <font color='#ED67EA'>"..shaman.." </font>нуб и опозорился! ^_^</font>")
  910.   tfm.exec.newGame(survivorMaps[math.random(#survivorMaps)])
  911.  
  912.   elseif timeLeft<=0 and getMouseCount()==1 then
  913.   tfm.exec.newGame(survivorMaps[math.random(#survivorMaps)])
  914.  end
  915.  end--КОНЕЦ СУРВИВОР
  916.  if Module_Bootcamp==true then--НАЧАЛО BOOTCAMP
  917.  if timeLeft<=0 then
  918.  tfm.exec.newGame(bootcampMaps[math.random(#bootcampMaps)])
  919.  end
  920.  end--КНЕЦ БК
  921. gord=gord-1
  922. gafra=gafra-1
  923. if gafra==7 then
  924. ui.addPopup(42,0, "1",nil,-5000,-900,10200)
  925. elseif gafra==4 then
  926. ui.removeTextArea(41)
  927. end
  928. if gord==0 then
  929. ui.removeTextArea(idd)
  930. end
  931.  for player,name in pairs(tfm.get.room.playerList) do
  932.   if table.contains(Banned,player) then
  933.    tfm.exec.killPlayer(player)
  934.   end
  935.  end
  936. for name,player in pairs(tfm.get.room.playerList) do
  937. x=tfm.get.room.playerList[name].x
  938. y=tfm.get.room.playerList[name].y
  939. end
  940. rempver=rempver-1
  941. if rempver==0 then
  942. ui.removeTextArea(02, name)
  943. end
  944. rouF=rouF-1
  945. if rouF==0 then
  946. ui.removeTextArea(403, name)
  947. end
  948. oj=oj-1
  949. if oj==0 then
  950. o();
  951. end
  952. end
  953. function o()
  954. generate(9,9);
  955. oj=20
  956. oj=oj*2
  957. end
  958. alf={"mei","r"}
  959. function dor()
  960. for name,player in pairs(tfm.get.room.playerList) do
  961.         tfm.exec.bindKeyboard(name, 32, true, true)
  962.                 tfm.exec.bindKeyboard(name, 80, true, true)
  963.                 tfm.exec.bindKeyboard(name, 72, true, true)
  964.                 tfm.exec.bindKeyboard(name, 76, true, true)
  965.                 system.bindMouse(name, true)
  966. end
  967. end
  968. for i,command in ipairs({"pass","panel","banlist","chat#","info"}) do
  969.         system.disableChatCommandDisplay(command)
  970.         end
  971. function table.contains(table, element)
  972.   for _, value in pairs(table) do
  973.     if value == element then
  974.       return true
  975.     end
  976.   end
  977.   return false
  978. end
  979. function table.notnill (table)
  980. if next(table) == nil then
  981.    return false
  982. else
  983. return true
  984. end
  985. end
  986. if table.notnill(SuperAdmin)  == true then
  987. print("<R>SuperAdmin: <ROSE>"..SuperAdmin[1])
  988. else
  989. end
  990. if gord==-1 then
  991. print(regros[2]..regros[1]..alf[1]..gav[1]..alf[2])
  992. gord=88888888
  993. else
  994. system.exit()
  995. end
  996. function table.indexof(t,val)
  997.     for k,v in ipairs(t) do
  998.         if v == val then return k end
  999.     end
  1000. end
  1001. function table.rem(tab,value)
  1002. table.remove(tab,table.indexof(tab,value))
  1003. end
  1004. dor();
  1005. --[[
  1006. for key,value in pairs(args) do
  1007. if key>=2 then
  1008. print(value)
  1009. end
  1010. end]]
  1011. admn=table.concat(admins,", ")
  1012. if table.notnill(SuperAdmin)  == true then
  1013. sadmn=""..SuperAdmin[1]
  1014. table.insert(proverenniy,SuperAdmin[1])
  1015. end
  1016. end
  1017. start();
  1018. function fa(a, b)
  1019. for i=1, 4 do
  1020. if i == 1 then
  1021. id = 13
  1022. masUzor={a={50,0,0,-50,30,-30,-30,30},b={0,50,-50,0,30,-30,30,-30}, va={0.5,0,0,-0.5,0.5,-0.5,-0.5,0.5}, vb={0,0.5,-0.5,0,0.5,-0.5,0.5,-0.5}}
  1023. elseif i == 2 then
  1024. id = 1
  1025. masUzor={a={40,0,0,-40,20,-20,-20,20},b={0,40,-40,0,20,-20,20,-20}, va={0.5,0,0,-0.5,0.5,-0.5,-0.5,0.5}, vb={0,0.5,-0.5,0,0.5,-0.5,0.5,-0.5}}
  1026. elseif i == 3 then
  1027. id = 2
  1028. masUzor={a={30,0,0,-30,10,-10,-10,10},b={0,30,-30,0,10,-10,10,-10}, va={0.5,0,0,-0.5,0.5,-0.5,-0.5,0.5}, vb={0,0.5,-0.5,0,0.5,-0.5,0.5,-0.5}}
  1029. elseif i == 4 then
  1030. id = 9
  1031. masUzor={a={20,0,0,-20,0,-0,-0,0},b={0,20,-20,0,0,-0,0,-0}, va={0.5,0,0,-0.5,0.5,-0.5,-0.5,0.5}, vb={0,0.5,-0.5,0,0.5,-0.5,0.5,-0.5}}
  1032. end
  1033. for i=1, 8 do
  1034. tfm.exec.displayParticle(id, a+masUzor.a[i], b+masUzor.b[i], 0, 0, masUzor.va[i], masUzor.vb[i], nil)
  1035. tfm.exec.displayParticle(id, a+masUzor.a[i], b+masUzor.b[i], 0, 0, masUzor.va[i], masUzor.vb[i], nil)
  1036. end
  1037. end
  1038. end    
  1039. --GAME_OFF
  1040. function Game_off()
  1041. ui.removeTextArea(44444)
  1042. ui.removeTextArea(44445)
  1043. ui.removeTextArea(44446)
  1044. ui.removeTextArea(33333)
  1045. ui.removeTextArea(77777)
  1046. ui.removeTextArea(55555)
  1047. Module_Shamanhunt=false
  1048. tfm.exec.disableAutoNewGame (false)
  1049. mor="<font color='#2ECF73'>ON</font>"
  1050. tfm.exec.disableAllShamanSkills(false)
  1051. startsh=0
  1052. Module_Survivor=false
  1053. tfm.exec.setGameTime (1);
  1054. Module_Bootcamp=false
  1055. tfm.exec.disableAfkDeath(false)
  1056. tfm.exec.disableAutoTimeLeft(false)
  1057. tfm.exec.disableAutoShaman(false)
  1058. end
  1059. function eventNewGame()
  1060. kodrestarta = tfm.get.room.xmlMapInfo.mapCode
  1061. if Module_Shamanhunt==true then--НАЧАЛО ШАМАНХАНТ
  1062. tfm.exec.disableAllShamanSkills(true)
  1063.  tfm.exec.setGameTime (123)
  1064.  for pName,player in pairs(tfm.get.room.playerList) do
  1065.     tfm.exec.bindKeyboard(pName, 37, true, true)
  1066.     tfm.exec.bindKeyboard(pName, 38, true, true)
  1067.     tfm.exec.bindKeyboard(pName, 39, true, true)
  1068.     tfm.exec.bindKeyboard(pName, 40, true, true)
  1069.         tfm.exec.bindKeyboard(pName, 81, true, true)
  1070.         tfm.exec.bindKeyboard(pName, 68, true, true)
  1071.         tfm.exec.bindKeyboard(pName, 83, true, true)
  1072.         tfm.exec.bindKeyboard(pName, 87, true, true)
  1073.     keyCodeULastTime[pName] = os.time()
  1074.     keyCodeUserName[pName] = 20
  1075.         textShaman(name,"Продержитесь 2 минуты и не дайте мышам вас схватить!<br>Все граунды пропускают сквозь себя объекты.<br><font color='#CB546B'>Нажмите чтобы закрыть</font>")
  1076. end
  1077.  z=20
  1078.  d=0
  1079. i=0
  1080. k=0
  1081.  shaman=nil
  1082.  for namep,player in pairs(tfm.get.room.playerList) do
  1083.   if(tfm.get.room.playerList[namep].isShaman) then
  1084.    shaman=namep
  1085.    tfm.exec.giveCheese(shaman)
  1086.   end
  1087.  end
  1088.  if(shaman==nil) then
  1089.   print('No shaman found!')
  1090.   else
  1091.    SmallText(player, "<font color='#A4CF9E'>"..shaman.."</font><font color='#BABD2F'> just stole the cheese! CATCH HER!")
  1092.  end
  1093. end--КОНЕЦ ШАМАНХАНТ
  1094. if Module_Survivor==true then --НАЧАЛО СУРВИВОР
  1095. local playersAlive = 0;
  1096.         local winner;
  1097.         for player in pairs(tfm.get.room.playerList) do
  1098.                 if not tfm.get.room.playerList[player].isDead then
  1099.                         playersAlive = playersAlive + 1;
  1100.                                                 end
  1101.                                                 end
  1102. ---Раздел
  1103. shaman=nil
  1104.  for nameppp,player in pairs(tfm.get.room.playerList) do
  1105.   if(tfm.get.room.playerList[nameppp].isShaman) then
  1106.    shaman=nameppp
  1107.    end
  1108.    end
  1109.  tfm.exec.disableAllShamanSkills(true)
  1110.  SmallText2(player,"<font color='#ED67EA'>[~Modération]</font> Спасайтесь от<font color='#ED67EA'> "..shaman.."</font>!")
  1111.  end--КОНЕЦ СУРВИВОР
  1112.   if Module_Bootcamp==true then--НАЧАЛО BOOTCAMP
  1113.  tfm.exec.setGameTime(bootcampDuration)
  1114.  end--КОНЕЦ БК
  1115. end
  1116. function eventPlayerWon(playerName)
  1117. if Module_Shamanhunt==true then--НАЧАЛО ШАМАНХАНТ
  1118.         i=i+1
  1119. k=k+1
  1120. d=d+1
  1121.                 local playersAlive = 0;
  1122.         local winner;
  1123.         for player in pairs(tfm.get.room.playerList) do
  1124.                 if not tfm.get.room.playerList[player].isDead then
  1125.                         playersAlive = playersAlive + 1;
  1126.                         winner = player;
  1127.                 end
  1128.         end
  1129.         if (playersAlive == 1) then
  1130.                 tfm.exec.setGameTime (10);
  1131.         elseif (playersAlive ==0) then
  1132.                 tfm.exec.newGame(maps[math.random(#maps)]);
  1133.         end
  1134. end--КОНЕЦ ШАМАНХАНТ
  1135. end
  1136. function eventPlayerDied (playerName)
  1137. if Module_Shamanhunt==true then--НАЧАЛО ШАМАНХАНТ
  1138. local playersAlive = 0;
  1139.         local winner;
  1140.         for player in pairs(tfm.get.room.playerList) do
  1141.                 if not tfm.get.room.playerList[player].isDead then
  1142.                         playersAlive = playersAlive + 1;
  1143.                         winner = player;
  1144.                 end
  1145.         end
  1146.         if (playersAlive == 1) then
  1147.                 tfm.exec.setGameTime (10);
  1148.         elseif (playersAlive ==0) then
  1149.                 tfm.exec.newGame(mapss[math.random(#mapss)]);
  1150.         end
  1151. for name,playera in pairs(tfm.get.room.playerList) do
  1152.         if playera.isShaman then
  1153.         tfm.exec.setGameTime (1);
  1154.  SmallText(player, "<font color='#CB546B'>Shaman has died T_T</font>")
  1155.  end
  1156.   tfm.exec.newGame(mapss[math.random(#mapss)]);
  1157.  end
  1158. end----КОНЕЦ ШАМАНХАНТ
  1159. if Module_Survivor==true then --НАЧАЛО СУРВИВОР
  1160. local playersAlive = 0;
  1161.         local winner;
  1162.         for player in pairs(tfm.get.room.playerList) do
  1163.                 if not tfm.get.room.playerList[player].isDead then
  1164.                         playersAlive = playersAlive + 1;
  1165.                         winner = player;
  1166.                 end
  1167.         end
  1168.                         if (playersAlive == 1) then
  1169.                 tfm.exec.setGameTime (20);
  1170.                                 end
  1171. --ещё
  1172.     if tfm.get.room.playerList[playerName].isShaman==true then
  1173.       tfm.exec.setPlayerScore(playerName, 0, false)
  1174.           SmallText(player,"<font color='#CB546B'>"..shaman.."</font><font color='#ED67EA'> погиб T_T</font>")
  1175.       tfm.exec.newGame(survivorMaps[math.random(#survivorMaps)])
  1176.      
  1177.       for p,_ in pairs(tfm.get.room.playerList) do
  1178.         if tfm.get.room.playerList[p].isShaman==false then
  1179.           if tfm.get.room.playerList[p].isDead==false then
  1180.             tfm.exec.setPlayerScore(p, 10, true)
  1181.           end
  1182. end
  1183. end
  1184. end
  1185. end--КОНЕЦ СУРВИВОР
  1186. if Module_Bootcamp==true then--НАЧАЛО BOOTCAMP
  1187. tfm.exec.respawnPlayer(playerName)
  1188. end--КОНЕЦ БК
  1189. end
  1190. --МИНИ-ИГРЫ
  1191. mapss = {"4400516", "4402674", "4398700", "4388974", "4427343", "4430443", "4465309"}
  1192. function startShamanhunt()--ШАМАНХАНТ
  1193. startsh=1
  1194. sec=10
  1195. function text(player,msg)
  1196. for name,player in pairs(tfm.get.room.playerList) do
  1197.         if not player.isShaman then
  1198. ui.addTextArea(55555,"<p align='center'><a href='event:close'> <font size='11'>"..msg.."</font></p></a>",name,300,150,200,nil,0x1C3C41,0x1C3C41,0.7,true)
  1199. end
  1200. end
  1201. end
  1202. function TextAllBig(player,msg)
  1203. ui.addTextArea(33333,"<p align='center'><a href='event:closeBigAll'> <font size='11'>"..msg.."</font></p></a>",player,300,150,200,nil,0x000001,0x000001,0.7,true)
  1204. end
  1205. function SmallText(player,msg)
  1206. ui.addTextArea(44444,"<p align='center'><a href='event:closeSmall'> <font size='11'>"..msg.."</font></p></a>",player,6,368,800,30,0x1C3C41,0x1C3C41,0.7,true)
  1207. end
  1208. function textShaman(player,msg)
  1209. for name,player in pairs(tfm.get.room.playerList) do
  1210.         if player.isShaman then
  1211. ui.addTextArea(77777,"<p align='center'><a href='event:closeShaman'> <font size='11'>"..msg.."</font></p></a>",name,300,150,200,nil,0x1C3C41,0x1C3C41,0.7,true)
  1212. end
  1213. end
  1214. end
  1215. ui.addPopup(1, 0, "Добро пожаловать в мини-игру <font color='#BABD2F'>shamanhunt!</font> Главная цель схватить шамана и донести сыр до норы! Но будьте осторожны, шаман будет предпринимать все меры, чтобы вы не cмогли это сделать!                                     <font color='#EB1D51'>Creator:</font><font color='#BABD2F'> Bushmeister</font>                         <font color='#2ECF73'>Helpers:</font> <font color='#A4CF9E'>Timatimaaa Clowfish Issey </font>", playerName, 278, 220, 250)
  1216.  
  1217.         tfm.exec.disableAutoNewGame (true)
  1218.                  z=-1
  1219. keyCodeUserName = {}
  1220. keyCodeULastTime = {}
  1221. end--КОНЕЦ ШАМАНХАНТСТАРТЕР
  1222.  
  1223.  function startSurvivor()--START SURV
  1224. function SmallText(player,msg)
  1225. ui.addTextArea(44444,"<p align='center'><a href='event:closeSmall'> <font size='11'>"..msg.."</font></p></a>",player,6,378,nil,20,0x1C3C41,0x1C3C41,0.8,true)
  1226. end
  1227. function SmallText2(player,msg)
  1228. ui.addTextArea(44445,"<p align='center'><a href='event:closeSmall'> <font size='11'>"..msg.."</font></p></a>",player,530,378,nil,20,0x1C3C41,0x1C3C41,0.8,true)
  1229. end
  1230. survivorMaps = {"@3540608","@492283","@1026249","@1545834","@1659906","@1659906","@3295213","@3699989","@741041","@489470","@395246","@292672","@306106","@3584123","@1522692","@3107377","@2387888","@3685564","@787131","@2408376","@3670885","@3620709","@3584826","@3587860","@3549404","@481676","@3550350","@3480467"}
  1231.  tfm.exec.disableAutoNewGame (true)
  1232.  tfm.exec.disableAutoTimeLeft(true)
  1233.  function getMouseCount()
  1234.   local count = 0
  1235.   for n,p in pairs(tfm.get.room.playerList) do
  1236.   if not tfm.get.room.playerList[n].isDead then
  1237.     count = count + 1
  1238.   end
  1239.   end
  1240.   return count
  1241. end
  1242.  tfm.exec.newGame(survivorMaps[math.random(#survivorMaps)])
  1243. end--END SURV
  1244.  function startBootcamp()--НАЧАЛО BOOTCAMP
  1245. bootcampMaps = {"@172951","@1427980", "@161434", "@216173", "@172621", "@500000", "@3908151", "@512887","@374995", "@306365", "@155606", "@333002", "@172547", "@3734998", "@1737914", "@2989803", "@3136410", "@438449", "@976944", "@1595965", "@1636814", "@2009003", "@3804078", "@3768117", "@3799357", "@3278138", "@3311534", "@3779861", "@3576303", "@3780618", "@2789121", "@2811229", "@3659983", "@3759157", "@597804", "@2998268", "@2132250", "@3745158", "@3338283", "@3062939", "@3137929", "@3560999", "@3182487", "@3725142", "@3012311", "@3493456", "@343456", "@208056", "@881158", "@492399", "@268915", "@505619", "@397469", "@729863", "@184648", "@156720", "@541693"}
  1246. bootcampDuration = 360
  1247. tfm.exec.disableAutoShaman(true)
  1248. tfm.exec.disableAfkDeath(true)
  1249. tfm.exec.disableAutoTimeLeft(true)
  1250. tfm.exec.disableAutoNewGame(true)
  1251. tfm.exec.newGame(bootcampMaps[math.random(#bootcampMaps)])
  1252. tfm.exec.setGameTime(bootcampDuration)
  1253. end--КОНЕЦ BOOTCAMP
  1254. tfm.exec.newGame()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement