Advertisement
Dudugz-Contistente

Untitled

Jan 3rd, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.98 KB | None | 0 0
  1. tfm.exec.disableAutoNewGame()
  2. tfm.exec.disableAutoShaman()
  3. tfm.exec.disableAutoTimeLeft()
  4. tfm.exec.disableAutoScore()
  5.  
  6. colors = {
  7. bar = 0x696969,
  8. hot_unselected = 0x7a7a7a,
  9. hot_selected = 0x878787
  10. }
  11.  
  12. ids = {}
  13. data={}
  14.  
  15. shop = {
  16. {n="Varinha",img="1596513dd70.png",price=10,dmg=5},
  17. {n="Taco de baseball",img="1596513ff8c.png",price=32,dmg=7},
  18. {n="Taco de golf",img="159651429a0.png",price=56,dmg=9},
  19. {n="Espada",img="15965145722.png",price=78,dmg=12},
  20. {n="Picareta",img="15965148ea9.png",price=122,dmg=15},
  21. {n="Machado",img="1596514b69b.png",price=143,dmg=18},
  22. {n="Pé de cabra",img="1596514d4d6.png",price=168,dmg=27},
  23. }
  24.  
  25. keys = {48,49,50,51,52,53,54,55,56,57}
  26.  
  27. local npcs={}
  28. local time_spawn = os.time();
  29. local p = {}
  30.  
  31. local mapas = {"@6978537",'<C><P L="3000" D="x_deadmeat/x_zone/x_200.jpg,1541,-461;x_deadmeat/x_campement/repos_fond.jpg,-378,-280" Ca="" /><Z><S><S L="3000" H="10" X="1457" Y="404" T="14" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" X="1" H="10" Y="316" T="14" P="0,0,0,0,90,0,0,0" /></S><D /><O /></Z></C>'}
  32.  
  33. local zombies={
  34. {"15922b9ad4d.png", "15923a3e2d4.png", 115, 23, 92, "Zombie", 20, 3,4},
  35. {"159237ccbfd.png", "15923a3555b.png", 115, 23, 92, "Zombie", 30, 6,8},
  36. {"159237ce30f.png", "15923a37f86.png", 115, 23, 92, "Zombie", 40, 12,12},
  37. {"159238d77a9.png", "15923a3a9a7.png", 50, 23, 25, "Drekke", 60, 18,16},
  38. {"15927206568.png", "15927208310.png", 50, 21, 42,"Ghost", 80, 10,22}
  39. }
  40.  
  41. textarea=ui.addTextArea
  42. function ui.addTextArea(id,text,targetPlayer,x,y,width,height,backgroundColor,borderColor,backgroundAlpha,emboss,black_marcation,ground_marcation)
  43. --if not backgroundColor then backgroundColor=0x324650 end
  44. --if not borderColor then borderColor=0x000001 end
  45. if black_marcation then
  46. textarea(6969+id,"",targetPlayer,x,y+1,width,height,0x000001,0x000001,backgroundAlpha,emboss)
  47. end
  48.  
  49. if ground_marcation then
  50. textarea(7979+id,"",targetPlayer,x,y-1,width,height,0x6A8FA2,0x6A8FA2,backgroundAlpha,emboss)
  51. end
  52. textarea(id,text,targetPlayer,x,y,width,height,backgroundColor,borderColor,backgroundAlpha,emboss)
  53. end
  54.  
  55. function eventNewPlayer(name)
  56. p[name]={
  57. damage=5,
  58. delete="",
  59. delete2="",
  60. tempo = os.time(),
  61. life = 50,
  62. maxLife = 50,
  63. img = '',
  64. hot_selected = {1,152,"15926ee8777.png"},
  65. hot_items = {},
  66. coins = 0,
  67. images_grid = {},
  68. inventory = {},
  69. id = 1,
  70. select_x = 600,
  71. itm_selected = {},
  72. inv = false
  73. }
  74.  
  75. table.insert(p[name].inventory,{n="Faca",dmg=3,img="15926ee8777.png"})
  76.  
  77. for i,v in pairs(data) do
  78. if v[1] == name then
  79. p[name] = v[2]
  80. end
  81. end
  82.  
  83. table.insert(data,{name, p[name]})
  84.  
  85. p[name].hot_items[0]={img="",dmg=0}
  86. p[name].hot_items[1]={img="15926ee8777.png",dmg=3}
  87. p[name].hot_items[2]={img="",dmg=0}
  88. p[name].hot_items[3]={img="",dmg=0}
  89. p[name].hot_items[4]={img="",dmg=0}
  90. p[name].hot_items[5]={img="",dmg=0}
  91. p[name].hot_items[6]={img="",dmg=0}
  92. p[name].hot_items[7]={img="",dmg=0}
  93. p[name].hot_items[8]={img="",dmg=0}
  94. p[name].hot_items[9]={img="",dmg=0}
  95.  
  96. ui.addTextArea(-1,"",name,150,28,500,35,colors.bar,colors.bar,80,true)
  97. ui.addTextArea(0,"<p align='left'><font color='#000000'>0",name,609,30,40,32,colors.hot_unselected,colors.hot_unselected,80,true)
  98. ui.addTextArea(1,"<p align='left'><font color='#000000'>1",name,152,30,40,32,colors.hot_unselected,colors.hot_unselected,80,true)
  99. ui.addTextArea(2,"<p align='left'><font color='#000000'>2",name,203,30,40,32,colors.hot_unselected,colors.hot_unselected,80,true)
  100. ui.addTextArea(3,"<p align='left'><font color='#000000'>3",name,254,30,40,32,colors.hot_unselected,colors.hot_unselected,80,true)
  101. ui.addTextArea(4,"<p align='left'><font color='#000000'>4",name,305,30,40,32,colors.hot_unselected,colors.hot_unselected,80,true)
  102. ui.addTextArea(5,"<p align='left'><font color='#000000'>5",name,355,30,40,32,colors.hot_unselected,colors.hot_unselected,80,true)
  103. ui.addTextArea(6,"<p align='left'><font color='#000000'>6",name,406,30,40,32,colors.hot_unselected,colors.hot_unselected,80,true)
  104. ui.addTextArea(7,"<p align='left'><font color='#000000'>7",name,457,30,40,32,colors.hot_unselected,colors.hot_unselected,80,true)
  105. ui.addTextArea(8,"<p align='left'><font color='#000000'>8",name,508,30,40,32,colors.hot_unselected,colors.hot_unselected,80,true)
  106. ui.addTextArea(9,"<p align='left'><font color='#000000'>9",name,558,30,40,32,colors.hot_unselected,colors.hot_unselected,80,true)
  107.  
  108. ui.addTextArea(p[name].hot_selected[1],"<p align='left'><font color='#ffffff'>"..p[name].hot_selected[1],name,p[name].hot_selected[2],30,40,32,colors.hot_selected,colors.hot_unselected,80,true)
  109. tfm.exec.setPlayerScore(name, 0, false)
  110. n = name
  111.  
  112. tfm.exec.addImage(p[n].hot_items[0].img, "&0", 609, 32,n);
  113. tfm.exec.addImage(p[n].hot_items[1].img, "&1", 152, 32,n);
  114. tfm.exec.addImage(p[n].hot_items[2].img, "&2", 203, 32,n);
  115. tfm.exec.addImage(p[n].hot_items[3].img, "&3", 254, 32,n);
  116. tfm.exec.addImage(p[n].hot_items[4].img, "&4", 305, 32,n);
  117. tfm.exec.addImage(p[n].hot_items[5].img, "&5", 355, 32,n);
  118. tfm.exec.addImage(p[n].hot_items[6].img, "&6", 406, 32,n);
  119. tfm.exec.addImage(p[n].hot_items[7].img, "&7", 457, 32,n);
  120. tfm.exec.addImage(p[n].hot_items[8].img, "&8", 508, 32,n);
  121. tfm.exec.addImage(p[n].hot_items[9].img, "&9", 558, 32,n);
  122. ui.addTextArea(50,"<p align='center'><VI><a href='event:shop'><B><I>Loja</a>",name,720,338,70,20,nil,0x324645,nil,true,true)
  123. ui.addTextArea(58,"<p align='center'><VI><a href='event:inv'><B><I>Inventário</a>",name,720,370,70,20,nil,0x324645,nil,true,true)
  124. system.bindKeyboard(name,32,true,true) system.bindKeyboard(name,37,true,true) system.bindKeyboard(name,39,true,true)
  125. system.bindKeyboard(name,48,true,true) system.bindKeyboard(name,49,true,true) system.bindKeyboard(name,50,true,true)
  126. system.bindKeyboard(name,51,true,true) system.bindKeyboard(name,52,true,true) system.bindKeyboard(name,53,true,true)
  127. system.bindKeyboard(name,54,true,true) system.bindKeyboard(name,55,true,true) system.bindKeyboard(name,56,true,true)
  128. system.bindKeyboard(name,57,true,true) system.bindKeyboard(name,37,true,true) system.bindKeyboard(name,39,true,true)
  129.  
  130. lifeBar(name)
  131. tfm.exec.chatMessage("<CE>Bem-vindo ao Dead Challenge</CE><br><J>Reporte bugs á Rianmojang e Contistente, este minigame está em construção ainda.</J><BR><V>[Contistente]</V>Todos os dados deste minigame são salvos temporáriamente, se acontecer um reset ou a sala esvaziar os dados são deletados.",name)
  132. end
  133.  
  134. function eventTextAreaCallback(id,name,link)
  135. if link == "shop" then
  136. eventTextAreaCallback(nil,name,'close')
  137. ui.addTextArea(51,"",name,150,75,500,300,nil,0x324650,nil,true,true)
  138. ui.addTextArea(52,"<p align='center'><J><font size='15'><B>Loja",name,148,77,504,22,nil,0x324645,nil,true,true)
  139. ui.addTextArea(53,"<font size='13'><p align='center'><R><B><a href='event:close'>Fechar</a>",name,152,352,496,20,0x1a2b30,0x1a2b30,nil,true,true)
  140. ui.addTextArea(54,"<p align='center'><J><font size='12'><B><VP>"..p[name].coins.." R$",name,542,318,100,22,nil,0x324645,nil,true,true)
  141. grids(name)
  142. end
  143.  
  144. if link == "inv" then
  145. eventTextAreaCallback(nil,name,'close')
  146. ui.addTextArea(51,"",name,150,75,500,300,nil,0x324650,nil,true,true)
  147. ui.addTextArea(52,"<p align='center'><J><font size='15'><B>Inventário",name,148,77,504,22,nil,0x324645,nil,true,true)
  148. ui.addTextArea(53,"<font size='13'><p align='center'><R><B><a href='event:close'>Fechar</a>",name,152,352,496,20,0x1a2b30,0x1a2b30,nil,true,true)
  149. ui.addTextArea(54,"<p align='center'><a href='event:previous'><b>←</b></a></p>",name,590,318,16,16,nil,0x324650,nil,true,true)
  150. ui.addTextArea(55,"<p align='center'><a href='event:next'><b>→</b></a></p>",name,620,318,16,16,nil,0x324650,nil,true,true)
  151.  
  152. p[name].inv = true
  153. p[name].id = 1
  154. inv_grids(name)
  155. end
  156.  
  157. if link == "next" and p[name].id < #p[name].inventory then
  158. p[name].id = p[name].id+1
  159. inv_grids(name)
  160. end
  161.  
  162. if link == "previous" and p[name].id > 1 then
  163. p[name].id = p[name].id-1
  164. inv_grids(name)
  165. end
  166.  
  167. if link == "close" then
  168. p[name].inv = false
  169. for i,v in pairs({51,52,53,54,55}) do
  170. ui.removeTextArea(v,name)
  171. ui.removeTextArea(6969+v,name)
  172. ui.removeTextArea(7979+v,name)
  173. end
  174.  
  175. for i,v in pairs(ids) do
  176. ui.removeTextArea(v,name)
  177. ui.removeTextArea(6969+v,name)
  178. ui.removeTextArea(7979+v,name)
  179. end
  180.  
  181. for i,v in pairs(p[name].images_grid) do
  182. tfm.exec.removeImage(v)
  183. end
  184. end
  185.  
  186. for i,v in pairs(shop) do
  187. if link == "info-"..v.n then
  188. ui.addPopup(0,3,"<p align='center'><B><I><font color='#ffcc00'>Informações do(a) "..v.n.."</font><br><font color='#C53DFF'>Preço:</font> "..v.price.." R$<br><font color='#2ECF73'>Dano de Attack:</font> "..v.dmg,name,151,300,499,true)
  189. end
  190.  
  191. if link == "buy-"..v.n then
  192. if p[name].coins >= v.price then
  193. tfm.exec.chatMessage("<B><VP>[SHOP::"..v.n.."]</VP> <J>Item comprado com sucesso, -"..v.price.."R$.</J></B>",name)
  194. p[name].coins=p[name].coins-v.price
  195. table.insert(p[name].inventory,{n=v.n,dmg=v.dmg,img=v.img})
  196. eventTextAreaCallback(nil,name,'shop')
  197. else
  198. tfm.exec.chatMessage("<B><VP>[SHOP::"..v.n.."]</VP> Dinheiro insuficiente para a compra deste item.</B>",name)
  199. end
  200. end
  201. end
  202.  
  203. for i,v in pairs(p[name].inventory) do
  204. if link == "info-inv-"..v.n then
  205. ui.addPopup(0,3,"<p align='center'><B><I><font color='#ffcc00'>Informações do(a) "..v.n.."</font><br><font color='#2ECF73'>Dano de Attack:</font> "..v.dmg,name,151,300,499,true)
  206. end
  207. end
  208. end
  209.  
  210. function grids(name)
  211. x_ = 104
  212. c = 0
  213. y_ = 115
  214. v = 0
  215.  
  216. images_grid = {}
  217.  
  218. ids={}
  219. for i,v in pairs(shop) do
  220. x_ = x_+50
  221. c = c+1
  222. buy = true
  223.  
  224. for i,inv in pairs(p[name].inventory) do
  225. if v.img == inv.img then
  226. buy = false
  227. break
  228. end
  229. end
  230.  
  231. if buy then
  232. addGrid(c,v.img,"Buy",x_,y_,name,v.n)
  233. else
  234. addGrid(c,v.img,"",x_,y_,name,v.n,true)
  235. end
  236. end
  237. end
  238.  
  239. function inv_grids(name)
  240. for i,v in pairs(p[name].images_grid) do
  241. tfm.exec.removeImage(v)
  242. end
  243.  
  244. x_ = 104
  245. c = 0
  246. y_ = 115
  247. v = 0
  248.  
  249. p[name].images_grid = {}
  250.  
  251. ids={}
  252. for i,v in pairs(p[name].inventory) do
  253. x_ = x_+50
  254. c = c+1
  255. if p[name].id == i then
  256. p[name].itm_selected={img=v.img,dmg=v.dmg}
  257. end
  258.  
  259. addGrid(c,v.img,"",x_,y_,name,v.n,true)
  260. end
  261. end
  262.  
  263. function addGrid(id,img,buttonText,x,y,name,item,inv)
  264. id = 8989+id
  265. id2 = 4949+id
  266. id3 = 3939+id
  267.  
  268. if (id-8989) == p[name].id and inv then
  269. ui.addTextArea(id,"",name,x,y,80,78,0x0b161c,0x8B8B7A,nil,true)
  270. else
  271. ui.addTextArea(id,"",name,x,y,80,78,0x0b161c,0x0b161c,nil,true)
  272. end
  273.  
  274. if buttonText ~= "" or buttonText ~= nil then
  275. ui.addTextArea(id2,"<p align='center'><B><J><a href='event:buy-"..item.."'>"..buttonText.."</a>",name,x+1,y+61,30,16,0x38516b,0x38516b,nil,true)
  276. if inv then
  277. ui.addTextArea(id3,"<p align='center'><B><V><a href='event:info-inv-"..item.."'>Info</a>",name,x+1,y+61,78,16,0x38516b,0x38516b,nil,true)
  278. else
  279. ui.addTextArea(id3,"<p align='center'><B><V><a href='event:info-"..item.."'>Info</a>",name,x+42,y+61,37,16,0x38516b,0x38516b,nil,true)
  280. end
  281. else
  282. ui.addTextArea(id3,"<p align='center'><B><V><a href='event:info-"..item.."'>Info</a>",name,x+1,y+61,67,16,0x38516b,0x38516b,nil,true)
  283. end
  284. img = tfm.exec.addImage(img, "&0", x+15, y+8,name);
  285.  
  286. table.insert(p[name].images_grid,img)
  287. x_=x_+52
  288.  
  289. v=v+1
  290. if v == 5 then
  291. x_ = 104
  292. y_ = y_+100
  293. v=0
  294. end
  295.  
  296. table.insert(ids,id)
  297. table.insert(ids,id2)
  298. table.insert(ids,id3)
  299. end
  300.  
  301. function eventPlayerDied(name)
  302. vivos=vivos-1;
  303.  
  304. if vivos == 0 then
  305. tfm.exec.newGame(mapas[math.random(#mapas)])
  306. end
  307. end
  308.  
  309. function eventNewGame()
  310. tfm.exec.setGameTime(9999999)
  311. npcs = {}
  312.  
  313. for id=200,400 do
  314. ui.removeTextArea(id,nil)
  315. end
  316.  
  317. vivos = 0
  318.  
  319. for n, i in pairs(tfm.get.room.playerList) do
  320. p[n].life = p[n].maxLife
  321. lifeBar(n)
  322. vivos=vivos+1;
  323. end
  324.  
  325. end
  326.  
  327. function eventKeyboard(name,key,down,x,y)
  328. if key == 32 and p[name].tempo < os.time()-800 then
  329. for n,v in pairs(npcs) do
  330. if x >= tfm.get.room.objectList[v.id].x - 25 and x <= tfm.get.room.objectList[v.id].x + 25 and y >= tfm.get.room.objectList[v.id].y - 25 and y <= tfm.get.room.objectList[v.id].y + 25 and not tfm.get.room.playerList[name].isDead then
  331. itm = p[name].hot_selected[1]
  332. v.life = v.life-p[name].hot_items[itm].dmg
  333. p[name].tempo = os.time();
  334.  
  335. if v.life < 1 then
  336. p[name].delete = v.id
  337. p[name].delete2 = n
  338. p[name].coins = p[name].coins+v.coins
  339. if p[name].life < p[name].maxLife then
  340. p[name].life = p[name].life+math.random(5,v.maxLife)
  341. end
  342.  
  343. if p[name].life > p[name].maxLife then
  344. p[name].life = p[name].maxLife
  345. end
  346.  
  347. lifeBar(name)
  348. end
  349. end
  350. end
  351. end
  352.  
  353. if p[name].delete ~= '' then
  354. ui.removeTextArea(p[name].delete,nil)
  355. table.remove(npcs,p[name].delete2)
  356. tfm.exec.removeObject(p[name].delete)
  357. p[name].delete = ''
  358. end
  359.  
  360. if key_def(key) then
  361. if p[name].inv then
  362. p[name].hot_items[key_number(key)]={img=p[name].itm_selected.img,dmg=p[name].itm_selected.dmg}
  363. end
  364. ui.addTextArea(p[name].hot_selected[1],"<p align='left'><font color='#000000'>"..p[name].hot_selected[1],name,p[name].hot_selected[2],30,40,32,colors.hot_unselected,colors.hot_unselected,80,true)
  365. p[name].hot_selected = {key_number(key),key_x(key_number(key)),initial_item}
  366. ui.addTextArea(p[name].hot_selected[1],"<p align='left'><font color='#ffffff'>"..p[name].hot_selected[1],name,p[name].hot_selected[2],30,40,32,colors.hot_selected,colors.hot_unselected,80,true)
  367. end
  368. end
  369.  
  370. -- Sistema de vida por Fofinhoppp
  371. -- 21/12/2016
  372. function lifeBar(player)
  373. if not p[player] then return end
  374. local mLife = p[player].maxLife
  375. local life = p[player].life
  376. ui.addTextArea(10, '', player, -13, 25, 10, 370, 0xFF0000, 0xFF0000, 1, true)
  377. ui.addTextArea(11, '', player, -13, 395-(370/mLife)*life, 10, (370/mLife)*life, 0x00FF00, 0x00FF00, 1, true)
  378. ui.addTextArea(12, '', player, -15, 0, 10, 440, 0x6a7595, 0x6a7595, 1, true)
  379. tfm.exec.setPlayerScore(player,life,false)
  380. end
  381.  
  382. function eventLoop()
  383. if time_spawn < os.time()-3000 and #npcs < 20 then
  384. local monster = tfm.exec.addShamanObject(6300,math.random(10,3000),math.random(20,360))
  385. local imagem = zombies[math.random(#zombies)]
  386. local image = tfm.exec.addImage(imagem[math.random(1,2)], "#"..monster, -imagem[4], -imagem[5])
  387. local vida = math.random(10,imagem[7])
  388.  
  389.  
  390. table.insert(npcs,{id=monster,maxLife=vida,life=vida,damage=math.random(1,imagem[8]),img=image,textareaHeight=imagem[3],name=imagem[6],type = imagem,coins=math.random(1,imagem[9])})
  391. time_spawn = os.time();
  392. end
  393.  
  394. for i,v in pairs(npcs) do
  395. for n,pi in pairs(tfm.get.room.playerList) do
  396. if pi.x >= tfm.get.room.objectList[v.id].x - 12 and pi.x <= tfm.get.room.objectList[v.id].x + 12 and pi.y >= tfm.get.room.objectList[v.id].y - 25 and pi.y <= tfm.get.room.objectList[v.id].y + 25 and not tfm.get.room.playerList[n].isDead then
  397. p[n].life = p[n].life-v.damage
  398. lifeBar(n)
  399. if p[n].life < 1 then
  400. p[n].life = 0
  401. tfm.exec.killPlayer(n)
  402. end
  403. end
  404.  
  405. if pi.x >= tfm.get.room.objectList[v.id].x - 180 and pi.x <= tfm.get.room.objectList[v.id].x + 180 and pi.y >= tfm.get.room.objectList[v.id].y - 50 and pi.y <= tfm.get.room.objectList[v.id].y + 50 and not tfm.get.room.playerList[n].isDead then
  406. if pi.x > tfm.get.room.objectList[v.id].x then
  407. tfm.exec.moveObject(v.id,0,0,false,10,0,true)
  408. tfm.exec.removeImage(v.img)
  409. tfm.exec.addImage(v.type[2], '#'..v.id, -v.type[4], -v.type[5])
  410. elseif pi.x < tfm.get.room.objectList[v.id].x then
  411. tfm.exec.moveObject(v.id,0,0,false,-10,0,true)
  412. tfm.exec.removeImage(v.img)
  413. tfm.exec.addImage(v.type[1], '#'..v.id, -v.type[4], -v.type[5])
  414. end
  415.  
  416. if pi.x < tfm.get.room.objectList[v.id].y then
  417. tfm.exec.moveObject(v.id,0,0,false,0,-15,true)
  418. end
  419.  
  420. pular = math.random(0,5)
  421.  
  422. if pular == 2 then
  423. tfm.exec.moveObject(v.id,0,0,false,0,-30,true)
  424. end
  425.  
  426. ui.addTextArea(v.id,"<V>"..v.name.."<br><VI><font color='#FF0000'>♥ </font>"..v.life.."/"..v.maxLife.."</CR>",n,tfm.get.room.objectList[v.id].x-30,tfm.get.room.objectList[v.id].y-v.textareaHeight,50,nil,nil,0,70,false)
  427. else
  428. ui.removeTextArea(v.id,n)
  429. end
  430. end
  431. end
  432. end
  433.  
  434. function key_def(key)
  435. returno = false
  436. for i,v in pairs(keys) do
  437. if key == v then
  438. retorno = true
  439. end
  440. end
  441.  
  442. if key == 32 or key == 37 or key == 39 then
  443. retorno = false
  444. end
  445.  
  446. return retorno
  447. end
  448.  
  449. function key_number(key)
  450. keys_num = {}
  451. keys_num[48] = 0
  452. keys_num[49] = 1
  453. keys_num[50] = 2
  454. keys_num[51] = 3
  455. keys_num[52] = 4
  456. keys_num[53] = 5
  457. keys_num[54] = 6
  458. keys_num[55] = 7
  459. keys_num[56] = 8
  460. keys_num[57] = 9
  461. return keys_num[key]
  462. end
  463.  
  464. function key_x(key)
  465. keys_x = {}
  466. keys_x[0] = 609
  467. keys_x[1] = 152
  468. keys_x[2] = 203
  469. keys_x[3] = 254
  470. keys_x[4] = 305
  471. keys_x[5] = 355
  472. keys_x[6] = 406
  473. keys_x[7] = 457
  474. keys_x[8] = 508
  475. keys_x[9] = 558
  476. return keys_x[key]
  477. end
  478.  
  479. for all in pairs(tfm.get.room.playerList) do
  480. eventNewPlayer(all)
  481. end
  482.  
  483. tfm.exec.newGame(mapas[math.random(#mapas)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement