frentzy

Script lua transformice Undead''

Mar 11th, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 136.03 KB | None | 0 0
  1. version = "6.3"
  2. Fly = {}
  3. script = { "Erikq#0000" , "Dayye#0000" , "Frentzytime#0000" , "Croeus#0000" }
  4. admin = { "Erikq#0000" , "Dayye#0000" , "Frentzytime#0000" , "Croeus#0000" , "Naibed#0000" }
  5. vip = { "Erikq#0000" , "Dayye#0000" , "Frentzytime#0000" , "Croeus#0000" , "Xutzaaa" , "Gaby#6369" , "Ayywa" , "Dayye" , "Andrulian" , "Backhus#0000" , "Soltino" , "Tucancitto" , "Valyxbc" , "Zuzuelena" , "Backhus" , "Somnorosull" , "Slowlyxd" , "Claudaripper" , "Bobytzza" , "Hottboyyy" , "Valyxbc" , "Maximtd" , "Tomjonson" , "Alinutzull" , "Tucancitto" , "Sfieraru" , "Mustaciila" , "Soarecelenfs" , "Marynel" , "Yionutz" , "Naibed#0000" }
  6. canTeleport = {}
  7. canExplosion = {}
  8. medExplosion = {}
  9. maxExplosion = {}
  10. killcheese = {}
  11. cheese = {}
  12. respawn = {}
  13. shaman = {}
  14. kill = {}
  15. vampire = {}
  16. meep = {}
  17. vipCheese = {}
  18. playerVictory = {}
  19. vipEvent = {}
  20. vipIce = {}
  21. vipGround = {}
  22. vipParticle = {}
  23. object = {}
  24. speedDr = {}
  25. speedSt = {}
  26. timeM = {}
  27. trambel = {}
  28. home = {}
  29. disable = {}
  30. ids=0
  31. ms=0
  32. pr=120
  33. voteyes=0
  34. voteno=0
  35. ban={}
  36. ob = {}
  37. msg = {}
  38. ffa = {}
  39. players = {}
  40. toDes = {}
  41. grounds = {}
  42. teren = {}
  43. terenuri = {}
  44. gheata = {}
  45. gheatam = {}
  46. gheatama = {}
  47. tramb = {}
  48. trambu = {}
  49. trambul = {}
  50. cioco = {}
  51. ciocol = {}
  52. ciocola = {}
  53. gr = {}
  54. players = {}
  55. rem = {}
  56. map = { 6226267,6225992,6225354,6224370,6222930,5883152,5880573,5876430,5872990,5872880,5812592,5812589,5812585,6249214,6253856,5812583,5812579,5812576,5812573,5800960,5698709,5779536,5698703,5698688,5698682,5698622,5698610,5698538,5698521,5698503,5698493,5698478,5698475 }
  57. m = { 6179231,6137590,7201266,4527980,3785003,7158978,5167031,1539301,2200301,3410458,3030733,3155585,2103312,2487636,3226146,2561659,3390598,1673888,1905424,2200315,2257925,2057200,944494,944492,2859346,2017824,3344764,2090022,3331444,1659836,1653935,2187881,2630793,666789,2015099,2131172,1641644,2823796,649313,3410181,3904002,3353064,3681428,3678549 }
  58. testban = {}
  59. test = {}
  60. particle = {}
  61. particle_1 = {}
  62. particle_2 = {}
  63. particle_3 = {}
  64. Log = '\n'
  65. Logsystem = '\n'
  66. Logmsg = '\n'
  67. a = 'Erikq#0000'
  68. b = 'Frentzytime#0000'
  69. c = 'croeus#0000'
  70. d = 'Dayye#0000'
  71. x = ''
  72. nume=[[Acuzat
  73.  
  74. ]]
  75. motive=[[Motiv
  76.  
  77. ]]
  78. cine=[[De cine ?
  79.  
  80. ]]
  81. tfm.exec.disableAfkDeath(true)
  82. vp = "<p align='center'><font color='#FD6A6A' size='15'>Nu faci parte pe lista V.I.P.</font></p><br><br><font color='#FD6A6A' size='15'>De ce nu poţi face parte în lista VIP?</font><br>Trebuie să ai rang VIP ca să ai VIP la comenzi. Ca să ai rang VIP trebuie să aştepţi un an dacă eşti nou în trib."
  83. adm = "<p align='center'><font color='#FD6A6A' size='15'>Nu faci parte pe lista Admin.</font></p><br><br><font color='#FD6A6A' size='15'>De ce nu poţi face parte în lista Admin?</font><br>Trebuie să ai rang Creator cel puţin ca să ai Admin la comenzi."
  84. ba=0
  85. bb=0
  86. bc=0
  87. bd=0
  88. be=0
  89. bf=0
  90. bg=0
  91. bh=0
  92. bi=0
  93. bj=0
  94. bk=0
  95. bl=0
  96. bm=0
  97. bn=0
  98. bo=0
  99. bp=0
  100. bq=0
  101. ui.addTextArea(403,"<p align='center'><a href='event:tp'><b>Tp: <r>OFF</a></p>",name,5,20,65,16,0x4F2B18,0x26140B,0.6,true)
  102. ui.addTextArea(409,"<p align='center'><a href='event:expl'><b>Exp: <r>OFF</a></p>",name,78,20,69,16,0x4F2B18,0x26140B,0.6,true)
  103. ui.addTextArea(410,"<p align='center'><a href='event:meniu'><b>Menu</a></p>",name,155,20,45,16,0x4F2B18,0x26140B,0.6,true)
  104.  
  105.  
  106. nokill = {}
  107. win = {}
  108. nowin = {}
  109. die = {}
  110. nodie = {}
  111. minigame = {}
  112. minigame = false
  113. killcheese = false
  114. nodie = true
  115. die = false
  116. next = {}
  117. next = false
  118. nunte = true
  119.  
  120. function game()
  121. for name in pairs(tfm.get.room.playerList) do tfm.exec.setPlayerScore(name, 0, false) end
  122. print("pornit")
  123. if minigame then
  124. tfm.exec.disableAfkDeath(false)
  125. tfm.exec.disableAutoTimeLeft(false)
  126. tfm.exec.disableAutoShaman(true)
  127. tfm.exec.disableAutoNewGame(false)
  128. killcheese = true
  129. win = true
  130. die = true
  131. nokill = false
  132. nowin = false
  133. nodie = false
  134. tfm.exec.newGame(map[math.random(#map)])
  135. end
  136. end
  137.  
  138.  
  139. function nunta(timp)
  140. systemOFF(s)
  141. movem = true
  142. die = true
  143. nodie = false
  144. tfm.exec.newGame(7253860)
  145. tfm.exec.setUIMapName("<n>Nunta pentru  <ch>"..sot.." <n>si <rose>"..sotie.."")
  146. tfm.exec.movePlayer(sot,165, 265,offset,0,0,offset)
  147. tfm.exec.killPlayer(sotie)
  148. end
  149.  
  150. function systemOFF(s)
  151. Fly = false
  152. notest = false
  153. object = false
  154. maper = false
  155. np = false
  156. nunte = false
  157. canTeleport = {}
  158. canExplosion = {}
  159. medExplosion = {}
  160. maxExplosion = {}
  161. cheese = false
  162. shaman = false
  163. vampire = false
  164. meep = false
  165. vipCheese = false
  166. playerVictory = false
  167. vipEvent = false
  168. vipIce = false
  169. vipGround = false
  170. vipParticle = false
  171. speedDr = false
  172. speedSt = false
  173. timeM = false
  174. trambel = false
  175. home = false
  176. grounds = {}
  177. teren = {}
  178. terenuri = {}
  179. gheata = {}
  180. gheatam = {}
  181. gheatama = {}
  182. tramb = {}
  183. trambu = {}
  184. trambul = {}
  185. cioco = {}
  186. ciocol = {}
  187. ciocola = {}
  188. particle = {}
  189. particle_1 = {}
  190. particle_2 = {}
  191. particle_3 = {}
  192. ui.removeTextArea(403,nil)
  193. ui.removeTextArea(409,nil)
  194. ui.removeTextArea(410,nil)
  195. end
  196.  
  197. function systemON(s)
  198. object = true
  199. notest = true
  200. timp_test = false
  201. np = true
  202. maper = true
  203. nunte = true
  204. Fly = true
  205. respawn = true
  206. canTeleport = {}
  207. canExplosion = {}
  208. medExplosion = {}
  209. maxExplosion = {}
  210. cheese = true
  211. shaman = true
  212. vampire = true
  213. meep = true
  214. vipCheese = true
  215. playerVictory = true
  216. vipEvent = true
  217. vipIce = true
  218. vipGround = true
  219. vipParticle = true
  220. speedDr = true
  221. speedSt = true
  222. timeM = true
  223. trambel = true
  224. home = true
  225. grounds = {}
  226. teren = {}
  227. terenuri = {}
  228. gheata = {}
  229. gheatam = {}
  230. gheatama = {}
  231. tramb = {}
  232. trambu = {}
  233. trambul = {}
  234. cioco = {}
  235. ciocol = {}
  236. ciocola = {}
  237. particle = {}
  238. particle_1 = {}
  239. particle_2 = {}
  240. particle_3 = {}
  241. ui.addTextArea(403,"<p align='center'><a href='event:tp'><b>Tp: <r>OFF</a></p>",nil,5,20,65,16,0x4F2B18,0x26140B,0.6,true)
  242. ui.addTextArea(409,"<p align='center'><a href='event:expl'><b>Exp: <r>OFF</a></p>",nil,78,20,69,16,0x4F2B18,0x26140B,0.6,true)
  243. ui.addTextArea(410,"<p align='center'><a href='event:meniu'><b>Menu</a></p>",nil,155,20,45,16,0x4F2B18,0x26140B,0.6,true)
  244. ui.removeTextArea(1221,nil)
  245. end
  246.  
  247. function eventPlayerGetCheese(name)
  248. if killcheese then
  249. tfm.exec.movePlayer(name,400, 600,offset,0,0,offset)
  250. end
  251. if nokill then
  252. tfm.exec.respawnPlayer(name)
  253. end
  254. end
  255.  
  256. function eventPlayerWon(name,timeElapsed)
  257. if win then
  258. tfm.exec.setPlayerScore(name,5,true)
  259. end
  260. if nowin then
  261. tfm.exec.respawnPlayer(name)
  262. end
  263. end
  264.  
  265. function eventPlayerDied(name)
  266. if die then
  267. tfm.exec.setPlayerScore(name,-5,true)
  268. end
  269. if nodie then
  270. tfm.exec.respawnPlayer(name)
  271. end
  272. end
  273. safk = {}
  274.  
  275.  
  276. function timer(name)
  277. for index,player in pairs(isafk) do
  278. ui.addTextArea(2,"<VP><B>[Concurs]</b> <N>Concursul incepe in <v><b>"..timp_normalpuncte.." s",player,6,380,x,20,0x4F2B18,0x26140B,1,true)
  279. end
  280. end
  281.  
  282.  
  283. brb = {}
  284. isAfk = {}
  285. afkTime = {}
  286. moveTime = {}
  287. afkRaison = {}
  288. id = {}
  289. idnumber = 50000
  290. timp = {}
  291.  
  292.  
  293. function afk(option1,option2,option3,option4)
  294.     if option1 == 'set' then
  295.         isAfk[option2] = false
  296.         timp[option2] = false
  297.         idnumber = idnumber + 1
  298.         id[option2] = idnumber
  299.         afkRaison[option2] = ""
  300.         afkTime[option2] = 0
  301.         moveTime[option2] = 0
  302.         tfm.exec.bindKeyboard(option2, 13, true, true)
  303.         for i = 0, 200 do
  304.             tfm.exec.bindKeyboard(option2, i, true, true)
  305.         end
  306.  
  307.     elseif option1 == 'start' then
  308.         isAfk = {}
  309.         afkTime = {}
  310.         afkRaison = {}
  311.         moveTime = {}
  312.         brb = {}
  313.         id = {}
  314.         idnumber = 50000
  315.         for name,player in pairs(tfm.get.room.playerList) do
  316.             afk('set',name)
  317.         end
  318.  
  319.     elseif option1 == 'noafk' then
  320.     timp[option2] = false
  321.         ui.removeTextArea(id[option2], all)
  322.  
  323.         isAfk[option2] = false
  324.         afkTime[option2] = 0
  325.  
  326.     elseif option1 == 'afkleave' then
  327.     timp[option2] = false
  328.         ui.removeTextArea(id[option2], all)
  329.  
  330.         isAfk[option2] = false
  331.         afkTime[option2] = 250
  332.  
  333.     elseif option1 == 'afktime' then
  334.         for name,player in pairs(tfm.get.room.playerList) do
  335.             afkTime[name] = afkTime[name] + 0.5
  336.                 if isAfk[name] then
  337.                     afkRaison[name] = 'Auto AFK'
  338.                 else
  339.                     if afkTime[name] == 240 then
  340.                     timp[name] = true
  341.                     table.insert(brb,name)
  342.                     afk('movetime',name) end
  343.             end
  344.         end
  345.  
  346.     elseif option1 == 'callback' then
  347.         if option3:sub(0,5) == "|AFK|" then
  348.             ui.addTextArea(10000, "<p align='center'><j><a href='event:closepopup'>Pour fermer , clique ici !</a><br>"..option3.."</p>", option2, 10, 30, 770,50)
  349.         elseif option3 == "closepopup" then
  350.             ui.removeTextArea(10000, option2)
  351.         end
  352.  
  353.     elseif option1 == 'command' then
  354.         if isAfk[option2] then
  355.             afk('noafk',option2)
  356.         else
  357.             isAfk[option2] = true
  358.             afkRaison[option2] = option3
  359.             afk('afk',option2)
  360.  
  361.         end
  362.     elseif option1 == 'movetime' then
  363.     for name,player in pairs(brb) do
  364.           moveTime[player] = moveTime[player] + 0.5
  365.           if timp[player] then
  366.            ui.addTextArea(id[player],"AFK",all,tfm.get.room.playerList[player].x-13,tfm.get.room.playerList[player].y-40,28,18)
  367.     end
  368.     end
  369. end
  370. end
  371.  
  372. visibile={}
  373.  
  374. function ro_date(syst_date)
  375.     local month, day, year, hour, minute, seconds = syst_date:match("(%d+)/(%d+)/(%d+)%s+(%d+):(%d+):(%d+)")
  376.  
  377.     hour = hour+1
  378.     --if hour == 24 then
  379.         --hour = 00
  380.     --end
  381.     return month.."/"..day.."/"..year.." "..hour..":"..minute..":"..seconds..""
  382. end
  383.  
  384. timer=true is_visible = true current_date = ro_date(os.date("%m/%d/%Y %H:%M:%S")) end_date = '12/30/2019 23:59:59'
  385.  
  386. function show_content(who)
  387.     if current_date < end_date then
  388.         ui.addTextArea(1004,"<J><B><p align='center'>Anunt important!</p></B><N><br><p align='left'>A expirat codul, te rog sa il contactezi pe ERIKQ<br></p><br><br><p align='center'><font color='#aaaaaa' size='10'><B>Current time </B></font><br> <font color='#cccccc' size='10'>"..current_date.."</font></p><br><br><br><br><br><p align='right'><font color='#aaaaaa' size='10'><b>Anunt activ pana la date de </b></font></p><p align='right'><font color='#cccccc' size='10'>"..end_date.."</font></p>",who,0,0,1,1,0x4F2B18,0x26140B,0.9,true)
  389.     else
  390.         timer=false
  391.     end
  392. end
  393.  
  394.  
  395. function eventNewGame()
  396. if next then
  397. canTeleport = {}
  398. canExplosion = {}
  399. medExplosion = {}
  400. maxExplosion = {}
  401. ui.removeTextArea(403,nil)
  402. ui.removeTextArea(409,nil)
  403. ui.removeTextArea(410,nil)
  404. ui.removeTextArea(2,nil)
  405. tfm.exec.newGame(map[math.random(#map)])
  406. end
  407. for index,player in pairs(ban) do
  408. tfm.exec.addPhysicObject(1,-386,-202,{
  409. type=0,
  410. restitution=0.2,
  411. friction=0.3,
  412. width=40,
  413. height=10,
  414. groundCollision=true
  415. })
  416. tfm.exec.addPhysicObject(2,-386,-234,{
  417. type=0,
  418. restitution=0.2,
  419. friction=0.3,
  420. width=40,
  421. height=10,
  422. groundCollision=true
  423. })
  424. tfm.exec.addPhysicObject(3,-402,-217,{
  425. type=0,
  426. restitution=0.2,
  427. friction=0.3,
  428. width=10,
  429. height=40,
  430. groundCollision=true
  431. })
  432. tfm.exec.addPhysicObject(4,-365,-217,{
  433. type=0,
  434. restitution=0.2,
  435. friction=0.3,
  436. width=10,
  437. height=40,
  438. groundCollision=true
  439. })
  440. tfm.exec.movePlayer(player, -370, -217)
  441. tfm.exec.setPlayerScore(player, 0, false);
  442. end
  443. ba=0
  444. bb=0
  445. bc=0
  446. bd=0
  447. be=0
  448. bf=0
  449. bg=0
  450. bh=0
  451. bi=0
  452. bj=0
  453. bk=0
  454. bl=0
  455. bm=0
  456. bn=0
  457. bo=0
  458. bp=0
  459. bq=0
  460. tfm.exec.setNameColor("Erikq",0x009D9D)
  461. tfm.exec.setNameColor("Leeyaluki",0xFF0030)
  462. tfm.exec.setNameColor("Dayye",0x0082FF)
  463. tfm.exec.setNameColor("Kitzaa",0xDD004D)
  464. tfm.exec.setNameColor("Tucancitto",0x3D65A6)
  465. tfm.exec.setNameColor("Croeus",0x00E0E4)
  466. tfm.exec.setNameColor("Ayywa",0x00E0E4)
  467. tfm.exec.setNameColor("Andrulian",0x00E0E4)
  468. tfm.exec.setNameColor("Backhus",0x00E0E4)
  469. tfm.exec.setNameColor("Soltino",0x00E0E4)
  470. tfm.exec.setNameColor("Valyxbc",0x00E0E4)
  471. tfm.exec.setNameColor("Zuzuelena",0x00E0E4)
  472. tfm.exec.setNameColor("Gabyutzu",0x00E0E4)
  473. tfm.exec.setNameColor("Backhus",0x00E0E4)
  474. tfm.exec.setNameColor("Somnorosull",0x00E0E4)
  475. tfm.exec.setNameColor("Slowlyxd",0x00E0E4)
  476. tfm.exec.setNameColor("Claudaripper",0x00E0E4)
  477. tfm.exec.setNameColor("Bobytzza",0x00E0E4)
  478. tfm.exec.setNameColor("Hottboyyy",0x00E0E4)
  479. tfm.exec.setNameColor("Maximtd",0x00E0E4)
  480. tfm.exec.setNameColor("Kyasx",0x541110)
  481. tfm.exec.setNameColor("Marynel",0x00E0E4)
  482. ui.removeTextArea(2,nil)
  483. ui.removeTextArea(3,nil)
  484. end
  485.  
  486. function Script(name)
  487. for i,script in ipairs(script) do
  488. if name==script then
  489. return true
  490. end
  491. end
  492. return false
  493. end
  494. function Admin(name)
  495. for i,admin in ipairs(admin) do
  496. if name==admin then
  497. return true
  498. end
  499. end
  500. return false
  501. end
  502. function Vip(name)
  503. for i,vip in ipairs(vip) do
  504. if name==vip then
  505. return true
  506. end
  507. end
  508. return false
  509. end
  510. function Ban(name)
  511. for i,ban in ipairs(ban) do
  512. if name==ban then
  513. return true
  514. end
  515. end
  516. return false
  517. end
  518. function Brb(name)
  519. for i,brb in ipairs(brb) do
  520. if name==brb then
  521. return true
  522. end
  523. end
  524. return false
  525. end
  526. function eventMouse(name, x, y)
  527. if terenuri[name] then
  528. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  529. tfm.exec.addPhysicObject(ids,x,y,{height=70,width=70,friction=0.3,restitution=0.2})
  530. ids=(ids+1)%25
  531. end
  532. if teren[name] then
  533. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  534. tfm.exec.addPhysicObject(ids,x,y,{height=40,width=40,friction=0.3,restitution=0.2})
  535. ids=(ids+1)%25
  536. end
  537. if grounds[name] then
  538. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  539. tfm.exec.addPhysicObject(ids,x,y,{height=20,width=20,friction=0.3,restitution=0.2})
  540. ids=(ids+1)%25
  541. end
  542. if gheata[name] then
  543. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  544. tfm.exec.addPhysicObject(ids,x,y,{height=20,width=20,friction=0.0,restitution=0.2,type=1})
  545. ids=(ids+1)%25
  546. end
  547. if gheatam[name] then
  548. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  549. tfm.exec.addPhysicObject(ids,x,y,{height=40,width=40,friction=0.0,restitution=0.2,type=1})
  550. ids=(ids+1)%25
  551. end
  552. if gheatama[name] then
  553. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  554. tfm.exec.addPhysicObject(ids,x,y,{height=70,width=70,friction=0.0,restitution=0.2,type=1})
  555. ids=(ids+1)%25
  556. end
  557. if tramb[name] then
  558. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  559. tfm.exec.addPhysicObject(ids,x,y,{height=20,width=20,friction=0.0,restitution=1.2,type=2})
  560. ids=(ids+1)%25
  561. end
  562. if trambu[name] then
  563. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  564. tfm.exec.addPhysicObject(ids,x,y,{height=40,width=40,friction=0.0,restitution=1.2,type=2})
  565. ids=(ids+1)%25
  566. end
  567. if trambul[name] then
  568. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  569. tfm.exec.addPhysicObject(ids,x,y,{height=70,width=70,friction=0.0,restitution=1.2,type=2})
  570. ids=(ids+1)%25
  571. end
  572. if cioco[name] then
  573. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  574. tfm.exec.addPhysicObject(ids,x,y,{height=20,width=20,friction=20.0,restitution=0.2,type=4})
  575. ids=(ids+1)%25
  576. end
  577. if ciocol[name] then
  578. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  579. tfm.exec.addPhysicObject(ids,x,y,{height=40,width=40,friction=20.0,restitution=0.2,type=4})
  580. ids=(ids+1)%25
  581. end
  582. if ciocola[name] then
  583. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  584. tfm.exec.addPhysicObject(ids,x,y,{height=70,width=70,friction=20.0,restitution=0.2,type=4})
  585. ids=(ids+1)%25
  586. end
  587. if canTeleport[name] then
  588. tfm.exec.movePlayer(name, x, y)
  589. end
  590. if canExplosion[name] then
  591. tfm.exec.displayParticle(2,x,y,1,0,0,0,nil)
  592. tfm.exec.displayParticle(2,x,y,-1,0,0,0,nil)
  593. tfm.exec.displayParticle(2,x,y,2,0,0,0,nil)
  594. tfm.exec.displayParticle(2,x,y,-2,0,0,0,nil)
  595. tfm.exec.displayParticle(2,x,y,0,1,0,0,nil)
  596. tfm.exec.displayParticle(2,x,y,0,-1,0,0,nil)
  597. tfm.exec.displayParticle(2,x,y,0,2,0,0,nil)
  598. tfm.exec.displayParticle(2,x,y,0,-2,0,0,nil)
  599. tfm.exec.explosion(x,y,10,100,true)
  600. end
  601. if medExplosion[name] then
  602. tfm.exec.displayParticle(2,x,y,1,0,0,0,nil)
  603. tfm.exec.displayParticle(2,x,y,-1,0,0,0,nil)
  604. tfm.exec.displayParticle(2,x,y,2,0,0,0,nil)
  605. tfm.exec.displayParticle(2,x,y,-2,0,0,0,nil)
  606. tfm.exec.displayParticle(2,x,y,0,1,0,0,nil)
  607. tfm.exec.displayParticle(2,x,y,0,-1,0,0,nil)
  608. tfm.exec.displayParticle(2,x,y,0,2,0,0,nil)
  609. tfm.exec.displayParticle(2,x,y,0,-2,0,0,nil)
  610. tfm.exec.explosion(x,y,20,140,true)
  611. end
  612. if maxExplosion[name] then
  613. tfm.exec.displayParticle(2,x,y,1,0,0,0,nil)
  614. tfm.exec.displayParticle(2,x,y,-1,0,0,0,nil)
  615. tfm.exec.displayParticle(2,x,y,2,0,0,0,nil)
  616. tfm.exec.displayParticle(2,x,y,-2,0,0,0,nil)
  617. tfm.exec.displayParticle(2,x,y,0,1,0,0,nil)
  618. tfm.exec.displayParticle(2,x,y,0,-1,0,0,nil)
  619. tfm.exec.displayParticle(2,x,y,0,2,0,0,nil)
  620. tfm.exec.displayParticle(2,x,y,0,-2,0,0,nil)
  621. tfm.exec.explosion(x,y,60,140,true)
  622. end
  623. if particle[name] then
  624. ui.addTextArea(1997, "<a href='event:stop_particle'>Oprire particulă</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  625. tfm.exec.displayParticle(5,x,y,math.random(-5,5),math.random(-5,5),name)
  626. tfm.exec.displayParticle(5,x,y,math.random(-5,5),math.random(-5,5),name)
  627. tfm.exec.displayParticle(5,x,y,math.random(-5,5),math.random(-5,5),name)
  628. tfm.exec.displayParticle(5,x,y,math.random(-5,5),math.random(-5,5),name)
  629. tfm.exec.displayParticle(5,x,y,math.random(-5,5),math.random(-5,5),name)
  630. tfm.exec.displayParticle(5,x,y,math.random(-5,5),math.random(-5,5),name)
  631. tfm.exec.displayParticle(5,x,y,math.random(-5,5),math.random(-5,5),name)
  632. tfm.exec.displayParticle(5,x,y,math.random(-5,5),math.random(-5,5),name)
  633. tfm.exec.displayParticle(5,x,y,math.random(-5,5),math.random(-5,5),name)
  634. tfm.exec.displayParticle(5,x,y,math.random(-10,10),math.random(-10,10),name)
  635. tfm.exec.displayParticle(5,x,y,math.random(-10,10),math.random(-10,10),name)
  636. tfm.exec.displayParticle(5,x,y,math.random(-10,10),math.random(-10,10),name)
  637. tfm.exec.displayParticle(5,x,y,math.random(-10,10),math.random(-10,10),name)
  638. end
  639. if particle_1[name] then
  640. ui.addTextArea(1997, "<a href='event:stop_particle'>Oprire particulă</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  641. tfm.exec.displayParticle(15,x,y,math.random(-5,5),math.random(-5,5),name)
  642. tfm.exec.displayParticle(16,x,y,math.random(-5,5),math.random(-5,5),name)
  643. tfm.exec.displayParticle(17,x,y,math.random(-5,5),math.random(-5,5),name)
  644. tfm.exec.displayParticle(18,x,y,math.random(-5,5),math.random(-5,5),name)
  645. tfm.exec.displayParticle(19,x,y,math.random(-5,5),math.random(-5,5),name)
  646. tfm.exec.displayParticle(15,x,y,math.random(-5,5),math.random(-5,5),name)
  647. tfm.exec.displayParticle(16,x,y,math.random(-5,5),math.random(-5,5),name)
  648. tfm.exec.displayParticle(17,x,y,math.random(-5,5),math.random(-5,5),name)
  649. tfm.exec.displayParticle(18,x,y,math.random(-5,5),math.random(-5,5),name)
  650. tfm.exec.displayParticle(19,x,y,math.random(-10,10),math.random(-10,10),name)
  651. tfm.exec.displayParticle(15,x,y,math.random(-10,10),math.random(-10,10),name)
  652. tfm.exec.displayParticle(18,x,y,math.random(-10,10),math.random(-10,10),name)
  653. tfm.exec.displayParticle(16,x,y,math.random(-10,10),math.random(-10,10),name)
  654. end
  655. if particle_2[name] then
  656. ui.addTextArea(1997, "<a href='event:stop_particle'>Oprire particulă</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  657. tfm.exec.displayParticle(0,x,y,math.random(-5,5),math.random(-5,5),name)
  658. tfm.exec.displayParticle(1,x,y,math.random(-5,5),math.random(-5,5),name)
  659. tfm.exec.displayParticle(2,x,y,math.random(-5,5),math.random(-5,5),name)
  660. tfm.exec.displayParticle(11,x,y,math.random(-5,5),math.random(-5,5),name)
  661. tfm.exec.displayParticle(13,x,y,math.random(-5,5),math.random(-5,5),name)
  662. tfm.exec.displayParticle(0,x,y,math.random(-5,5),math.random(-5,5),name)
  663. tfm.exec.displayParticle(1,x,y,math.random(-5,5),math.random(-5,5),name)
  664. tfm.exec.displayParticle(2,x,y,math.random(-5,5),math.random(-5,5),name)
  665. tfm.exec.displayParticle(11,x,y,math.random(-5,5),math.random(-5,5),name)
  666. tfm.exec.displayParticle(13,x,y,math.random(-10,10),math.random(-10,10),name)
  667. tfm.exec.displayParticle(0,x,y,math.random(-10,10),math.random(-10,10),name)
  668. tfm.exec.displayParticle(1,x,y,math.random(-10,10),math.random(-10,10),name)
  669. tfm.exec.displayParticle(2,x,y,math.random(-10,10),math.random(-10,10),name)
  670. end
  671. if particle_3[name] then
  672. ui.addTextArea(1997, "<a href='event:stop_particle'>Oprire particulă</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 0.6, true)
  673. tfm.exec.displayParticle(21,x,y,math.random(-5,5),math.random(-5,5),name)
  674. tfm.exec.displayParticle(22,x,y,math.random(-5,5),math.random(-5,5),name)
  675. tfm.exec.displayParticle(23,x,y,math.random(-5,5),math.random(-5,5),name)
  676. tfm.exec.displayParticle(24,x,y,math.random(-5,5),math.random(-5,5),name)
  677. tfm.exec.displayParticle(21,x,y,math.random(-5,5),math.random(-5,5),name)
  678. tfm.exec.displayParticle(22,x,y,math.random(-5,5),math.random(-5,5),name)
  679. tfm.exec.displayParticle(23,x,y,math.random(-5,5),math.random(-5,5),name)
  680. tfm.exec.displayParticle(24,x,y,math.random(-5,5),math.random(-5,5),name)
  681. tfm.exec.displayParticle(21,x,y,math.random(-5,5),math.random(-5,5),name)
  682. tfm.exec.displayParticle(22,x,y,math.random(-10,10),math.random(-10,10),name)
  683. tfm.exec.displayParticle(23,x,y,math.random(-10,10),math.random(-10,10),name)
  684. tfm.exec.displayParticle(24,x,y,math.random(-10,10),math.random(-10,10),name)
  685. tfm.exec.displayParticle(21,x,y,math.random(-10,10),math.random(-10,10),name)
  686. end
  687. end
  688. function eventPlayerRespawn(name)
  689. tfm.exec.setPlayerScore("Erikq",999,false)
  690. tfm.exec.setPlayerScore("Kyasx",999,false)
  691. tfm.exec.setPlayerScore("Dayye",999,false)
  692.  
  693. for index,player in pairs(ban) do
  694. tfm.exec.setPlayerScore(player, 0, false);
  695. tfm.exec.addPhysicObject(1,-386,-202,{
  696. type=0,
  697. restitution=0.2,
  698. friction=0.3,
  699. width=40,
  700. height=10,
  701. groundCollision=true
  702. })
  703. tfm.exec.addPhysicObject(2,-386,-234,{
  704. type=0,
  705. restitution=0.2,
  706. friction=0.3,
  707. width=40,
  708. height=10,
  709. groundCollision=true
  710. })
  711. tfm.exec.addPhysicObject(3,-402,-217,{
  712. type=0,
  713. restitution=0.2,
  714. friction=0.3,
  715. width=10,
  716. height=40,
  717. groundCollision=true
  718. })
  719. tfm.exec.addPhysicObject(4,-365,-217,{
  720. type=0,
  721. restitution=0.2,
  722. friction=0.3,
  723. width=10,
  724. height=40,
  725. groundCollision=true
  726. })
  727. tfm.exec.movePlayer(player, -370, -217)
  728. ui.addTextArea(187, "", nil, -421, -252, 82, 82, 0x324650, 0x000000, 1, true)
  729. ui.addTextArea(800,"",player,0,0,800,400,0x000001,0x000001,0.2,true)
  730. end
  731. ui.removeTextArea(9,name)
  732. tfm.exec.setNameColor("Erikq",0x009D9D)
  733. tfm.exec.setNameColor("Leeyaluki",0xFF0030)
  734. tfm.exec.setNameColor("Dayye",0x0082FF)
  735. tfm.exec.setNameColor("Kitzaa",0xDD004D)
  736. tfm.exec.setNameColor("Tucancitto",0x3D65A6)
  737. tfm.exec.setNameColor("Croeus",0x00E0E4)
  738. tfm.exec.setNameColor("Ayywa",0x00E0E4)
  739. tfm.exec.setNameColor("Andrulian",0x00E0E4)
  740. tfm.exec.setNameColor("Backhus",0x00E0E4)
  741. tfm.exec.setNameColor("Soltino",0x00E0E4)
  742. tfm.exec.setNameColor("Valyxbc",0x00E0E4)
  743. tfm.exec.setNameColor("Zuzuelena",0x00E0E4)
  744. tfm.exec.setNameColor("Gabyutzu",0x00E0E4)
  745. tfm.exec.setNameColor("Backhus",0x00E0E4)
  746. tfm.exec.setNameColor("Somnorosull",0x00E0E4)
  747. tfm.exec.setNameColor("Slowlyxd",0x00E0E4)
  748. tfm.exec.setNameColor("Claudaripper",0x00E0E4)
  749. tfm.exec.setNameColor("Bobytzza",0x00E0E4)
  750. tfm.exec.setNameColor("Hottboyyy",0x00E0E4)
  751. tfm.exec.setNameColor("Maximtd",0x00E0E4)
  752. tfm.exec.setNameColor("Kyasx",0x541110)
  753. tfm.exec.setNameColor("Marynel",0x00E0E4)
  754. ui.removeTextArea(2,nil)
  755. end
  756.  
  757. for name,player in pairs(tfm.get.room.playerList) do
  758. system.bindKeyboard (name, 32, true, true)
  759. system.bindKeyboard (name, 27, true, true)
  760. system.bindKeyboard (name, 77, true, true)
  761. system.bindKeyboard (name, 71, true, true)
  762. system.bindKeyboard (name, 72, true, true)
  763. system.bindKeyboard (name, 75, true, true)
  764. system.bindKeyboard (name, 74, true, true)
  765. system.bindKeyboard (name, 76, true, true)
  766. system.bindKeyboard (name, 85, true, true)
  767. system.bindKeyboard (name, 112, true, true)
  768. system.bindKeyboard (name, 113, true, true)
  769. system.bindKeyboard (name, 114, true, true)
  770. system.bindKeyboard (name, 115, true, true)
  771. system.bindKeyboard (name, 116, true, true)
  772. system.bindKeyboard (name, 122, true, true)
  773. system.bindKeyboard (name, 79, true, true)
  774. system.bindKeyboard (name, 80, true, true)
  775. system.bindKeyboard (name, 189, true, true)
  776. system.bindKeyboard (name, 106, true, true)
  777. system.bindKeyboard (name, 109, true, true)
  778. system.bindKeyboard (name, 123, true, true)
  779. system.bindKeyboard (name, 80, true, true)
  780. system.bindKeyboard (name, 40, true, true)
  781. system.bindKeyboard (name, 38, true, true)
  782. system.bindKeyboard (name, 83, true, true)
  783. system.bindKeyboard (name, 87, true, true)
  784. system.bindKeyboard (name, 69, true, true)
  785. system.bindKeyboard (name, 0, true, true)
  786. system.bindKeyboard (name, 2, true, true)
  787. system.bindKeyboard (name, 106, true, true)
  788. system.bindKeyboard (name, 187, true, true)
  789. system.bindKeyboard (name, 117, true, true)
  790. system.bindKeyboard (name, 36, true, true)
  791. system.bindKeyboard (name, 221, true, true)
  792. system.bindKeyboard (name, 219, true, true)
  793. system.bindKeyboard (name, 104, true, true)
  794. system.bindKeyboard (name, 100, true, true)
  795. system.bindKeyboard (name, 101, true, true)
  796. system.bindKeyboard (name, 102, true, true)
  797. system.bindKeyboard (name, 192, true, true)
  798. system.bindKeyboard (name, 118, true, true)
  799. system.bindKeyboard (name, 191, true, true)
  800. system.bindKeyboard (name, 119, true, true)
  801. system.bindMouse(name, true)
  802. end
  803.  
  804. function eventKeyboard(name,key,down,x,y)
  805. afk('noafk',name)
  806. if key == 32 then
  807. if Fly then
  808. tfm.exec.movePlayer(name,0,0,true,0,-70,false)
  809. end
  810. end
  811. if key == 77 then
  812. if cheese then
  813. Log = '<v>['..name..'] <n>a primit branza\n'..Log
  814. print("<BV>"..name.." <R>a primit <J>brânza")
  815. tfm.exec.giveCheese(name)
  816. end
  817. end
  818. if key == 71 then
  819. if playerVictory then
  820. Log = '<v>['..name..'] <n>a intrat automat\n'..Log
  821. print("<BV>"..name.." <R>a intrat <J>automat")
  822. tfm.exec.giveCheese(name)
  823. tfm.exec.playerVictory(name)
  824. end
  825. end
  826. if key == 72 then
  827. if respawn then
  828. Log = '<v>['..name..'] <n>s-a respawnat\n'..Log
  829. print("<BV>"..name.." <R>a <J>înviat")
  830. tfm.exec.respawnPlayer(name)
  831. end
  832. end
  833. if key == 74 then
  834. if shaman then
  835. Log = '<v>['..name..'] <n>este shaman\n'..Log
  836. print("<BV>"..name.." <R>este <CH>şaman")
  837. tfm.exec.setShaman(name)
  838. tfm.exec.disableAllShamanSkills(true)
  839. end
  840. end
  841. if key == 75 then
  842. if kill then
  843. print("<BV>"..name.." <R>s-a <J>sinucis")
  844. tfm.exec.killPlayer(name)
  845. Log = ' <v>['..name..'] <n>- a murit\n'..Log
  846. end
  847. end
  848. if key == 76 then
  849. if vampire then
  850. Log = '<r>['..name..'] <n>este <r>vampir\n'..Log
  851. print("<BV>"..name.." <R>este <J>vampir")
  852. tfm.exec.setVampirePlayer(name)
  853. end
  854. end
  855. if key == 85 then
  856. if meep then
  857. Log = '<v>['..name..'] <n>a activat <v>Meep\n'..Log
  858. print("<BV>"..name.." <R>a activat <V>Meep!")
  859. tfm.exec.giveMeep(name)
  860. end
  861. end
  862. if key == 192 then
  863. ui.showColorPicker(4,name,971818,name)
  864. end
  865. if key == 40 then
  866. ui.removeTextArea(3,nil)
  867. end
  868. if key == 38 then
  869. ui.removeTextArea(3,nil)
  870. end
  871. if key == 83 then
  872. ui.removeTextArea(3,nil)
  873. end
  874. if key == 87 then
  875. ui.removeTextArea(3,nil)
  876. end
  877. if key == 112 then
  878. if vipCheese then
  879. if Vip(name) then
  880. Log = '<ch>['..name..'] <n>a dat tuturor <j>branza\n'..Log
  881. print("<BV>"..name.." <R>a dat tuturor <J>brânza")
  882. for name in pairs(tfm.get.room.playerList) do tfm.exec.giveCheese(name) end
  883. elseif name~="vip" then
  884. ui.addPopup(100,0,""..vp.."",name,200,129,400);
  885. end
  886. end
  887. end
  888. if key == 113 then
  889. if Vip(name) then
  890. Log = '<ch>['..name..'] <n>a sters toate <r>obiectele\n'..Log
  891. print("<BV>"..name.." <R>a şters toate obiectele.")
  892. for key,val in pairs(tfm.get.room.objectList) do
  893. table.insert(ob, key)
  894. end
  895. for key,val in pairs(ob) do
  896. tfm.exec.removeObject(val)
  897. end
  898. ob = {}
  899. elseif name~="vip" then
  900. ui.addPopup(100,0,""..vp.."",name,200,129,400)
  901. end
  902. end
  903. if key == 114 then
  904. if vipEvent then
  905. if Vip(name) then
  906. Log = '<ch>['..name..'] <n>a intrat la <ch>Eveniment(VIP)\n'..Log
  907. ui.addTextArea(502,"<j>Event: <n> <b><p align='center'><a href='event:craciun'><ch>Crăciun</ch></a> <bl>| <n><a href='event:halloween'><G>Halloween</G></a> <bl>| <n><a href='event:halloween1'><G>Halloween1</G></a> <bl>| <n><a href='event:sf.val'><rose>Sf.Valentin</rose></a></a>",name,210,20,410,16,0x4F2B18,0x26140B,0.6,true)
  908. print("<bv>"..name.." <r>a intrat la <vp>eveniment <ch>(VIP)")
  909. elseif name~="vip" then
  910. Log = '<v>['..name..'] <n>a vrut sa intre la: <ch>Eveniment(VIP)<n>, insa nu are permisiunea de <ch>VIP\n'..Log
  911. ui.addPopup(100,0,""..vp.."",name,200,129,400)
  912. end
  913. end
  914. end
  915. if key == 115 then
  916. if vipIce then
  917. if Vip(name) then
  918. Log = '<ch>['..name..'] <n>il incheata pe:\n'..Log
  919. print("<BV>"..name.." <R>îl îngheaţă pe:")
  920. ui.addPopup(1,2,"<p align='center'><b>Scrie numele jucătorului pe care doreşti să-l îngheţi. <J>Prima literă trebuie să fie cu literă mare. Exemplu: Erikq</p></b>",name,300,200,200)
  921. elseif name~="vip" then
  922. Log = '<v>['..name..'] <n>a vrut sa intre la comanda: <ch>F2<n>, insa nu are permisiunea de <ch>VIP\n'..Log
  923. ui.addPopup(100,0,""..vp.."",name,200,129,400)
  924. end
  925. end
  926. end
  927. if key == 116 then
  928. if vipGround then
  929. if Vip(name) then
  930. Log = ' <v>['..name..'] <n>a intrat la sectia <ch>teren\n'..Log
  931. print("<BV>"..name.." <R>a intrat la: <J>Teren")
  932. ui.addTextArea(905,"<p align='center'><a href='event:teren20'><b><font color='#8B5300'>L<R>1</font></b></a></p>",name,64,45,30,16,0x4F2B18,0x26140B,0.6,true)
  933. ui.addTextArea(915,"<p align='center'><a href='event:teren40'><b><font color='#8B5300'>L<R>2</font></b></a></p>",name,102,45,30,16,0x4F2B18,0x26140B,0.6,true)
  934. ui.addTextArea(925,"<p align='center'><a href='event:teren70'><b><font color='#8B5300'>L<R>3</font></b></a></p>",name,140,45,30,16,0x4F2B18,0x26140B,0.6,true)
  935. ui.addTextArea(10,"<p align='center'><a href='event:gheata20'><b><CH>G<R>1</b></a></p>",name,178,45,30,16,0x4F2B18,0x26140B,0.6,true)
  936. ui.addTextArea(11,"<p align='center'><a href='event:gheata40'><b><CH>G<R>2</b></a></p>",name,216,45,30,16,0x4F2B18,0x26140B,0.6,true)
  937. ui.addTextArea(12,"<p align='center'><a href='event:gheata70'><b><CH>G<R>3</b></a></p>",name,254,45,30,16,0x4F2B18,0x26140B,0.6,true)
  938. ui.addTextArea(13,"<p align='center'><a href='event:tramb20'><b><font color='#8401B4'>T</font><R>1</b></a></p>",name,292,45,30,16,0x4F2B18,0x26140B,0.6,true)
  939. ui.addTextArea(14,"<p align='center'><a href='event:tramb40'><b><font color='#8401B4'>T</font><R>2</b></a></p>",name,330,45,30,16,0x4F2B18,0x26140B,0.6,true)
  940. ui.addTextArea(15,"<p align='center'><a href='event:tramb70'><b><font color='#8401B4'>T</font><R>3</b></a></p>",name,368,45,30,16,0x4F2B18,0x26140B,0.6,true)
  941. ui.addTextArea(16,"<p align='center'><a href='event:coco20'><b><font color='#3E1F00'>C</font><R>1</b></a></p>",name,406,45,30,16,0x4F2B18,0x26140B,0.6,true)
  942. ui.addTextArea(17,"<p align='center'><a href='event:coco40'><b><font color='#3E1F00'>C</font><R>2</b></a></p>",name,444,45,30,16,0x4F2B18,0x26140B,0.6,true)
  943. ui.addTextArea(18,"<p align='center'><a href='event:coco70'><b><font color='#3E1F00'>C</font><R>3</b></a></p>",name,482,45,30,16,0x4F2B18,0x26140B,0.6,true)
  944. elseif name~="vip" then
  945. Log = '<v>['..name..'] <n>a vrut sa intre la: <ch>Teren<n>, insa nu are permisiunea de <ch>VIP\n'..Log
  946. ui.addPopup(100,0,""..vp.."",name,200,129,400);
  947. end
  948. end
  949. end
  950. if key == 117 then
  951. if vipParticle then
  952. if Vip(name) then
  953. Log = ' <v>['..name..'] <n>a intrat la sectia <ch>particula\n'..Log
  954. ui.addTextArea(502,"<j>Artificii: <n> <b><p align='center'><a href='event:particle'><rose>inimi</rose></a> <bl>| <a href='event:particle_1'><CH>++</CH></a> <bl>| <a href='event:particle_2'><BV>artificii</BV></a> <bl>| <a href='event:particle_3'><j>confeti</j></a> <bl>| ",name,210,20,410,16,0x4F2B18,0x26140B,0.6,true)
  955. elseif name~="vip" then
  956. Log = '<v>['..name..'] <n>a vrut sa intre la: <ch>particula<n>, insa nu are permisiunea de <ch>VIP\n'..Log
  957. ui.addPopup(100,0,""..vp.."",name,200,129,400);
  958. end
  959. end
  960. end
  961. if key == 79 then
  962. if object then
  963. Log = ' <v>['..name..'] <n>a intrat la sectia obiecte\n'..Log
  964. ui.addPopup(11,0,"Momentat nu functioneaza aceasta comanda. Vom rezolva problema cat de curand",name,210,17,220);
  965. print("<BV>"..name.." <R>vrea să intre la: <J>Obiecte")
  966. end
  967. end
  968. if key == 27 then
  969. Log = ' <v>['..name..'] <n>- ESC\n'..Log
  970. print("<BV>"..name.." <J>Esc")
  971. ui.removeTextArea(11,name)
  972. ui.removeTextArea(805,name)
  973. ui.removeTextArea(806,name)
  974. ui.removeTextArea(905,name)
  975. ui.removeTextArea(906,name)
  976. ui.removeTextArea(915,name)
  977. ui.removeTextArea(916,name)
  978. ui.removeTextArea(925,name)
  979. ui.removeTextArea(926,name)
  980. ui.removeTextArea(10,name)
  981. ui.removeTextArea(12,name)
  982. ui.removeTextArea(13,name)
  983. ui.removeTextArea(14,name)
  984. ui.removeTextArea(15,name)
  985. ui.removeTextArea(16,name)
  986. ui.removeTextArea(17,name)
  987. ui.removeTextArea(18,name)
  988. ui.removeTextArea(502,name)
  989. ui.removeTextArea(69,name)
  990. ui.removeTextArea(889,name)
  991. ui.removeTextArea(801,name)
  992. ui.removeTextArea(802,name)
  993. ui.removeTextArea(803,name)
  994. ui.removeTextArea(804,name)
  995. ui.removeTextArea(805,name)
  996. ui.removeTextArea(806,name)
  997. ui.removeTextArea(807,name)
  998. ui.removeTextArea(1009,name)
  999. ui.removeTextArea(1010,name)
  1000. ui.removeTextArea(1019,name)
  1001. ui.removeTextArea(1021,name)
  1002. ui.removeTextArea(1029,name)
  1003. ui.removeTextArea(1000,name)
  1004. ui.removeTextArea(1001,name)
  1005. ui.removeTextArea(1002,name)
  1006. ui.removeTextArea(2000,name)
  1007. ui.removeTextArea(2002,name)
  1008. ui.removeTextArea(810,name)
  1009. ui.removeTextArea(811,name)
  1010. ui.removeTextArea(812,name)
  1011. ui.removeTextArea(813,name)
  1012. ui.removeTextArea(814,name)
  1013. end
  1014. if key == 221 then
  1015. if speedDr then
  1016. tfm.exec.movePlayer(name,0,0,true,50,0,true)
  1017. end
  1018. end
  1019. if key == 219 then
  1020. if speedSt then
  1021. tfm.exec.movePlayer(name,0,0,true,-50,0,true)
  1022. end
  1023. end
  1024. if key == 189 then
  1025. if timeM then
  1026. Log = ' <v>['..name..'] <n>vrea sa modifice timpul\n'..Log
  1027. print("<BV>"..name.." <R>vrea să modifice <J>timpul.")
  1028. ui.addPopup(9,2,"Modifică timpul.",name,400,200,200)
  1029. end
  1030. end
  1031. if key == 106 then
  1032. if Admin(name) then
  1033. Log = ' <r>['..name..'] <n>vrea sa restarteze <v>CMD-ul\n'..Log
  1034. print("<BV>"..name.." <V>vrea să restarteze CMD-ul.")
  1035. t=10001
  1036. elseif name~="admin" then
  1037. Log = ' <v>['..name..'] <n>- vrea sa restarteze <v>CMD-ul <n>insa nu are permisiunea de <r>administrator\n'..Log
  1038. print("<VP>"..name.." <r>a vrut să restarteze <v>CMD-ul<n>, însă nu are permisiunea de administrator")
  1039. ui.addPopup(100,0,"Nu ai permisiunea de a restarta comenzile.",name,200,129,400)
  1040. end
  1041. end
  1042. if key == 109 then
  1043. if Script(name) then
  1044. Log = ' <r>['..name..'] <n>vrea sa inchida <v>CMD-ul\n'..Log
  1045. print("<BV>"..name.." <V>vrea sa închidă CMD-ul.")
  1046. t=10031
  1047. elseif name~="script" then
  1048. Log = ' <v>['..name..'] <n>- vrea sa inchida <v>CMD-ul <n>insa nu are permisiunea de <r>administrator\n'..Log
  1049. print("<VP>"..name.." <r>a vrut să închidă <v>CMD-ul<n>, însă nu are permisiunea de administrator")
  1050. ui.addPopup(100,0,"Nu ai permisiunea de a închide comenzile.",name,200,129,400)
  1051. end
  1052. end
  1053. if key == 123 then
  1054. if Admin(name) then
  1055. ui.addTextArea(502,"<p align='center'><a href='event:ban'><ont color='#F8FF00'><b>Ban</b></a> <BL>| <a href='event:grade'><b><V>AddAdm</b></a> <BL>| <font color='#F8FF00'><a href='event:unbanall'><b>UnbanAll</font></b></a><BL> | <font color='#F8FF00'><a href='event:unban'>Unban<b></a> <BL>| <R><a href='event:block'>BlockAll<b></a> <BL>| <a href='event:chamall'><b><V>SamAll</b></a> <BL>| <a href='event:reports'>Raportari</a> <BL>| <a href='event:killall'><b><V>Kill all</b></a> <BL>| <a href='event:allwin'><V><b>WinAll</b></a> <BL>| <a href='event:S.I.'>S.I.</a>",name,210,20,585,16,0x4F2B18,0x26140B,0.6,true)
  1056. ui.addTextArea(1009,"<p align='center'><a href='event:explmed'><b>Med: <font color='#F96868'>OFF</font></b></a></p>",name,5,44,69,16,0x4F2B18,0x26140B,0.6,true)
  1057. ui.addTextArea(1019,"<p align='center'><a href='event:explmax'><b>Max: <font color='#F96868'>OFF</font></b></a></p>",name,82,44,69,16,0x4F2B18,0x26140B,0.6,true)
  1058.  
  1059. elseif name~="admin" then
  1060. Log = ' <v>['..name..'] <n>- a vrut sa deschida <r>Meniul Admin <n>insa nu are permisiunea de <r>administrator\n'..Log
  1061. print("<VP>"..name.." <r>a vrut să deschidă meniul <J>Admin, <n>însă nu are permisiunea de administrator")
  1062. ui.addPopup(100,0,""..adm.."",name,100,200,400)
  1063. end
  1064. end
  1065. if key == 80 then
  1066. Log = ' <v>['..name..'] <n>vrea sa <bl>Raporteze\n'..Log
  1067. print("<r>"..name.." <bl>vrea să raporteze")
  1068. ui.addPopup(1000,2,"Scrie motivul jucătorului raportat",name,350,200,nil,nil,true)
  1069.  
  1070. ui.addPopup(999,2,"<b>Raportează un jucător</b><br><br>Introdu jucătorul (Scrie numele jucătorului):",name,350,200,nil,nil,true)
  1071. end
  1072. if key == 69 then
  1073. z=players[name].z
  1074. if players[name].time<=os.time()-1000 then
  1075. tfm.exec.addShamanObject(34,x+12*z,y-7,0,17*z,-2,false)
  1076. players[name].time=os.time()
  1077. end
  1078. elseif key==0 then
  1079. players[name].z=-1
  1080. elseif key==2 then
  1081. players[name].z=1
  1082. end
  1083. if key == 187 then
  1084. if tramb then
  1085. tfm.exec.movePlayer(name,0,0,true,0,600,true)
  1086. end
  1087. end
  1088. if key == 36 then
  1089. if home then
  1090. Log = ' <v>['..name..'] <n>- <R>a dezactivat comenzile <VP>(Activate de EL/EA)\n'..Log
  1091. print("<VP>"..name.." <R>a dezactivat comenzile <VP>(Activate de EL/EA)")
  1092. ui.addTextArea(1, "<font size='10'><J>TribeHouse <a href='event:version'><v>Version "..version.."</v></a>", nil, 0, 385, x, 20, nil,nil,0,true)
  1093. ui.addTextArea(403,"<p align='center'><a href='event:tp'><b>Tp : <r>OFF</a></p>",name,5,20,65,16,0x4F2B18,0x26140B,0.6,true)
  1094. ui.addTextArea(409,"<p align='center'><a href='event:expl'><b>Exp : <r>OFF</a></p>",name,78,20,69,16,0x4F2B18,0x26140B,0.6,true)
  1095. ui.removeTextArea(502,name)
  1096. ui.removeTextArea(1009,name)
  1097. ui.removeTextArea(1019,name)
  1098. ui.removeTextArea(925,name)
  1099. ui.removeTextArea(926,name)
  1100. ui.removeTextArea(916,name)
  1101. ui.removeTextArea(915,name)
  1102. ui.removeTextArea(905,name)
  1103. ui.removeTextArea(906,name)
  1104. ui.removeTextArea(10,name)
  1105. ui.removeTextArea(11,name)
  1106. ui.removeTextArea(12,name)
  1107. ui.removeTextArea(13,name)
  1108. ui.removeTextArea(14,name)
  1109. ui.removeTextArea(15,name)
  1110. ui.removeTextArea(16,name)
  1111. ui.removeTextArea(17,name)
  1112. ui.removeTextArea(18,name)
  1113. canTeleport[name] = false
  1114. canExplosion[name] = false
  1115. medExplosion[name] = false
  1116. maxExplosion[name] = false
  1117. grounds[name] = false
  1118. teren[name] = false
  1119. terenuri[name] = false
  1120. gheata[name] = false
  1121. gheatam[name] = false
  1122. gheatama[name] = false
  1123. tramb[name] = false
  1124. trambu[name] = false
  1125. trambul[name] = false
  1126. cioco[name] = false
  1127. ciocol[name] = false
  1128. ciocola[name] = false
  1129. particle[name] = false
  1130. particle_1[name] = false
  1131. particle_2[name] = false
  1132. particle_3[name] = false
  1133. end
  1134. end
  1135. if key == 118 then
  1136. if Vip(name) then
  1137. Log = ' <ch>['..name..'] <n>a intrat la emotii\n'..Log
  1138. print("<bv>["..name.."] <r>a intrat la emoţii")
  1139. ui.addTextArea(11,"<p align='center'><BL>| <n><a href='event:danseaza'><b>dansează</b></a> <BL>| <n><a href='event:rade'><b>râzi</b></a> <BL>| <n><a href='event:plange'><b>plânge</b></a> <BL>| <n><a href='event:pupici'><b>sărută</b></a> <BL>| <n><a href='event:nervos'><b>nervos</b></a> <BL>| <n><a href='event:aplauda'><b>aplaudă</b></a> <BL>| <n><a href='event:doarme'><b>dormi</b></a> <BL>| <n><a href='event:facepalm'><b>facepalm</b></a> <BL>| <n><a href='event:confeti'><b>stai</b></a> <BL>| <n><a href='event:nextE'><b>>>></b></a>",name,210,20,580,16,0x4F2B18,0x26140B,0.6,true)
  1140. elseif name~="vip" then
  1141. ui.addPopup(100,0,""..vp.."",name,200,129,400);
  1142. end
  1143. end
  1144. if key == 191 then
  1145. print("<bv>"..name.." <r>doreşte să trimită un mesaj:")
  1146. ui.addPopup(5,0,"<p align='center'><font size='15'>Comanda nu funcţionează. Anulat.</font></p>",name,200,129,400)
  1147. end
  1148. end
  1149.  
  1150.  
  1151. function eventNewPlayer(nm)
  1152. afk('set',nm)
  1153. if notest then
  1154. ui.addTextArea(403,"<p align='center'><a href='event:tp'><b>Tp : <r>OFF</a></p>",nm,5,20,65,16,0x4F2B18,0x26140B,0.6,true)
  1155. ui.addTextArea(409,"<p align='center'><a href='event:expl'><b>Exp : <r>OFF</a></p>",nm,78,20,69,16,0x4F2B18,0x26140B,0.6,true)
  1156. ui.addTextArea(410,"<p align='center'><a href='event:meniu'><b>Menu</a></p>",nm,155,20,45,16,0x4F2B18,0x26140B,0.6,true)
  1157. end
  1158. tfm.exec.setPlayerScore("Erikq",999,false)
  1159. tfm.exec.setPlayerScore("Kyasx",999,false)
  1160. tfm.exec.setPlayerScore("Dayye",999,false)
  1161.  
  1162. for index,player in pairs(ban) do
  1163. tfm.exec.addPhysicObject(1,-386,-202,{
  1164. type=0,
  1165. restitution=0.2,
  1166. friction=0.3,
  1167. width=40,
  1168. height=10,
  1169. groundCollision=true
  1170. })
  1171. tfm.exec.addPhysicObject(2,-386,-234,{
  1172. type=0,
  1173. restitution=0.2,
  1174. friction=0.3,
  1175. width=40,
  1176. height=10,
  1177. groundCollision=true
  1178. })
  1179. tfm.exec.addPhysicObject(3,-402,-217,{
  1180. type=0,
  1181. restitution=0.2,
  1182. friction=0.3,
  1183. width=10,
  1184. height=40,
  1185. groundCollision=true
  1186. })
  1187. tfm.exec.addPhysicObject(4,-365,-217,{
  1188. type=0,
  1189. restitution=0.2,
  1190. friction=0.3,
  1191. width=10,
  1192. height=40,
  1193. groundCollision=true
  1194. })
  1195. tfm.exec.movePlayer(player, -370, -217)
  1196. ui.addTextArea(187, "", nil, -421, -252, 82, 82, 0x324650, 0x000000, 1, true)
  1197. ui.addTextArea(800,"",player,0,0,800,400,0x000001,0x000001,0.2,true)
  1198. tfm.exec.setPlayerScore(player, 0, false);
  1199. end
  1200. players[nm]={time=0;z=1}
  1201. ui.addTextArea(9, "Apasa tasta <V>H <n>dacă nu te-ai respawnat automat", nm, 406, 380, 282, 22, 0x163542, nil, 1, true)
  1202. ui.addTextArea(1, "<font size='10'><j><i><b>TribeHouse <vp>version "..version.."", nil, 10, 385, x, 20, nil,nil,0,true)
  1203. ui.addTextArea(2,"<VP><B>"..nm.."</b> <N>a intrat în casa tribului<VP> :)",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  1204. Log = ' <vp><b>['..nm..']</b> a intrat in casa tribului <vp>:)\n'..Log
  1205. timp_MesajBot = true
  1206. ui.addTextArea(2,"<j><b>[Tribe]</b><n> Bun venit în casa tribului <v><b>"..nm.." <vp>:)",nm,6,380,x,20,0x4F2B18,0x26140B,1,true)
  1207. print("<VP><B>"..nm.."</B><R> a accesat casa tribului <VP>:)")
  1208. for name,player in pairs(tfm.get.room.playerList) do
  1209. system.bindKeyboard (name, 32, true, true)
  1210. system.bindKeyboard (name, 27, true, true)
  1211. system.bindKeyboard (name, 77, true, true)
  1212. system.bindKeyboard (name, 71, true, true)
  1213. system.bindKeyboard (name, 72, true, true)
  1214. system.bindKeyboard (name, 75, true, true)
  1215. system.bindKeyboard (name, 74, true, true)
  1216. system.bindKeyboard (name, 76, true, true)
  1217. system.bindKeyboard (name, 85, true, true)
  1218. system.bindKeyboard (name, 112, true, true)
  1219. system.bindKeyboard (name, 113, true, true)
  1220. system.bindKeyboard (name, 114, true, true)
  1221. system.bindKeyboard (name, 115, true, true)
  1222. system.bindKeyboard (name, 116, true, true)
  1223. system.bindKeyboard (name, 122, true, true)
  1224. system.bindKeyboard (name, 79, true, true)
  1225. system.bindKeyboard (name, 80, true, true)
  1226. system.bindKeyboard (name, 189, true, true)
  1227. system.bindKeyboard (name, 106, true, true)
  1228. system.bindKeyboard (name, 109, true, true)
  1229. system.bindKeyboard (name, 123, true, true)
  1230. system.bindKeyboard (name, 80, true, true)
  1231. system.bindKeyboard (name, 40, true, true)
  1232. system.bindKeyboard (name, 38, true, true)
  1233. system.bindKeyboard (name, 83, true, true)
  1234. system.bindKeyboard (name, 87, true, true)
  1235. system.bindKeyboard (name, 69, true, true)
  1236. system.bindKeyboard (name, 0, true, true)
  1237. system.bindKeyboard (name, 2, true, true)
  1238. system.bindKeyboard (name, 106, true, true)
  1239. system.bindKeyboard (name, 187, true, true)
  1240. system.bindKeyboard (name, 117, true, true)
  1241. system.bindKeyboard (name, 36, true, true)
  1242. system.bindKeyboard (name, 221, true, true)
  1243. system.bindKeyboard (name, 219, true, true)
  1244. system.bindKeyboard (name, 104, true, true)
  1245. system.bindKeyboard (name, 100, true, true)
  1246. system.bindKeyboard (name, 101, true, true)
  1247. system.bindKeyboard (name, 102, true, true)
  1248. system.bindKeyboard (name, 192, true, true)
  1249. system.bindKeyboard (name, 118, true, true)
  1250. system.bindKeyboard (name, 191, true, true)
  1251. system.bindKeyboard (name, 119, true, true)
  1252. system.bindMouse(name, true)
  1253. end
  1254. end
  1255. function eventPlayerLeft(nm)
  1256. afk('afkleave',nm)
  1257. print("<R><B>"..nm.."</B><R> a părăsit casa tribului <VP>:(")
  1258. timp_MesajBot = true
  1259. Log = ' <r><b>['..nm..']</b> <n>- a parasit casa tribului <r>:(\n'..Log
  1260. ui.addTextArea(2,"<R><b>"..nm.."</b> <N>a părăsit casa tribului<R> :(",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  1261. end
  1262.  
  1263. resda = 0
  1264.  
  1265. function eventTextAreaCallback(id,name,c)
  1266. afk('callback',name,c)
  1267. if c=="meniu" then
  1268. if Vip(name) then
  1269. Log = '<r>A<ch>V<v>['..name..'] <n>a intrat la <vp>Menu\n'..Log
  1270. ui.addTextArea(801, "", name, 212, 95, 377, 229, 0xc47800, 0x000000, 1, true)
  1271. ui.addTextArea(802, "<J><p align='center'><font size='15'>Comenzile tribului</font></p>\n<CH><b>Comenzile funcţionează apăsând pe tasta respectivă</b>\n<N>Apasă <VP>Esc<N> pentru a închide tabelul\n<VP>M - <N>Primeşti brânza      <VP>O - <N>Obiecte</font>\n<VP>G - <N>AutoWin                 <VP>Esc - <N>Ieşire tabel\n<VP>H - <N>Respawn                <VP>P - <N>Raportează\n<VP>J - <N>Devii şaman            <VP>Home - <n>Dezactivezi\n<VP>K - <N>Mori                       <VP>= - <n>Trambulină\n<VP>L - <N>Devii vampir          <VP>!a - <n>Chat special <j>(Anonim)\n<VP>U - <N>Meep!                   <VP>!q text - <N>Chat special\n<VP>X - <N>Timp                     <vp>!np @code - <n>Adaugă o mapă\n<VP>[ - <N>Viteză (stânga)       <vp>!map <n>Îţi pune o mapă\n<VP>] - <N>Viteză (dreapta)     <vp>!test @code - <n>Testează o mapă \n<VP>-   <n>Schimbă timpul      <vp> !nunta <n>- Nunta oficiala\n<VP>~ - <n>Nume culoare", name, 219, 100, 364, 219, 0x0e242d, 0x000000, 1, true)
  1272. ui.addTextArea(803, "<a href='event:meniu'><b><J>Comenzi</J></b></a> <bl><b>|</b> <a href='event:vip'><CH><b>VIP</b></ch></a> <bl><b>|</b> <b><a href='event:admin'><r>Admin</r></a> <bl><b>|</b> <a href='event:regl'><rose>Jocuri</v></a> <bl><b>|</b> <a href='event:version'><v>Versiunea "..version.."</v></a> <bl><b>|</b> <a href='event:log'><v>Istoric</v></a>", name, 220, 338, x, 20, 0x0e242d, 0x000000, 1, true)
  1273. ui.addTextArea(804, "<a href='event:setari'><b>Setări</b></a>", name, 214, 68, 51, 16, 0x0e242d, 0x000000, 1, true)
  1274.  
  1275. elseif name~="vip" then
  1276. Log = '<v>['..name..'] a intrat la <vp>Meniu\n'..Log
  1277. print("<BV>"..name.." <BL>a intrat în <VP>Meniu")
  1278. ui.addTextArea(801, "", name, 212, 95, 377, 229, 0xc47800, 0x000000, 1, true)
  1279. ui.addTextArea(802, "<J><p align='center'><font size='15'>Comenzile tribului</font></p>\n<CH><b>Comenzile funcţionează apăsând pe tasta respectivă</b>\n<N>Apasă <VP>Esc<N> pentru a închide tabelul\n<VP>M - <N>Primeşti brânza      <VP>O - <N>Obiecte</font>\n<VP>G - <N>AutoWin                 <VP>Esc - <N>Ieşire tabel\n<VP>H - <N>Respawn                <VP>P - <N>Raportează\n<VP>J - <N>Devii şaman            <VP>Home - <n>Dezactivezi\n<VP>K - <N>Mori                       <VP>= - <n>Trambulină\n<VP>L - <N>Devii vampir          <VP>!a - <n>Chat special <j>(Anonim)\n<VP>U - <N>Meep!                   <VP>!q text - <N>Chat special\n<VP>X - <N>Timp                     <vp>!np @code - <n>Adaugă o mapă\n<VP>[ - <N>Viteză (stânga)       <vp>!map <n>Îţi pune o mapă\n<VP>] - <N>Viteză (dreapta)     <vp>!test @code - <n>Testează o mapă \n<VP>-   <n>Schimbă timpul      <vp> !nunta <n>- Nunta oficiala\n<VP>~ - <n>Nume culoare", name, 219, 100, 364, 219, 0x0e242d, 0x000000, 1, true)
  1280. ui.addTextArea(803, "<a href='event:meniu'><b><J>Comenzi</J></b></a> <bl><b>|</b> <a href='event:vip'><CH><b>VIP</b></ch></a> <bl><b>|</b> <b><a href='event:admin'><r>Admin</r></a> <bl><b>|</b> <a href='event:regl'><rose>Jocuri</v></a> <bl><b>|</b> <a href='event:version'><v>Versiunea "..version.."</v></a>", name, 245, 338, x, 20, 0x0e242d, 0x000000, 1, true)
  1281. ui.addTextArea(804, "<a href='event:setari'><b>Setări</b></a>", name, 214, 68, 51, 16, 0x0e242d, 0x000000, 1, true)
  1282. end
  1283. elseif c=="setari" then
  1284. print("<BV>"..name.." <BL>a intrat in <VP>Setări")
  1285. ui.addTextArea(802, "<J><p align='center'><font size='15'>Setările comenzilor</font></p><br><br><n><a href='event:remove'>Ascunde butoanele: Tp, Exp şi Menu</a>", name, 219, 100, 364, 219, 0xe242d, 0x0, 1, true)
  1286.  
  1287. elseif c=="resDa" then
  1288. ui.removeTextArea(801,name)
  1289. ui.removeTextArea(802,name)
  1290. ui.removeTextArea(803,name)
  1291. ui.removeTextArea(804,name)
  1292. ui.addTextArea(0,"<J><B>[Scrisoare de acord]</B><N> Asteapta putin pana cand iti da raspunsul",name,6,380,x,20,0x4F2B18,0x26140B,1,true)
  1293. timp_MesajBot = true
  1294. resda=resda+1
  1295. if resda == 2 then
  1296. timp_loading = false
  1297. timp_load = 15
  1298. ui.removeTextArea(0,nil)
  1299. resda=0
  1300. nunta(timp)
  1301. end
  1302. elseif c=="resNu" then
  1303. timp_loading = false
  1304. timp_load = 15
  1305. nunte = true
  1306. ui.removeTextArea(801,name)
  1307. ui.removeTextArea(802,name)
  1308. ui.removeTextArea(803,name)
  1309. ui.removeTextArea(804,name)
  1310. ui.addTextArea(801, "", sot, 212, 95, 377, 229, 0xc47800, 0x000000, 1, true)
  1311. ui.addTextArea(802, "<J><p align='center'><font size='15'>De la "..sotie.."</font></p>\n\n<n><font size='20'>Nu vreau sa ma marit cu tine "..sot.."</font><br><br><vp>ESC<n> pentru a inchide tabelul", sot, 219, 99, 364, 219, 0x0e242d, 0x000000, 1, true)
  1312. resda=0
  1313.  
  1314. elseif c=="resNu1" then
  1315. timp_loading = false
  1316. timp_load = 15
  1317. nunte = true
  1318. ui.removeTextArea(800,name)
  1319. ui.removeTextArea(801,name)
  1320. ui.removeTextArea(802,name)
  1321. ui.removeTextArea(803,name)
  1322. ui.removeTextArea(804,name)
  1323. resda=0
  1324. ui.addTextArea(801, "", sotie, 212, 95, 377, 229, 0xc47800, 0x000000, 1, true)
  1325. ui.addTextArea(802, "<J><p align='center'><font size='15'>De la "..sot.."</font></p>\n\n<n><font size='20'>Nu vreau sa ma casatoresc cu tine "..sotie.."</font><br><br><vp>ESC<n> pentru a inchide tabelul", sotie, 219, 99, 364, 219, 0x0e242d, 0x000000, 1, true)
  1326.  
  1327. elseif c=="dasot" then
  1328. movesotie=60
  1329. ui.removeTextArea(6000,sot)
  1330. ui.removeTextArea(6001,sot)
  1331. ui.addTextArea(0, "<font size='18'>Da, da sunt!</font>", nil, 108, 189, 123, 30, 0x324650, 0x000000, 1, true)
  1332.  
  1333. elseif c=="nusot" then
  1334. ui.removeTextArea(6000,sot)
  1335. ui.removeTextArea(6001,sot)
  1336. movesotie=200
  1337. movef = true
  1338. mover = false
  1339. ui.addTextArea(0, "<font size='18'>Nu, nu sunt!</font>", nil, 108, 189, 123, 30, 0x324650, 0x000000, 1, true)
  1340.  
  1341. elseif c=="dasotie" then
  1342. ui.removeTextArea(6000,sotie)
  1343. ui.removeTextArea(6001,sotie)
  1344. movesotie=95
  1345. ui.addTextArea(0, "<font size='18'>Da, da sunt!</font>", nil, 172, 189, 123, 30, 0x324650, 0x000000, 1, true)
  1346.  
  1347. elseif c=="nusotie" then
  1348. ui.removeTextArea(6000,sotie)
  1349. ui.removeTextArea(6001,sotie)
  1350. movesotie=300
  1351. movef = true
  1352. mover = false
  1353. ui.addTextArea(0, "<font size='18'>Nu, nu sunt!</font>", nil, 172, 189, 123, 30, 0x324650, 0x000000, 1, true)
  1354.  
  1355. elseif c=="darazsotie" then
  1356. ui.removeTextArea(6000,sotie)
  1357. ui.removeTextArea(6001,sotie)
  1358. movesotie=240
  1359. movef = true
  1360. tfm.exec.newGame(7257806)
  1361.  
  1362. elseif c=="nurazsotie" then
  1363. ui.removeTextArea(6000,sotie)
  1364. ui.removeTextArea(6001,sotie)
  1365. movesotie=233
  1366. movef = true
  1367.  
  1368. elseif c=="darazsot" then
  1369. ui.removeTextArea(6000,sot)
  1370. ui.removeTextArea(6001,sot)
  1371. movesotie=340
  1372. movef = true
  1373. tfm.exec.newGame(7257806)
  1374.  
  1375. elseif c=="nurazsot" then
  1376. ui.removeTextArea(6000,sot)
  1377. ui.removeTextArea(6001,sot)
  1378. movesotie=233
  1379. movef = true
  1380.  
  1381. elseif c=="butonul" then
  1382. ui.removeTextArea(0,nil)
  1383. movesotie=600
  1384. movef = true
  1385. ui.removeTextArea(6003,nil)
  1386. tfm.exec.removePhysicObject(1)
  1387.  
  1388.  
  1389. elseif c=="log" then
  1390. ui.addTextArea(802, Log:sub(1, 2000), name, 219, 100, 364, 219, 0x0e242d, 0x000000, 1, true)
  1391. ui.addTextArea(810, "<a href='event:log'><b>comenzi</b></a>", name, 600, 95, 61, 16, 0x0e242d, 0xc47800, 1, true)
  1392. ui.addTextArea(811, "<a href='event:system()'><b>System()</b></a>", name, 600, 142, x, 16, 0x0e242d, 0xc47800, 1, true)
  1393. ui.addTextArea(812, "<a href='event:text arg'><b>Text ARG</b></a>", name, 600, 196, 62, 16, 0x0e242d, 0xc47800, 1, true)
  1394.  
  1395. elseif c=="system()" then
  1396. ui.addTextArea(813, Logsystem:sub(1, 2000), name, 219, 100, 364, 219, 0x0e242d, 0x000000, 1, true)
  1397.  
  1398. elseif c=="text arg" then
  1399. ui.addTextArea(814, Logmsg:sub(1, 2000), name, 219, 100, 364, 219, 0x0e242d, 0x000000, 1, true)
  1400.  
  1401. elseif c=="remove" then
  1402. ui.addTextArea(1800, "Porneşte", name, 30, 383, 58, 21, 0x4f2b18, nil, 1, true)
  1403. ui.addTextArea(1801, "<font size='14'>Dacă vrei să-ţi apară butoanele apasă: <v>Porneşte<n>,</font> jos stânga", name, 218, 147, 362, 103, 0xe242d, 0xc47800, 1, true)
  1404. ui.addTextArea(1802, "<a href='event:removeconfirm'>Am înţeles</a>", name, 226, 221, 71, 20, 0x153745, 0x153745, 1, true)
  1405. ui.addTextArea(1803, "<a href='event:removecm'>Ascunde şi opreşte TP şi EXP", name, 315, 221, 175, 20, 0x153745, 0x153745, 1, true)
  1406. ui.addTextArea(1804, "<a href='event:cancel'>Anulează</a>", name, 507, 221, 63, 20, 0x153745, 0x153745, 1, true)
  1407. ui.removeTextArea(801,name)
  1408. ui.removeTextArea(802,name)
  1409. ui.removeTextArea(803,name)
  1410. ui.removeTextArea(804,name)
  1411. ui.removeTextArea(1,name)
  1412.  
  1413. elseif c=="nextE" then
  1414. ui.addTextArea(11,"<p align='center'><BL>| <n><a href='event:sit'><b>confeti</b></a> <BL>| <n><a href='event:flag'><b>11</b></a> <BL>| <n><a href='event:marsh'><b>bezea</b></a> <BL>| <n><a href='event:selfie'><b>selfie</b></a>",name,210,20,200,16,0x4F2B18,0x26140B,0.6,true)
  1415.  
  1416. elseif c=="oncm" then
  1417. print("<BV>"..name.." <r>a repornit <VP>butoanele TP şi EXP")
  1418. ui.addTextArea(1, "<font size='10'><j><i><b>TribeHouse <vp>version "..version.."", nil, 10, 385, x, 20, nil,nil,0,true)
  1419. ui.addTextArea(403,"<p align='center'><a href='event:tp'><b>Tp : <r>OFF</a></p>",name,5,20,65,16,0x4F2B18,0x26140B,0.6,true)
  1420. ui.addTextArea(409,"<p align='center'><a href='event:expl'><b>Exp : <r>OFF</a></p>",name,78,20,69,16,0x4F2B18,0x26140B,0.6,true)
  1421. ui.addTextArea(410,"<p align='center'><a href='event:meniu'><b>Menu</a></p>",name,155,20,45,16,0x4F2B18,0x26140B,0.6,true)
  1422. ui.removeTextArea(1800,name)
  1423.  
  1424. elseif c=="removecm" then
  1425. print("<BV>"..name.." <r>a ascuns butoanele şi a oprit <VP> TP, EXP şi Menu")
  1426. ui.addTextArea(1800, "<a href='event:oncm'>Porneşte</a>", name, 30, 383, 58, 21, 0x4f2b18, nil, 0, true)
  1427. canTeleport[name] = false
  1428. canExplosion[name] = false
  1429. ui.removeTextArea(1801,name)
  1430. ui.removeTextArea(1802,name)
  1431. ui.removeTextArea(1803,name)
  1432. ui.removeTextArea(1804,name)
  1433. ui.removeTextArea(403,name)
  1434. ui.removeTextArea(409,name)
  1435. ui.removeTextArea(410,name)
  1436.  
  1437.  
  1438. elseif c=="removeconfirm" then
  1439. print("<BV>"..name.." <r>a ascuns butoanele <VP>TP, EXP şi Menu")
  1440. ui.addTextArea(1800, "<a href='event:oncm'>Porneşte</a>", name, 30, 383, 58, 21, 0x4f2b18, 0, true)
  1441. ui.removeTextArea(1801,name)
  1442. ui.removeTextArea(1802,name)
  1443. ui.removeTextArea(1803,name)
  1444. ui.removeTextArea(1804,name)
  1445. ui.removeTextArea(403,name)
  1446. ui.removeTextArea(409,name)
  1447. ui.removeTextArea(410,name)
  1448.  
  1449. elseif c=="cancel" then
  1450. print("<BV>"..name.." <r>a <bl>anulat oprirea TP, Exp şi Menu")
  1451. ui.addTextArea(1, "<font size='10'><j><i><b>TribeHouse <vp>version "..version.."", nil, 10, 385, x, 20, nil,nil,0,true)
  1452. ui.removeTextArea(1800,name)
  1453. ui.removeTextArea(1801,name)
  1454. ui.removeTextArea(1802,name)
  1455. ui.removeTextArea(1803,name)
  1456. ui.removeTextArea(1804,name)
  1457.  
  1458. elseif c=="stop_particle" then
  1459. ui.removeTextArea(1997,name)
  1460. particle_2[name] = false
  1461. particle_3[name] = false
  1462. particle_1[name] = false
  1463. particle[name] = false
  1464.  
  1465. elseif c=="particle_3" then
  1466. print("<CH>"..name.." <r>a pornit particula<j> confeti")
  1467. ui.addTextArea(1997, "<a href='event:stop_particle'>Oprire particulă</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 1, true)
  1468. particle_3[name] = true
  1469. particle[name] = false
  1470. particle_1[name] = false
  1471. particle_2[name] = false
  1472.  
  1473. elseif c=="particle_2" then
  1474. print("<CH>"..name.." <r>a pornit particula<BV> artificii")
  1475. ui.addTextArea(1997, "<a href='event:stop_particle'>Oprire particulă</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 1, true)
  1476. particle_2[name] = true
  1477. particle_3[name] = false
  1478. particle_1[name] = false
  1479. particle[name] = false
  1480.  
  1481. elseif c=="particle_1" then
  1482. print("<CH>"..name.." <r>a pornit particula<CH> ++")
  1483. ui.addTextArea(1997, "<a href='event:stop_particle'>Oprire particulă</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 1, true)
  1484. particle_1[name] = true
  1485. particle[name] = false
  1486. particle_2[name] = false
  1487. particle_3[name] = false
  1488.  
  1489. elseif c=="particle" then
  1490. print("<CH>"..name.." <r>a pornit particula<rose> inimi")
  1491. particle[name] = true
  1492. ui.addTextArea(1997, "<a href='event:stop_particle'>Oprire particulă</a>", name, 694, 380, 101, 21, 0x4f2b18, nil, 1, true)
  1493. particle_1[name] = false
  1494. particle_2[name] = false
  1495. particle_3[name] = false
  1496.  
  1497. elseif c=="danseaza" then
  1498. print("<bv>["..name.."] <r>Ne-a pus să <vp>dansăm")
  1499. tfm.exec.playEmote (nil,0,nil)
  1500.  
  1501. elseif c=="rade" then
  1502. print("<bv>["..name.."] <r>Ne-a pus să <vp>râdem")
  1503. tfm.exec.playEmote (nil,1,nil)
  1504.  
  1505. elseif c=="plange" then
  1506. print("<bv>["..name.."] <r>Ne-a pus să <vp>plângem")
  1507. tfm.exec.playEmote (nil,2,nil)
  1508.  
  1509. elseif c=="pupici" then
  1510. print("<bv>["..name.."] <r>Ne-a pus să ne <vp>pupăm")
  1511. tfm.exec.playEmote (nil,3,nil)
  1512.  
  1513. elseif c=="nervos" then
  1514. print("<bv>["..name.."] <r>Ne-a pus să fim <vp>nervoşi")
  1515. tfm.exec.playEmote (nil,4,nil)
  1516.  
  1517. elseif c=="aplauda" then
  1518. print("<bv>["..name.."] <r>Ne-a pus să <vp>aplaudăm")
  1519. tfm.exec.playEmote (nil,5,nil)
  1520.  
  1521. elseif c=="doarme" then
  1522. print("<bv>["..name.."] <r>Ne-a pus să <vp>dormim")
  1523. tfm.exec.playEmote (nil,6,nil)
  1524.  
  1525. elseif c=="facepalm" then
  1526. print("<bv>["..name.."] <r>Facepalm")
  1527. tfm.exec.playEmote (nil,7,nil)
  1528.  
  1529. elseif c=="confeti" then
  1530. print("<bv>["..name.."] <r>Ne-a pus să<vp> stăm")
  1531. tfm.exec.playEmote (nil,8,nil)
  1532.  
  1533. elseif c=="sit" then
  1534. print("<bv>["..name.."] <r>Ne-a pus să dăm cu<vp> confeti")
  1535. tfm.exec.playEmote (nil,9,nil)
  1536.  
  1537. elseif c=="flag" then
  1538. print("<bv>["..name.."] <r>Ne-a pus să <vp>dansăm")
  1539. tfm.exec.playEmote (nil,10,nil)
  1540.  
  1541. elseif c=="marsh" then
  1542. print("<bv>["..name.."] <r>Ne-a pus să <vp>campăm")
  1543. tfm.exec.playEmote (nil,11,nil)
  1544.  
  1545. elseif c=="selfie" then
  1546. print("<bv>["..name.."] <r>Ne-a pus să facem<vp> selfie")
  1547. tfm.exec.playEmote (nil,12,nil)
  1548.  
  1549. elseif c=="sf.val" then
  1550. tfm.exec.disableAutoShaman(true)
  1551. tfm.exec.newGame([[<C><P APS="x_evenements/x_fondSVb.png,0,940,0,800,400" L="1660" D="x_evenements/x_fondSVa.jpg" d="x_evenements/x_fondSVc.png" /><Z><S><S Y="201" T="12" P="0,0,0,0.2,90,0,0,0" L="400" o="12bd94" m="" X="-4" H="10" /><S Y="390" T="12" P="0,0,0.3,0.2,0,0,0,0" L="200" o="12bd94" m="" X="101" H="20" /><S Y="403" T="12" P="0,0,0.3,0.2,0,0,0,0" L="310" o="12bd94" m="" X="354" H="20" /><S Y="389" T="12" P="0,0,0.3,0.2,0,0,0,0" L="400" o="12bd94" m="" X="706" H="20" /><S Y="401" T="12" P="0,0,0.3,0.2,0,0,0,0" L="720" o="12bd94" m="" X="1300" H="20" /><S Y="390" T="12" P="0,0,0.3,0.2,-30,0,0,0" L="30" o="12bd94" m="" X="497" H="10" /><S Y="393" T="12" P="0,0,0.3,0.2,40,0,0,0" L="30" o="12bd94" m="" X="210" H="10" /><S Y="390" T="12" P="0,0,0.3,0.2,15,0,0,0" L="50" o="12bd94" m="" X="927" H="10" /><S Y="241" T="9" P="0,0,,,,0,0,0" L="57" m="" X="1630" H="300" /><S Y="265" T="12" P="0,0,0.3,0.2,0,0,0,0" L="850" o="12bd94" m="" X="1174" H="10" /><S Y="148" T="12" P="0,0,0.3,0.2,0,0,0,0" L="850" o="12bd94" m="" X="1176" H="10" /><S Y="201" T="12" P="0,0,0,0.2,-90,0,0,0" L="420" o="12bd94" m="" X="1664" H="10" /><S Y="-10" T="12" P="0,0,0.3,0,0,0,0,0" L="720" o="12bd94" m="" X="1309" H="20" /><S Y="273" T="12" P="0,0,0.3,0.2,0,0,0,0" L="40" o="12bd94" m="" X="629" H="10" /><S Y="214" T="12" P="0,0,0.3,0.2,0,0,0,0" L="60" o="12bd94" m="" X="565" H="10" /><S Y="66" T="12" P="0,0,0.3,0.2,0,0,0,0" L="280" o="12bd94" m="" X="266" H="10" /><S Y="218" T="12" P="0,0,0.3,0.2,90,0,0,0" L="200" o="12bd94" m="" X="429" H="10" /></S><D><DS Y="362" X="89" /><P Y="143" T="68" X="844" P="0,0" /><P Y="142" T="67" X="801" P="0,0" /><P Y="143" T="67" X="890" P="0,1" /><P Y="259" T="68" X="850" P="0,0" /><P Y="143" T="68" X="1017" P="0,0" /><P Y="143" T="68" X="1182" P="0,0" /><P Y="143" T="68" X="1334" P="0,0" /><P Y="143" T="68" X="1507" P="0,0" /><P Y="260" T="68" X="1513" P="0,0" /><P Y="260" T="68" X="1339" P="0,0" /><P Y="260" T="68" X="1174" P="0,0" /><P Y="260" T="68" X="1019" P="0,0" /><P Y="390" T="68" X="1115" P="0,0" /><P Y="389" T="68" X="1285" P="0,0" /><P Y="391" T="68" X="1459" P="0,0" /><P Y="260" T="67" X="809" P="0,0" /><P Y="143" T="67" X="975" P="0,0" /><P Y="144" T="67" X="1137" P="0,0" /><P Y="144" T="67" X="1290" P="0,0" /><P Y="144" T="67" X="1464" P="0,0" /><P Y="260" T="67" X="971" P="0,0" /><P Y="260" T="67" X="1131" P="0,0" /><P Y="259" T="67" X="1296" P="0,0" /><P Y="260" T="67" X="1468" P="0,0" /><P Y="391" T="67" X="1415" P="0,0" /><P Y="390" T="67" X="1240" P="0,0" /><P Y="391" T="67" X="1070" P="0,0" /><P Y="260" T="67" X="894" P="0,1" /><P Y="390" T="67" X="1504" P="0,1" /><P Y="391" T="67" X="1331" P="0,1" /><P Y="390" T="67" X="1160" P="0,1" /><P Y="144" T="67" X="1552" P="0,1" /><P Y="144" T="67" X="1380" P="0,1" /><P Y="143" T="67" X="1230" P="0,1" /><P Y="143" T="67" X="1063" P="0,1" /><P Y="260" T="67" X="1063" P="0,1" /><P Y="260" T="67" X="1220" P="0,1" /><P Y="260" T="67" X="1387" P="0,1" /><P Y="259" T="67" X="1558" P="0,1" /></D><O><O C="22" Y="282" X="1108" P="0" /></O></Z></C>]])
  1552. tfm.exec.setGameTime(1200,true)
  1553. tfm.exec.setUIMapName("<rose>Sf. Valentin")
  1554.  
  1555. elseif c=="craciun" then
  1556. tfm.exec.disableAutoShaman(true)
  1557. tfm.exec.newGame([[<C><P D="x_evenements/x_fondNowel2013.jpg" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="800" o="12bd94" H="25" Y="397" T="12" m="" X="400" /><S P="0,0,0.3,0.2,0,0,0,0" L="125" o="12bd94" H="25" Y="361" T="12" m="" X="254" /><S P="0,0,0.3,0.2,0,0,0,0" L="300" o="12bd94" H="60" Y="361" T="12" m="" X="136" /><S P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" H="400" Y="201" T="12" m="" X="-10" /><S P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" H="400" Y="201" T="12" m="" X="811" /><S P="0,0,0.3,0.2,0,0,0,0" L="125" o="12bd94" H="25" Y="372" T="12" m="" X="284" /><S P="0,0,0.3,0.2,0,0,0,0" L="125" o="12bd94" H="25" Y="385" T="12" m="" X="312" /><S P="0,0,0.3,0.2,0,0,0,0" L="140" o="12bd94" H="10" Y="316" T="12" m="" X="495" /><S P="0,0,0.3,0.2,-70,0,0,0" L="160" o="12bd94" H="10" Y="210" T="12" m="" X="233" /><S P="0,0,0.3,0.2,-70,0,0,0" L="160" o="12bd94" H="10" Y="212" T="12" m="" X="249" /><S P="0,0,0.3,0.2,0,0,0,0" L="170" o="12bd94" H="10" Y="187" T="12" m="" X="80" /><S P="0,0,0.3,0.2,0,0,0,0" L="560" o="12bd94" H="10" Y="135" T="12" m="" X="536" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" o="12bd94" H="40" Y="108" T="12" m="" X="422" /><S P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" H="40" Y="120" T="12" m="" X="365" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="12bd94" H="40" Y="115" T="12" m="" X="656" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="12bd94" H="50" Y="107" T="12" m="" X="752" /><S P="0,0,0.3,0.8,0,0,0,0" L="90" o="12bd94" H="40" Y="119" T="12" m="" X="705" /><S P="0,0,0.3,0.2,90,0,0,0" L="20" o="12bd94" H="900" Y="-9" T="12" m="" X="404" /></S><D><T Y="329" X="91" /><DS Y="317" X="89" /></D><O /></Z></C>]])
  1558. tfm.exec.setGameTime(1200,true)
  1559. tfm.exec.setUIMapName("Craciun 2013")
  1560.  
  1561. elseif c=="halloween" then
  1562. tfm.exec.disableAutoShaman(true)
  1563. tfm.exec.newGame([[<C><P DS="y;362" bg="hdPQmAy" D="x_evenements/x_fondHalloweenMap2.jpg" Ca="" /><Z><S><S L="800" o="12bd94" H="25" X="400" Y="390" T="12" m="" P="0,0,0.3,0.2,0,0,0,0" /><S L="400" o="12bd94" H="20" X="-10" Y="200" T="12" m="" P="0,0,0.3,0.2,-90,0,0,0" /><S L="400" o="12bd94" H="20" X="810" Y="200" T="12" m="" P="0,0,0,0.2,-90,0,0,0" /><S L="60" o="12bd94" H="10" X="27" Y="231" T="12" m="" P="0,0,0.3,0.2,0,0,0,0" /><S L="30" o="12bd94" H="10" X="61" Y="221" T="12" m="" P="0,0,0.3,0.2,-90,0,0,0" /><S L="30" o="12bd94" H="10" X="153" Y="221" T="12" m="" P="0,0,0.3,0.2,-90,0,0,0" /><S L="30" o="12bd94" H="10" X="237" Y="223" T="12" m="" P="0,0,0.3,0.2,-90,0,0,0" /><S L="30" o="12bd94" H="10" X="332" Y="223" T="12" m="" P="0,0,0.3,0.2,-90,0,0,0" /><S L="30" o="12bd94" H="10" X="398" Y="222" T="12" m="" P="0,0,0.3,0.2,-90,0,0,0" /><S L="30" o="12bd94" H="10" X="491" Y="222" T="12" m="" P="0,0,0.3,0.2,-90,0,0,0" /><S L="50" o="12bd94" H="10" X="517" Y="231" T="12" m="" P="0,0,0.3,0.2,0,0,0,0" /><S L="60" o="12bd94" H="10" X="468" Y="197" T="12" m="" P="0,0,0.3,0.2,30,0,0,0" /><S L="60" o="12bd94" H="10" X="308" Y="198" T="12" m="" P="0,0,0.3,0.2,30,0,0,0" /><S L="60" o="12bd94" H="10" X="130" Y="196" T="12" m="" P="0,0,0.3,0.2,30,0,0,0" /><S L="60" o="12bd94" H="10" X="84" Y="195" T="12" m="" P="0,0,0.3,0.2,-30,0,0,0" /><S L="60" o="12bd94" H="10" X="261" Y="198" T="12" m="" P="0,0,0.3,0.2,-30,0,0,0" /><S L="60" o="12bd94" H="10" X="421" Y="197" T="12" m="" P="0,0,0.3,0.2,-30,0,0,0" /><S L="150" o="12bd94" H="10" X="531" Y="114" T="12" m="" P="0,0,0.3,0.2,0,0,0,0" /><S L="80" o="12bd94" H="10" X="194" Y="231" T="12" m="" P="0,0,0.3,0.2,0,0,0,0" /><S L="140" o="12bd94" H="110" X="733" Y="284" T="12" m="" P="0,0,20,0.2,0,0,0,0" /><S L="110" o="12bd94" H="110" X="741" Y="222" T="12" m="" P="0,0,0.3,0.2,40,0,0,0" /><S L="110" o="12bd94" H="120" X="747" Y="150" T="12" m="" P="0,0,0.3,0.2,0,0,0,0" /><S L="60" o="12bd94" H="10" X="366" Y="231" T="12" m="" P="0,0,0.3,0.2,0,0,0,0" /><S L="325" o="12bd94" H="10" X="245" Y="115" T="12" m="" P="0,0,0.3,0.2,0,0,0,0" /><S L="840" o="12bd94" H="25" X="400" Y="-4" T="12" m="" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="60" o="12bd94" X="1" Y="115" T="12" m="" H="10" /></S><D /><O /></Z></C>]])
  1564. tfm.exec.setGameTime(1200,true)
  1565. tfm.exec.setUIMapName("Halloween 2013 Cassino")
  1566.  
  1567. elseif c=="halloween1" then
  1568. tfm.exec.disableAutoShaman(true)
  1569. tfm.exec.newGame([[<C><P DS="m;58,329,176,298,328,270,500,269,652,295,762,325" Ca="" D="x_transformice/x_maps/x_hw2014/x_1.jpg" d="x_transformice/x_maps/x_hw2014/x_1av.png" IP="x_transformice/x_maps/x_hw2014/x_p1.jpg,45,178;x_transformice/x_maps/x_hw2014/x_p2.jpg,198,229;x_transformice/x_maps/x_hw2014/x_p4.jpg,335,197;x_transformice/x_maps/x_hw2014/x_p5.jpg,554,229;x_transformice/x_maps/x_hw2014/x_p0.jpg,684,172" /><Z><S><S H="10" L="30" X="726" c="3" Y="188" m="" P="0,0,0.3,0.2,133,0,0,0" /><S H="10" L="30" X="97" c="3" Y="189" m="" P="0,0,0.3,0.2,-18,0,0,0" /><S H="10" L="30" X="81" c="3" Y="206" m="" P="0,0,0.3,0.2,-70,0,0,0" /><S H="10" L="13" X="251" c="3" Y="60" m="" P="0,0,0.3,0.2,20,0,0,0" /><S H="10" L="30" X="116" c="3" Y="196" m="" P="0,0,0.3,0.2,-130,0,0,0" /><S H="10" L="58" X="418" c="3" Y="147" m="" P="0,0,0.3,0.2,-2,0,0,0" /><S P="0,0,0.6,0.2,-10,0,0,0" L="145" lua="1" X="248" Y="304" m="" H="10" /><S H="10" L="65" X="605" c="3" Y="202" m="" P="0,0,0.3,0.2,43,0,0,0" /><S H="10" L="80" X="447" c="3" Y="157" m="" P="0,0,0.3,0.2,35,0,0,0" /><S H="10" L="60" X="259" c="3" Y="200" m="" P="0,0,0.3,0.2,25,0,0,0" /><S H="10" L="30" X="745" c="3" Y="183" m="" P="0,0,0.3,0.2,20,0,0,0" /><S H="10" L="60" X="103" c="3" Y="99" m="" P="0,0,0.3,0.2,-10,0,0,0" /><S H="10" L="60" X="213" c="3" Y="209" m="" P="0,0,0.3,0.2,-43,0,0,0" /><S H="10" L="80" X="389" c="3" Y="158" m="" P="0,0,0.3,0.2,-36,0,0,0" /><S P="0,0,0.6,0.2,0,0,0,0" L="140" lua="2" X="421" Y="287" m="" H="10" /><S H="10" L="90" X="670" c="3" Y="92" m="" P="0,0,0.3,0.2,25,0,0,0" /><S H="10" L="60" X="558" c="3" Y="194" m="" P="0,0,0.3,0.2,-24,0,0,0" /><S P="0,0,0.3,0.2,-21,0,0,0" L="80" X="35" Y="358" m="" H="10" /><S P="0,0,0.6,0.2,16,0,0,0" L="114" lua="4" X="702" Y="329" m="" H="10" /><S P="0,0,0.6,0.2,10,0,0,0" L="116" lua="3" X="568" Y="298" m="" H="10" /><S H="10" L="20" X="360" c="3" Y="80" m="" P="0,0,0.3,0.2,10,0,0,0" /><S P="0,0,0.6,0.2,-15,0,0,0" L="110" lua="0" X="125" Y="330" m="" H="10" /><S P="0,0,0.3,0.2,14,0,0,0" L="23" X="636" Y="311" m="" H="10" /><S P="0,0,0.3,0.2,-8,0,0,0" L="35" X="335" Y="289" m="" H="10" /><S P="0,0,0.3,0.2,4,0,0,0" L="23" X="502" Y="288" m="" H="10" /><S P="0,0,0.3,0.2,20,0,0,0" L="52" X="781" Y="354" m="" H="10" /><S P="0,0,0.3,0.2,85,0,0,0" L="90" H="10" c="3" Y="112" m="" X="762" /><S P="0,0,0.3,0.2,103,0,0,0" L="30" H="10" c="3" Y="250" m="" X="703" /><S X="712" L="30" H="10" c="3" Y="215" m="" P="0,0,0.3,0.2,103,0,0,0" /><S P="0,0,0.3,0.2,-100,0,0,0" L="30" H="10" c="3" Y="226" m="" X="128" /><S X="134" L="30" H="10" c="3" Y="259" m="" P="0,0,0.3,0.2,-100,0,0,0" /><S X="34" L="90" H="10" c="3" Y="138" m="" P="0,0,0.3,0.2,85,0,0,0" /><S P="0,0,0.3,0.2,85,0,0,0" L="90" X="41" c="3" Y="231" m="" H="10" /><S P="0,0,0.3,0.2,-230,0,0,0" L="30" H="10" c="3" Y="96" m="" X="130" /><S X="154" L="30" H="10" c="3" Y="90" m="" P="0,0,0.3,0.2,-170,0,0,0" /><S P="0,0,0.3,0.2,-190,0,0,0" L="30" X="186" c="3" Y="94" m="" H="10" /><S P="0,0,0.3,0.2,40,0,0,0" L="13" H="10" c="3" Y="77" m="" X="278" /></S><D><DS Y="81" X="104" /></D><O /></Z></C>]])
  1570. tfm.exec.setGameTime(1200,true)
  1571. tfm.exec.setUIMapName("Halloween")
  1572.  
  1573. elseif c=="S.I." then
  1574. ui.addTextArea(420, "<font size='16'>Eşti mulţumit de comenzile tribului TribeHouse?", nil, 233, 75, 326, 252, 0x4F2B18, 0x000000, 1, true)
  1575. ui.addTextArea(421, "<p align='center'><a href='event:voteDA'>DA, sunt mulţumit de comenzile tribului</a></p>", nil, 246, 129, 302, 18, 0x7a4124, 0x000000, 1, true)
  1576. ui.addTextArea(422, "<p align='center'><a href='event:voteNU'>NU sunt mulţumit de comenzile tribului</a></p>", nil, 246, 163, 302, 18, 0x7a4124, 0x000000, 1, true)
  1577. ui.addTextArea(423, "<p align='center'><a href='event:voteNU1'>Unele comenzi sunt inutile şi nimeni nu le foloseşte</a></p>", nil, 246, 197, 302, 18, 0x7a4124, 0x000000, 1, true)
  1578. ui.addTextArea(424, "<p align='center'><a href='event:voteSec'>Mai trebuie să fie actualizat la partea de securitate</a></p>", nil, 246, 231, 302, 18, 0x7a4124, 0x000000, 1, true)
  1579. ui.addTextArea(425, "<p align='center'><a href='event:voteSu'>Doresc comenzi noi şi funcţii noi, utile</a></p>", nil, 246, 265, 302, 18, 0x7a4124, 0x000000, 1, true)
  1580. ui.addTextArea(426, "<p align='center'><a href='event:voteOth'>Alte sugestii sau plângeri în legătură cu CMD</a></p>", nil, 245, 299, 302, 18, 0x7a4124, 0x000000, 1, true)
  1581.  
  1582. elseif c=="voteDA" then
  1583. ui.removeTextArea(420,name)
  1584. ui.removeTextArea(421,name)
  1585. ui.removeTextArea(422,name)
  1586. ui.removeTextArea(423,name)
  1587. ui.removeTextArea(424,name)
  1588. ui.removeTextArea(425,name)
  1589. ui.removeTextArea(426,name)
  1590. ui.addPopup(1000,0,"<p align='center'><font size='15'>Mulţumesc că ai votat</font></p>",name,200,129,400)
  1591. print("<vp>"..name.." este mulţumit de comenzile tribului CMD")
  1592.  
  1593. elseif c=="voteNU" then
  1594. ui.removeTextArea(420,name)
  1595. ui.removeTextArea(421,name)
  1596. ui.removeTextArea(422,name)
  1597. ui.removeTextArea(423,name)
  1598. ui.removeTextArea(424,name)
  1599. ui.removeTextArea(425,name)
  1600. ui.removeTextArea(426,name)
  1601. ui.addPopup(12,2,"<p align='center'><b>Specifică motivul:</p></b>",name,300,200,200)
  1602. print("<r>"..name.." nu este mulţumit de comenzile tribului. Motiv:")
  1603.  
  1604. elseif c=="voteNU1" then
  1605. ui.removeTextArea(420,name)
  1606. ui.removeTextArea(421,name)
  1607. ui.removeTextArea(422,name)
  1608. ui.removeTextArea(423,name)
  1609. ui.removeTextArea(424,name)
  1610. ui.removeTextArea(425,name)
  1611. ui.removeTextArea(426,name)
  1612. ui.addPopup(13,2,"<p align='center'><b>Specifică comenzile inutile:</p></b>",name,300,200,200)
  1613. print("<r>"..name.." unele comenzi sunt inutile: ")
  1614.  
  1615. elseif c=="voteSec" then
  1616. ui.removeTextArea(420,name)
  1617. ui.removeTextArea(421,name)
  1618. ui.removeTextArea(422,name)
  1619. ui.removeTextArea(423,name)
  1620. ui.removeTextArea(424,name)
  1621. ui.removeTextArea(425,name)
  1622. ui.removeTextArea(426,name)
  1623. ui.addPopup(1000,0,"<p align='center'><b>Mulţumesc că ai votat</p></b>",name,300,200,200)
  1624. print("<r>"..name.." <j>: mai trebuie să lucrezi la partea de securitate")
  1625.  
  1626. elseif c=="voteSu" then
  1627. ui.removeTextArea(420,name)
  1628. ui.removeTextArea(421,name)
  1629. ui.removeTextArea(422,name)
  1630. ui.removeTextArea(423,name)
  1631. ui.removeTextArea(424,name)
  1632. ui.removeTextArea(425,name)
  1633. ui.removeTextArea(426,name)
  1634. ui.addPopup(1000,0,"<p align='center'><b>Mulţumesc că ai votat</p></b>",name,300,200,200)
  1635. print("<r>"..name.." <j>: doreşte să adaugi comenzi noi şi funcţii noi")
  1636.  
  1637. elseif c=="voteOth" then
  1638. ui.removeTextArea(420,name)
  1639. ui.removeTextArea(421,name)
  1640. ui.removeTextArea(422,name)
  1641. ui.removeTextArea(423,name)
  1642. ui.removeTextArea(424,name)
  1643. ui.removeTextArea(425,name)
  1644. ui.removeTextArea(426,name)
  1645. ui.addPopup(14,2,"<p align='center'><b>Comentează alte sugestii sau plângeri</p></b>",name,300,200,200)
  1646. print("<r>"..name.." <j>: doreşte să scrie altă sugestie sau altă plângere")
  1647.  
  1648. elseif c=="version" then
  1649. Log = '<v>['..name..'] <n>a intrat la <vp>noutati\n'..Log
  1650. print("<vp>"..name.." <r>a intrat la <vp>noutăţi")
  1651. ui.addTextArea(801, "", name, 147, 27, 505, 351, 0xc47800, nil, 1, true)
  1652. ui.addTextArea(802, "<J><p align='center'><font size='15'>Nou, Versiunea "..version.." </font></p></b><br><N>Apasă <VP>Esc<N> pentru a închide tabelul<br><br><j><u>Comenzi noi: </u><br><n>- Scrie <vp>!np @code <n>şi poţi adăuga orice mapă vrei<br>- Scrie <vp>!map <n>şi îţi dă o mapă din sistem<br>- Scrie <vp>!test @code <n>si comenzile vor fi dezactivate 3 minute, fara sa te deranjeze cineva in timpul testarii<br>- In timpul tesarii daca vrei sa activezi o parte din comenzi, scrie <vp>!stop <n>doar tu ai comenzile activate<br>- Scrie <vp>- <n>daca vrei sa modifici timpul<br><br><rose><u>Jocuri:</u><br><n>- Am adaugat un buton, apasand butonul <vp>Menu<n> apoi butonul <rose>Jocuri<n> vei vedea ca am adaugat Mini-Jocul: <t>Killcheese<n>, prin vot poti juca <t>Killcheese<n> cu prietenii tai<br><br><r><u>Admin</r><n> si</n> <ch>VIP:</ch></u><n><br>- Administratorul si <ch>VIP<n> vor putea vedea istoricul comenzilor, a sistemului, si cine scrie prin comanda ,,<vp>!<n>''<br><br><j><u>Bug fix:</u><br><n>- Am fixat tabelul meniului<br>- Curatenie generala la <vp>Menu<br><n>- Am fixat buguri la sistem.", name, 152, 31, 495, 342, 0xe242d, nil, 1, true)
  1653. ui.removeTextArea(803,name)
  1654.  
  1655. elseif c=="admin" then
  1656. ui.addTextArea(802, "<J><p align='center'><font size='15'>Comenzile tribului - Admin</font></p><br><CH><b>Comenzile funcţionează apăsând pe tasta respectivă</b><br><N>Apasă <VP>Esc<N> pentru a închide tabelul<br><br><VP>F12 - <R>Admin", name,  219, 100, 364, 219, 0xe242d, 0x0, 1, true)
  1657.  
  1658. elseif c=="kiler" then
  1659. tfm.exec.killPlayer(name)
  1660.  
  1661. elseif c=="codul" then
  1662. print(""..name.." a deschis<R> verificare")
  1663. ui.addPopup(29,2,"trebuie să pui doar 3 cifre, dacă e bine îţi apare un chenar că ai ghicit dacă nu, nu îţi apare nimic",name,400,200,200)
  1664.  
  1665. elseif c=="explmax" then
  1666. ui.removeTextArea(1019,name)
  1667. ui.addTextArea(1021,"<p align='center'><a href='event:explmaxoff'><b>Max: <font color='#86ED89'>ON</font></b></a></p>",name,82, 44, 69, 16, 0x4F2B18,0x26140B, 0.6,true)
  1668. maxExplosion[name] = true
  1669.  
  1670. elseif c=="explmaxoff" then
  1671. ui.removeTextArea(1021,name)
  1672. ui.addTextArea(1019,"<p align='center'><a href='event:explmax'><b>Max: <font color='#F96868'>OFF</font></b></a></p>",name,82,44,69,16,0x4F2B18,0x26140B,0.6,true)
  1673. maxExplosion[name] = false
  1674.  
  1675. elseif c=="explmed" then
  1676. ui.removeTextArea(1009,name)
  1677. ui.addTextArea(1010,"<p align='center'><a href='event:explmedoff'><b>Med: <font color='#86ED89'>ON</font></b></a></p>",name,5, 44, 69, 16, 0x4F2B18,0x26140B, 0.6,true)
  1678. medExplosion[name] = true
  1679.  
  1680. elseif c=="explmedoff" then
  1681. ui.removeTextArea(1010,name)
  1682. ui.addTextArea(1009,"<p align='center'><a href='event:explmed'><b>Med: <font color='#F96868'>OFF</font></b></a></p>",name,5,44,69,16,0x4F2B18,0x26140B,0.6,true)
  1683. medExplosion[name] = false
  1684.  
  1685. elseif c=="vip" then
  1686. ui.addTextArea(802, "<J><p align='center'><font size='15'>Comenzile tribului VIP</font></p><br><CH><b>Comenzile funcţionează apăsând pe tasta respectivă</b><br><N>Apasă <VP>Esc<N> pentru a închide tabelul<br><CH>F1 - <N>toată lumea are brânză<br><CH>F2 - <N>Şterge toate obiectele şaman<br><CH>F3 - <N>Hărţi speciale <CH>(Evenimente)<br>F4 - <N>Îngheaţă jucătorul<br><CH>F5 - <N>Adaugă teren<br><CH>F6 - <N>Artificii<br><CH>F7 - <n>Controlezi emoţiile jucătorilor", name,  219, 100, 364, 219, 0xe242d, 0x0, 1, true)
  1687.  
  1688. elseif c=="block" then
  1689. ui.addTextArea(2001,"<p align='center'><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><a href='event:unblock'><B><VP>Deblochează</a></p>",nil,0,0,800,400,0x000001,0x000001,0,true)
  1690.  
  1691. elseif c=="unblock" then
  1692. if Admin(name) then
  1693. print(""..name.." a deblocat")
  1694. ui.removeTextArea(2001,nil)
  1695. elseif name~="admin" then
  1696. print(""..name.." nu poate debloca comanda block")
  1697. end
  1698.  
  1699. elseif c=="killcheese" then
  1700. timp_asteptare = true
  1701. voteno=0
  1702. voteyes=0
  1703. ui.removeTextArea(801,name)
  1704. ui.removeTextArea(802,name)
  1705. ui.removeTextArea(803,name)
  1706. ui.removeTextArea(804,name)
  1707. ui.removeTextArea(805,name)
  1708. ui.addTextArea(7002,"<j><b>["..name.."]</b><n> doreşte să joace <b>KillCheese</b>, cine este de acord ?           <a href='event:responDa'><u><vp>Sunt de acord</vp></u></a> <n>| <a href='event:responNu'><u><r>Nu sunt de acord</u></a>",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  1709.  
  1710. elseif c=="responNu" then
  1711. voteno=voteno+1
  1712. ui.removeTextArea(7002,name)
  1713. ui.addTextArea(7001,"<j><b>[Start Vot]</b><n> Se votează...           <vp>Da "..voteyes.."/4 <n>| <r>Nu "..voteno.."/2",nil,6,355,x,20,0x4F2B18,0x26140B,1,true)
  1714.  
  1715. if voteno == 2 then
  1716. timp_pornire = true
  1717. timp_asteptare = false
  1718. timp_remove1 = 10
  1719. ui.removeTextArea(7002,nil)
  1720. ui.addTextArea(7001,"<j><b>[Anulat]</b><n> Jucătorii nu vor să se joace <b>KillCheese.</b>     Voturi: <vp>Da "..voteyes.."/4 <n>| <r>Nu "..voteno.."/2",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  1721. end
  1722.  
  1723.  
  1724. elseif c=="responDa" then
  1725. voteyes=voteyes+1
  1726. print(""..voteyes.."")
  1727. ui.removeTextArea(7002,name)
  1728. ui.addTextArea(7001,"<j><b>[Start Vot]</b><n> Se votează...           <vp>Da "..voteyes.."/4 <n>| <r>Nu "..voteno.."/2",nil,6,355,x,20,0x4F2B18,0x26140B,1,true)
  1729.  
  1730. if voteyes == 4 then
  1731. ui.addTextArea(7001,"<j><b>[Killcheese]</b><n> Distracţie placută, şobolani!          <vp>Da "..voteyes.."/4 <n>| <r>Nu "..voteno.."/2",nil,6,380,x,20,0x4F2B18,0x26140B,0.7,true)
  1732. timp_avertizarejoc = true
  1733. timp_pornire = true
  1734. timp_asteptare = false
  1735. timp_remove1 = 10
  1736. ui.removeTextArea(7002,nil)
  1737. minigame = true
  1738. next = true
  1739. object = false
  1740. Fly = false
  1741. respawn = false
  1742. canTeleport = {}
  1743. canExplosion = {}
  1744. medExplosion = {}
  1745. maxExplosion = {}
  1746. cheese = false
  1747. shaman = false
  1748. vampire = false
  1749. meep = false
  1750. vipCheese = false
  1751. playerVictory = false
  1752. vipEvent = false
  1753. vipIce = false
  1754. vipGround = false
  1755. vipParticle = false
  1756. speedDr = false
  1757. speedSt = false
  1758. timeM = false
  1759. trambel = false
  1760. home = false
  1761. grounds = {}
  1762. teren = {}
  1763. terenuri = {}
  1764. gheata = {}
  1765. gheatam = {}
  1766. gheatama = {}
  1767. tramb = {}
  1768. trambu = {}
  1769. trambul = {}
  1770. cioco = {}
  1771. ciocol = {}
  1772. ciocola = {}
  1773. particle = {}
  1774. particle_1 = {}
  1775. particle_2 = {}
  1776. particle_3 = {}
  1777. ui.removeTextArea(403,nil)
  1778. ui.removeTextArea(409,nil)
  1779. ui.removeTextArea(410,nil)
  1780. game()
  1781. end
  1782.  
  1783. elseif c=="responDaJoc" then
  1784. voteyes=voteyes+1
  1785. ui.addTextArea(7001,"<j><b>[Start Vot]</b><n> Se votează...           <vp>Da "..voteyes.."/4 <n>| <r>Nu "..voteno.."/2",nil,6,355,x,20,0x4F2B18,0x26140B,0.7,true)
  1786. if voteyes == 4 then
  1787. timp_avertizarejoc = true
  1788. timp_pornire = true
  1789. timp_gandire = false
  1790. ui.removeTextArea(7001,nil)
  1791. ui.addTextArea(7002,"<j><b>[Bot]</b><n> Vă mai întreb peste <v>10 minute  <vp>Da "..voteyes.."/4 <n>| <r>Nu "..voteno.."/2",nil,6,380,x,20,0x4F2B18,0x26140B,0.7,true)
  1792. end
  1793.  
  1794.  
  1795. elseif c=="responNuJoc" then
  1796. voteno=voteno+1
  1797. ui.addTextArea(7001,"<j><b>[Start Vot]</b><n> Se votează...           <vp>Da "..voteyes.."/4 <n>| <r>Nu "..voteno.."/2",nil,6,355,x,20,0x4F2B18,0x26140B,0.7,true)
  1798. if voteno == 2 then
  1799. tfm.exec.disableAfkDeath(true)
  1800. tfm.exec.disableAutoTimeLeft(true)
  1801. tfm.exec.disableAutoShaman(true)
  1802. tfm.exec.disableAutoNewGame(true)
  1803. killcheese = false
  1804. win = false
  1805. die = false
  1806. next = false
  1807. minigame = false
  1808. Fly = true
  1809. object = true
  1810. respawn = true
  1811. canTeleport = {}
  1812. canExplosion = {}
  1813. medExplosion = {}
  1814. maxExplosion = {}
  1815. cheese = true
  1816. shaman = true
  1817. vampire = true
  1818. meep = true
  1819. vipCheese = true
  1820. playerVictory = true
  1821. vipEvent = true
  1822. vipIce = true
  1823. vipGround = true
  1824. vipParticle = true
  1825. speedDr = true
  1826. speedSt = true
  1827. timeM = true
  1828. trambel = true
  1829. home = true
  1830. grounds = {}
  1831. teren = {}
  1832. terenuri = {}
  1833. gheata = {}
  1834. gheatam = {}
  1835. gheatama = {}
  1836. tramb = {}
  1837. trambu = {}
  1838. trambul = {}
  1839. cioco = {}
  1840. ciocol = {}
  1841. ciocola = {}
  1842. particle = {}
  1843. particle_1 = {}
  1844. particle_2 = {}
  1845. particle_3 = {}
  1846. ui.addTextArea(403,"<p align='center'><a href='event:tp'><b>Tp: <r>OFF</a></p>",nil,5,20,65,16,0x4F2B18,0x26140B,0.6,true)
  1847. ui.addTextArea(409,"<p align='center'><a href='event:expl'><b>Exp: <r>OFF</a></p>",nil,78,20,69,16,0x4F2B18,0x26140B,0.6,true)
  1848. ui.addTextArea(410,"<p align='center'><a href='event:meniu'><b>Menu</a></p>",nil,155,20,45,16,0x4F2B18,0x26140B,0.6,true)
  1849. nokill = true
  1850. nowin = true
  1851. nodie = true
  1852. ui.removeTextArea(7002,nil)
  1853. ui.addTextArea(7001,"<j><b>[Anulat]</b><n> Jucătorii nu mai vor să se joace <b>KillCheese.</b>     Voturi: <vp>Da "..voteyes.."/4 <n>| <r>Nu "..voteno.."/2",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  1854. timp_pornire = true
  1855. timp_gandire = false
  1856. tfm.exec.newGame(m[math.random(#m)])
  1857. end
  1858.  
  1859. elseif c=="regl" then
  1860. ui.addTextArea(802, "<p align='center'><font size='18'><j>Mini-Jocuri</j></font></p><br><br><br><br><br><br><br><br><font size='18'>Mai multe Mini-Jocuri în curând...", name, 219, 100, 364, 219, 0x0e242d, 0x000000, 1, true)
  1861. ui.addTextArea(805, "<b><a href='event:killcheese'>KillCheese</a>", name, 237, 151, 74, 19, 0x1a3f4d, 0xc47800, 1, true)
  1862.  
  1863. elseif c=="reports" then
  1864. ui.removeTextArea(60,name)
  1865. ui.removeTextArea(61,name)
  1866. ui.removeTextArea(62,name)
  1867. ui.addTextArea(53,"",name,150,30,500,350,0x4F2B18,0x4F2B18,1,true)
  1868. ui.addTextArea(50,"<r>"..nume.."",name,150,30,100,350,0x4F2B18,0x4F2B18,0.6,true)
  1869. ui.addTextArea(51,motive,name,257,30,250,350,0x4F2B18,0x4F2B18,0.6,true)
  1870. ui.addTextArea(52,cine,name,530,30,100,350,0x4F2B18,0x4F2B18,0.6,true)
  1871. ui.addTextArea(54,[[<a href="event:X">X</a>]],name,637,30,nil,nil,0x4F2B18,0x4F2B18,0.6,true)
  1872.  
  1873. elseif c=="X" then
  1874. ui.removeTextArea(53,name)
  1875. ui.removeTextArea(50,name)
  1876. ui.removeTextArea(51,name)
  1877. ui.removeTextArea(52,name)
  1878. ui.removeTextArea(54,name)
  1879.  
  1880. elseif c=="inteles" then
  1881. ui.removeTextArea(809,name)
  1882. for key,val in pairs(tfm.get.room.objectList) do
  1883. table.insert(ob, key)
  1884. end
  1885. for key,val in pairs(ob) do
  1886. tfm.exec.removeObject(val)
  1887. end
  1888. ob = {}
  1889.  
  1890. elseif c=="sageata" then
  1891. tfm.exec.addShamanObject(0,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  1892.  
  1893. elseif c=="cutiemica" then
  1894. tfm.exec.addShamanObject(1,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  1895. ba=ba+1
  1896. if ba == 30 then
  1897. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1898. end
  1899. if ba == 60 then
  1900. table.insert(ban, name)
  1901. tfm.exec.killPlayer(name);
  1902. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1903. ba=0
  1904. t=5001
  1905. end
  1906. elseif c=="cutiemare" then
  1907. tfm.exec.addShamanObject(2,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  1908. bb[name]=bb[name]+1
  1909. if bb[name] == 30 then
  1910. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1911. end
  1912. if bb[name] == 60 then
  1913. bb[name]=0
  1914. t=5001
  1915. table.insert(ban, name)
  1916. tfm.exec.killPlayer(name);
  1917. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1918. end
  1919. elseif c=="lemnmic" then
  1920. tfm.exec.addShamanObject(3,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  1921. bc=bc+1
  1922. if bc == 70 then
  1923. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1924. end
  1925. if bc == 140 then
  1926. bc=0
  1927. table.insert(ban, name)
  1928. tfm.exec.killPlayer(name);
  1929. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1930. t=5001
  1931. end
  1932. elseif c=="lemnmare" then
  1933. tfm.exec.addShamanObject(4,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  1934. bd=bd+1
  1935. if bd == 70 then
  1936. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1937. end
  1938. if bd == 140 then
  1939. bd=0
  1940. table.insert(ban, name)
  1941. tfm.exec.killPlayer(name);
  1942. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1943. t=5001
  1944. end
  1945. elseif c=="minge" then
  1946. print("<BV>["..name.."] a adaugat o minge.")
  1947. tfm.exec.addShamanObject(6,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  1948. be=be+1
  1949. if be == 70 then
  1950. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1951. end
  1952. if be == 140 then
  1953. be=0
  1954. table.insert(ban, name)
  1955. tfm.exec.killPlayer(name);
  1956. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1957. t=5001
  1958. end
  1959. elseif c=="trambulina" then
  1960. tfm.exec.addShamanObject(7,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  1961. bf=bf+1
  1962. if bf == 30 then
  1963. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1964. end
  1965. if bf == 60 then
  1966. bf=0
  1967. table.insert(ban, name)
  1968. tfm.exec.killPlayer(name);
  1969. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1970. t=5001
  1971. end
  1972. elseif c=="anvila" then
  1973. print("<CH>["..name.."] <N>a adaugat o nicovala.")
  1974. tfm.exec.addShamanObject(10,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  1975. bg=bg+1
  1976. if bg == 40 then
  1977. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1978. end
  1979. if bg == 80 then
  1980. bg=0
  1981. table.insert(ban, name)
  1982. tfm.exec.killPlayer(name);
  1983. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1984. t=5001
  1985. end
  1986. elseif c=="bomb" then
  1987. print("<CH>["..name.."] <N>a adaugat o bomba.")
  1988. tfm.exec.addShamanObject(23,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  1989. bh=bh+1
  1990. if bh == 60 then
  1991. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1992. end
  1993. if bh == 120 then
  1994. bh=0
  1995. table.insert(ban, name)
  1996. tfm.exec.killPlayer(name);
  1997. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  1998. t=5001
  1999. end
  2000. elseif c=="portal" then
  2001. tfm.exec.addShamanObject(26,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  2002.  
  2003. elseif c=="portals" then
  2004. tfm.exec.addShamanObject(27,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  2005.  
  2006. elseif c=="balon" then
  2007. tfm.exec.addShamanObject(28,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  2008. bi=bi+1
  2009. if bi == 100 then
  2010. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2011. end
  2012. if bi == 200 then
  2013. bi=0
  2014. table.insert(ban, name)
  2015. tfm.exec.killPlayer(name);
  2016. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2017. t=5001
  2018. end
  2019. elseif c=="runa" then
  2020. print("<BV>["..name.."] a adaugat o runa.")
  2021. tfm.exec.addShamanObject(32,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  2022. bn=bn+1
  2023. if bn == 70 then
  2024. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2025. end
  2026. if bn == 140 then
  2027. bn=0
  2028. table.insert(ban, name)
  2029. tfm.exec.killPlayer(name);
  2030. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2031. t=5001
  2032. end
  2033. elseif c=="sow" then
  2034. if players[name].time<=os.time()-1000 then
  2035. tfm.exec.addShamanObject(34,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  2036. players[name].time=os.time()
  2037. end
  2038. elseif c=="van" then
  2039. if players[name].time<=os.time()-1000 then
  2040. tfm.exec.addShamanObject(35,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  2041. players[name].time=os.time()
  2042. end
  2043.  
  2044. elseif c=="mar" then
  2045. tfm.exec.addShamanObject(39,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  2046. bj=bj+1
  2047. if bj == 60 then
  2048. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2049. end
  2050. if bj == 120 then
  2051. bj=0
  2052. table.insert(ban, name)
  2053. tfm.exec.killPlayer(name);
  2054. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2055. t=5001
  2056. end
  2057. elseif c=="sheep" then
  2058. tfm.exec.addShamanObject(40,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  2059. bq=bq+1
  2060. if bq == 25 then
  2061. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2062. end
  2063. if bq == 50 then
  2064. bq=0
  2065. table.insert(ban, name)
  2066. tfm.exec.killPlayer(name);
  2067. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2068. t=5001
  2069. end
  2070. elseif c=="gheata" then
  2071. print("<CH>["..name.."] <N>a adaugat obiect ID = 54 > ghea?a.")
  2072. tfm.exec.addShamanObject(54,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  2073. bl=bl+1
  2074. if bl == 30 then
  2075. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2076. end
  2077. if bl == 60 then
  2078. bl=0
  2079. table.insert(ban, name)
  2080. tfm.exec.killPlayer(name);
  2081. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2082. t=5001
  2083. end
  2084. elseif c=="bule" then
  2085. tfm.exec.addShamanObject(59,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  2086. bk=bk+1
  2087. if bk == 70 then
  2088. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2089. end
  2090. if bk == 140 then
  2091. bk=0
  2092. table.insert(ban, name)
  2093. tfm.exec.killPlayer(name);
  2094. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2095. t=5001
  2096. end
  2097. elseif c=="mic" then
  2098. tfm.exec.addShamanObject(60,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  2099. bo=bo+1
  2100. if bo == 70 then
  2101. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2102. end
  2103. if bo == 140 then
  2104. bo=0
  2105. table.insert(ban, name)
  2106. tfm.exec.killPlayer(name);
  2107. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Esti Banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2108. t=5001
  2109. end
  2110. elseif c=="cutiein" then
  2111. print("<CH>["..name.."] <N>a adaugat cutie ID = 61 > 25 > Cutie cu inima")
  2112. tfm.exec.addShamanObject(61,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  2113. bm=bm+1
  2114. if bm == 12 then
  2115. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2116. end
  2117. if bm == 24 then
  2118. bm=0
  2119. table.insert(ban, name)
  2120. tfm.exec.killPlayer(name);
  2121. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2122. t=5001
  2123. end
  2124. elseif c=="nor" then
  2125. print("<CH>["..name.."] <N>a adăugat un nor ID = 57 > 26 > Nor")
  2126. tfm.exec.addShamanObject(57,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+10)
  2127. bp=bp+1
  2128. if bp == 100 then
  2129. ui.addTextArea(809,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><j>Avertisment</j></font></p><br><br> <font size='20'>Te rog să nu mai faci spam. Ai şanse să fi banat.</font> <br><br><br><br><v><font size='25'><a href='event:inteles'>Am înţeles</a></font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2130. end
  2131. if bp == 200 then
  2132. bp=0
  2133. table.insert(ban, name)
  2134. tfm.exec.killPlayer(name);
  2135. ui.addTextArea(800,"<p align='center'><br><br><br><br><br><br><br><br><B><font size='40'><r>Eşti banat</r></font></p><br><br> <font size='20'>2 MINUTE</font>",name,0,0,800,400,0x000001,0x000001,0.5,true)
  2136. t=5001
  2137. end
  2138. elseif c=="killall" then
  2139. tfm.exec.setUIShamanName(""..name.." i-a omorât pe toţi.")
  2140. for name in pairs(tfm.get.room.playerList) do tfm.exec.killPlayer(name) end
  2141.  
  2142. elseif c=="allwin" then
  2143. tfm.exec.setUIShamanName(""..name.." toţi WIN.")
  2144. for name in pairs(tfm.get.room.playerList) do tfm.exec.giveCheese(name)
  2145. tfm.exec.playerVictory(name) end
  2146.  
  2147. elseif c=="expl" then
  2148. print("<BV>["..name.."] <R>a pornit butonul: <VP>Explosion.")
  2149. ui.addTextArea(409,"<p align='center'><a href='event:exploff'><b>Exp : <VP>ON</a></p>",name,78, 20, 69, 16, 0x4F2B18,0x26140B, 0.6,true)
  2150. canExplosion[name] = true
  2151.  
  2152. elseif c=="exploff" then
  2153. print("<BV>["..name.."] <R>a oprit butonul: <VP>Explosion.")
  2154. ui.addTextArea(409,"<p align='center'><a href='event:expl'><b>Exp : <R>OFF</a></p>",name,78,20,69,16,0x4F2B18,0x26140B,0.6,true)
  2155. canExplosion[name] = false
  2156.  
  2157. elseif c=="tp" then
  2158. print("<BV>["..name.."] <R>a pornit butonul: <VP>TP (Teleport).")
  2159. ui.addTextArea(403,"<p align='center'><a href='event:tpoff'><b>Tp : <VP>ON</a></p>",name,5,20,65,16,0x4F2B18,0x26140B,0.6,true)
  2160. canTeleport[name] = true
  2161.  
  2162. elseif c=="tpoff" then
  2163. print("<BV>["..name.."] <R>a oprit butonul: <VP>TP (Teleport).")
  2164. ui.addTextArea(403,"<p align='center'><a href='event:tp'><b>Tp : <R>OFF</a></p>",name,5,20,65,16,0x4F2B18,0x26140B,0.6,true)
  2165. canTeleport[name] = false
  2166.  
  2167. elseif c=="chamall" then
  2168. tfm.exec.setUIShamanName("Şaman All")
  2169. for name in pairs(tfm.get.room.playerList) do tfm.exec.setShaman(name) end
  2170.  
  2171. elseif c=="ban" then
  2172. ui.addPopup(10,2,"Introdu jucătorul: ",name,350,200,nil,nil,true)
  2173.  
  2174. elseif c=="unban" then
  2175. ui.addPopup(2,2,"<p align='center'><b>Scrie numele jucătorului pe care doreşti să-l scoţi din lista cu jucători banaţi.</p></b>",name,300,200,200)
  2176.  
  2177. elseif c=="bill" then
  2178. ui.addPopup(8,2,"Cu această comanda poţi omorî un jucător",name,400,250,200)
  2179.  
  2180. elseif c=="unbanall" then
  2181. tfm.exec.setUIShamanName("<J>"..name.." <N>a golit lista ban.")
  2182. ui.removeTextArea(800,nil)
  2183. ui.removeTextArea(187,nil)
  2184. tfm.exec.removePhysicObject(1)
  2185. tfm.exec.removePhysicObject(2)
  2186. tfm.exec.removePhysicObject(3)
  2187. tfm.exec.removePhysicObject(4)
  2188. ban = {}
  2189.  
  2190. elseif c=="grade" then
  2191. ui.addPopup(3,2,"<p align='center'><b>Scrie numele jucătorului pe care doreşti să-l pui Admin.</p></b>",name,300,200,200)
  2192.  
  2193. elseif c=="teren70" then
  2194. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18)
  2195. print("<VP>["..name.."] <R>a pornit terenul de <VP>Lemn<R> cu dimensiunea de:<VP> 70")
  2196. ui.removeTextArea(925,name)
  2197. ui.addTextArea(926,"<p align='center'><a href='event:terenoff70'><b><font color='#8B5300'>L<VP>3</font></b></a></p>",name,140, 45, 30, 16, 0x4F2B18,0x26140B, 0.6,true)
  2198. terenuri[name] = true
  2199. teren[name] = false
  2200. grounds[name] = false
  2201. gheata[name] = false
  2202. gheatam[name] = false
  2203. gheatama[name] = false
  2204. tramb[name] = false
  2205. trambu[name] = false
  2206. trambul[name] = false
  2207. cioco[name] = false
  2208. ciocol[name] = false
  2209. ciocola[name] = false
  2210.  
  2211. elseif c=="terenoff40" then
  2212. print("<VP>["..name.."] <R>a oprit terenul de <VP>Lemn<R> cu dimensiunea de:<VP> 40")
  2213. ui.removeTextArea(916,name)
  2214. ui.addTextArea(915,"<p align='center'><a href='event:teren40'><b><font color='#8B5300'>L<R>2</font></b></a></p>",name,102,45,30,16,0x4F2B18,0x26140B,0.6,true)
  2215. teren[name] = false
  2216.  
  2217. elseif c=="closegr" then
  2218. ui.removeTextArea(1998,name)
  2219. terenuri[name] = false
  2220. teren[name] = false
  2221. grounds[name] = false
  2222. gheata[name] = false
  2223. gheatam[name] = false
  2224. gheatama[name] = false
  2225. tramb[name] = false
  2226. trambu[name] = false
  2227. trambul[name] = false
  2228. cioco[name] = false
  2229. ciocol[name] = false
  2230. ciocola[name] = false
  2231.  
  2232. elseif c=="teren40" then
  2233. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18)
  2234. print("<VP>["..name.."] <R>a pornit terenul de <VP>Lemn<R> cu dimensiunea de:<VP> 40")
  2235. ui.removeTextArea(915,name)
  2236. ui.addTextArea(916,"<p align='center'><a href='event:terenoff40'><b><font color='#8B5300'>L<VP>2</font></b></a></p>",name,102, 45, 30, 16, 0x4F2B18,0x26140B, 0.6,true)
  2237. teren[name] = true
  2238. terenuri[name] = false
  2239. grounds[name] = false
  2240. gheata[name] = false
  2241. gheatam[name] = false
  2242. gheatama[name] = false
  2243. tramb[name] = false
  2244. trambu[name] = false
  2245. trambul[name] = false
  2246. cioco[name] = false
  2247. ciocol[name] = false
  2248. ciocola[name] = false
  2249.  
  2250. elseif c=="teren20" then
  2251. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18)
  2252. print("<VP>["..name.."] <R>a pornit terenul de <VP>Lemn<R> cu dimensiunea de:<VP> 20")
  2253. ui.removeTextArea(905,name)
  2254. ui.addTextArea(906,"<p align='center'><a href='event:terenoff'><b><font color='#8B5300'>L<VP>1</font></b></a></p>",name,64, 45, 30, 16, 0x4F2B18,0x26140B, 0.6,true)
  2255. grounds[name] = true
  2256. terenuri[name] = false
  2257. teren[name] = false
  2258. gheata[name] = false
  2259. gheatam[name] = false
  2260. gheatama[name] = false
  2261. tramb[name] = false
  2262. trambu[name] = false
  2263. trambul[name] = false
  2264. cioco[name] = false
  2265. ciocol[name] = false
  2266. ciocola[name] = false
  2267.  
  2268. elseif c=="gheata20" then
  2269. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18)
  2270. print("<VP>["..name.."] <R>a pornit terenul de <VP>Gheaţă<R> cu dimensiunea de:<VP> 20")
  2271. ui.addTextArea(10,"<p align='center'><a href='event:gheata20off'><b><CH>G<VP>1</b></a></p>",name,178,45,30,16,0x4F2B18,0x26140B,0.6,true)
  2272. gheata[name] = true
  2273. terenuri[name] = false
  2274. teren[name] = false
  2275. grounds[name] = false
  2276. gheatam[name] = false
  2277. gheatama[name] = false
  2278. tramb[name] = false
  2279. trambu[name] = false
  2280. trambul[name] = false
  2281. cioco[name] = false
  2282. ciocol[name] = false
  2283. ciocola[name] = false
  2284.  
  2285. elseif c=="gheata40" then
  2286. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18)
  2287. print("<VP>["..name.."] <R>a pornit terenul de <VP>Gheaţă<R> cu dimensiunea de:<VP> 40")
  2288. ui.addTextArea(11,"<p align='center'><a href='event:gheata40off'><b><CH>G<VP>2</b></a></p>",name,216,45,30,16,0x4F2B18,0x26140B,0.6,true)
  2289. gheatam[name] = true
  2290. terenuri[name] = false
  2291. teren[name] = false
  2292. grounds[name] = false
  2293. gheata[name] = false
  2294. gheatama[name] = false
  2295. tramb[name] = false
  2296. trambu[name] = false
  2297. trambul[name] = false
  2298. cioco[name] = false
  2299. ciocol[name] = false
  2300. ciocola[name] = false
  2301.  
  2302. elseif c=="gheata70" then
  2303. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18)
  2304. print("<VP>["..name.."] <R>a pornit terenul de <VP>Gheaţă<R> cu dimensiunea de:<VP> 70")
  2305. ui.addTextArea(12,"<p align='center'><a href='event:gheata70off'><b><CH>G<VP>3</b></a></p>",name,254,45,30,16,0x4F2B18,0x26140B,0.6,true)
  2306. gheatama[name] = true
  2307. terenuri[name] = false
  2308. teren[name] = false
  2309. grounds[name] = false
  2310. gheata[name] = false
  2311. gheatam[name] = false
  2312. tramb[name] = false
  2313. trambu[name] = false
  2314. trambul[name] = false
  2315. cioco[name] = false
  2316. ciocol[name] = false
  2317. ciocola[name] = false
  2318.  
  2319. elseif c=="tramb20" then
  2320. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18)
  2321. print("<VP>["..name.."] <R>a pornit terenul de <VP>Trambulină<R> cu dimensiunea de:<VP> 20")
  2322. ui.addTextArea(13,"<p align='center'><a href='event:tramb20off'><b><font color='#8401B4'>T</font><VP>1</b></a></p>",name,292,45,30,16,0x4F2B18,0x26140B,0.6,true)
  2323. tramb[name] = true
  2324. terenuri[name] = false
  2325. teren[name] = false
  2326. grounds[name] = false
  2327. gheata[name] = false
  2328. gheatam[name] = false
  2329. gheatama[name] = false
  2330. trambu[name] = false
  2331. trambul[name] = false
  2332. cioco[name] = false
  2333. ciocol[name] = false
  2334. ciocola[name] = false
  2335.  
  2336. elseif c=="tramb40" then
  2337. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18)
  2338. print("<VP>["..name.."] <R>a pornit terenul de <VP>Trambulină<R> cu dimensiunea de:<VP> 40")
  2339. ui.addTextArea(14,"<p align='center'><a href='event:tramb40off'><b><font color='#8401B4'>T</font><VP>2</b></a></p>",name,330,45,30,16,0x4F2B18,0x26140B,0.6,true)
  2340. trambu[name] = true
  2341. terenuri[name] = false
  2342. teren[name] = false
  2343. grounds[name] = false
  2344. gheata[name] = false
  2345. gheatam[name] = false
  2346. gheatama[name] = false
  2347. tramb[name] = false
  2348. trambul[name] = false
  2349. cioco[name] = false
  2350. ciocol[name] = false
  2351. ciocola[name] = false
  2352.  
  2353. elseif c=="tramb70" then
  2354. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18)
  2355. print("<VP>["..name.."] <R>a pornit terenul de <VP>Trambulină<R> cu dimensiunea de:<VP> 70")
  2356. ui.addTextArea(15,"<p align='center'><a href='event:tramb70off'><b><font color='#8401B4'>T</font><VP>3</b></a></p>",name,368,45,30,16,0x4F2B18,0x26140B,0.6,true)
  2357. trambul[name] = true
  2358. terenuri[name] = false
  2359. teren[name] = false
  2360. grounds[name] = false
  2361. gheata[name] = false
  2362. gheatam[name] = false
  2363. gheatama[name] = false
  2364. tramb[name] = false
  2365. trambu[name] = false
  2366. cioco[name] = false
  2367. ciocol[name] = false
  2368. ciocola[name] = false
  2369.  
  2370. elseif c=="coco20" then
  2371. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18)
  2372. print("<VP>["..name.."] <R>a pornit terenul de <VP>Ciocolată<R> cu dimensiunea de:<VP> 20")
  2373. ui.addTextArea(16,"<p align='center'><a href='event:coco20off'><b><font color='#3E1F00'>C</font><VP>1</b></a></p>",name,406,45,30,16,0x4F2B18,0x26140B,0.6,true)
  2374. cioco[name] = true
  2375. terenuri[name] = false
  2376. teren[name] = false
  2377. grounds[name] = false
  2378. gheata[name] = false
  2379. gheatam[name] = false
  2380. gheatama[name] = false
  2381. tramb[name] = false
  2382. trambu[name] = false
  2383. trambul[name] = false
  2384. ciocol[name] = false
  2385. ciocola[name] = false
  2386.  
  2387. elseif c=="coco40" then
  2388. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18)
  2389. print("<VP>["..name.."] <R>a pornit terenul de <VP>Ciocolată<R> cu dimensiunea de:<VP> 40")
  2390. ui.addTextArea(17,"<p align='center'><a href='event:coco40off'><b><font color='#3E1F00'>C</font><VP>2</b></a></p>",name,444,45,30,16,0x4F2B18,0x26140B,0.6,true)
  2391. ciocol[name] = true
  2392. terenuri[name] = false
  2393. teren[name] = false
  2394. grounds[name] = false
  2395. gheata[name] = false
  2396. gheatam[name] = false
  2397. gheatama[name] = false
  2398. tramb[name] = false
  2399. trambu[name] = false
  2400. trambul[name] = false
  2401. cioco[name] = false
  2402. ciocola[name] = false
  2403.  
  2404. elseif c=="coco70" then
  2405. ui.addTextArea(1998, "<a href='event:closegr'>Opreşte terenul</a>", name, 694, 380, 101, 21, 0x4f2b18)
  2406. print("<VP>["..name.."] <R>a pornit terenul de <VP>Ciocolată<R> cu dimensiunea de:<VP> 70")
  2407. ui.addTextArea(18,"<p align='center'><a href='event:coco70off'><b><font color='#3E1F00'>C</font><VP>3</b></a></p>",name,482,45,30,16,0x4F2B18,0x26140B,0.6,true)
  2408. ciocola[name] = true
  2409. terenuri[name] = false
  2410. teren[name] = false
  2411. grounds[name] = false
  2412. gheata[name] = false
  2413. gheatam[name] = false
  2414. gheatama[name] = false
  2415. tramb[name] = false
  2416. trambu[name] = false
  2417. trambul[name] = false
  2418. cioco[name] = false
  2419. ciocol[name] = false
  2420. end
  2421. end
  2422. for name,player in pairs(tfm.get.room.playerList) do
  2423. eventNewPlayer(name)
  2424. end
  2425. ui.removeTextArea(9,name)
  2426. function eventPopupAnswer(id, nm, an)
  2427. if id==-2 then
  2428. end
  2429. if id==1 then
  2430. Log = '<ch>['..nm..'] <n>il ingheata pe <r>'..an..'\n'..Log
  2431. ui.addTextArea(2,"<R><B>"..nm.."</B> : <N>te-am înghetat: <J><B>"..an.."",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  2432. if tfm.get.room.playerList[an] then
  2433. local y = tfm.get.room.playerList[an].y
  2434. local x = tfm.get.room.playerList[an].x
  2435. tfm.exec.addShamanObject(54, x, y, 0, 0, 0, false)
  2436. tfm.exec.displayParticle(15,x,y,math.random(-5,5),math.random(-5,5),name)
  2437. tfm.exec.displayParticle(15,x,y,math.random(-5,5),math.random(-5,5),name)
  2438. tfm.exec.displayParticle(15,x,y,math.random(-5,5),math.random(-5,5),name)
  2439. tfm.exec.displayParticle(15,x,y,math.random(-5,5),math.random(-5,5),name)
  2440. tfm.exec.displayParticle(15,x,y,math.random(-5,5),math.random(-5,5),name)
  2441. tfm.exec.displayParticle(15,x,y,math.random(-5,5),math.random(-5,5),name)
  2442. tfm.exec.displayParticle(15,x,y,math.random(-5,5),math.random(-5,5),name)
  2443. tfm.exec.killPlayer(""..an.."")
  2444. end
  2445. end
  2446. if id==2 then
  2447. Log = '<r>['..nm..'] <n>unban > <vp>'..an..'\n'..Log
  2448. table.insert(ban, an)
  2449. ban = {}
  2450. tfm.exec.setUIShamanName("<J>"..nm.." : <N>unban > <VP>"..an.."")
  2451. ui.removeTextArea(800,an)
  2452. ui.removeTextArea(187,an)
  2453. tfm.exec.killPlayer(an);
  2454. tfm.exec.removePhysicObject(1)
  2455. tfm.exec.removePhysicObject(2)
  2456. tfm.exec.removePhysicObject(3)
  2457. tfm.exec.removePhysicObject(4)
  2458. end
  2459. if id==3 then
  2460. table.insert(admin, an)
  2461. Log = '<r>['..nm..'] <n>Este un nou administrator: <t>'..an..'\n'..Log
  2462. ui.addTextArea(2,"<R><B>[Admin "..nm.."] : </B><N>Este un nou administrator temporar: <T><B>"..an.."</B>",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  2463. tfm.exec.killPlayer(""..an.."")
  2464. end
  2465. if id==4 then
  2466. if an == "" then
  2467. print("<bv>"..nm.." <r>a anulat <j>Msg")
  2468. ui.addPopup(5,0,"<p align='center'><font size='15'>Nu ai scris jucătorul, anulat.</font></p>",nm,200,129,400)
  2469. end
  2470. local txd={}
  2471. for text in an:gmatch("[^%s]+") do
  2472. table.insert(txd,text)
  2473. end
  2474. num=txd[1]
  2475. end
  2476. if id==5 then
  2477. ui.addPopup(6,1,"<p align='center'><font size='15'>Ai scris corect numele: "..num.." ?</font></p>",nm,200,129,400)
  2478. ui.addTextArea(2000, "", num, 480, 228, 317, 173, 0xc47800 , nil , nil , true)
  2479. ui.addTextArea(2002, "<font size='11'><j>Ai primit un mesaj de la: <u>"..nm.."</u><br><br><n>"..an.."", num, 485, 233, 308, 159, 0x14313c, nil, nil, true)
  2480.  
  2481. end
  2482. if id==6 then
  2483. if an== "yes" then
  2484. ui.addTextArea(3, "Mesaj trimis !", nm, 708, 379, 87, 22, 0x163744)
  2485. end
  2486. if an== "no" then
  2487. ui.addPopup(5,2,"<p align='center'><b>Scrie un mesaj:</p></b>",nm,300,200,200)
  2488. ui.addPopup(4,2,"<p align='center'><b>Scrie numele jucătorului</p></b>",nm,300,200,200)
  2489. end
  2490. end
  2491.  
  2492. if id==8 then
  2493. tfm.exec.killPlayer(""..an.."")
  2494. Log = '<ch>['..nm..'] <n>te-am ucis <r>'..an..'\n'..Log
  2495. ui.addTextArea(2,"<J><B>"..nm.." : </B><N>Te-am ucis: <R><B>"..an.."</B>",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  2496. end
  2497. if id==9 then
  2498. tfm.exec.setUIShamanName("<J>"..nm.." <N>a adăugat <J>"..an.." <N>sec.")
  2499. tfm.exec.setGameTime(""..an.."")
  2500. end
  2501. if id==10 then
  2502. Log = '<r>Admin['..nm..'] <n>il baneaza pe <v>'..an..'\n'..Log
  2503. table.insert(ban, an)
  2504. ui.addTextArea(2,"<J><B>[Admin "..nm.."] : </B><N>Eşti banat: <R><B>"..an.."</B>",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  2505. ui.addTextArea(800,"",an,0,0,800,400,0x000001,0x000001,0.2,true)
  2506. tfm.exec.killPlayer(""..an.."")
  2507. end
  2508. if id==11 then
  2509. if an=="yes" then
  2510. ui.addTextArea(11,"<p align='center'><BL>| <a href='event:sageata'><b>1</b></a> <BL>| <a href='event:cutiemica'><b>2</b></a> <BL>| <a href='event:cutiemare'><b>3</b></a> <BL>| <a href='event:lemnmic'><b>4</b></a> <BL>| <a href='event:lemnmare'><b>5</b></a> <BL>| <a href='event:minge'><b>6</b></a> <BL>| <a href='event:trambulina'><b>7</b></a> <BL>| <a href='event:anvila'><b>8</b></a> <BL>| <a href='event:bomb'><b>9</b></a> <BL>| <a href='event:portal'><b>10</b></a> <BL>| <a href='event:portals'><b>11</b></a> <BL>| <a href='event:balon'><b>12</b></a> <BL>| <a href='event:runa'><b>13</b></a> <BL>| <a href='event:sow'><b>14</b></a> <BL>| <a href='event:van'><b>15</b></a> <BL>| <a href='event:mar'><b>16</b></a> <BL>| <a href='event:sheep'><b>17</b></a> <BL>| <a href='event:gheata'><b>18</b></a> <BL>| <a href='event:bule'><b>19</b></a> <BL>| <a href='event:mic'><b>20</b></a> <BL>| <a href='event:cutiein'><b>21</b></a> <BL>| <a href='event:nor'><b>22</b></a><BL>|</p></font>",nm,210,20,600,16,0x4F2B18,0x26140B,0.6,true)
  2511. end
  2512. if an=="no" then
  2513. print("["..nm.."] Nu doreşte să deschidă obiectele şaman.")
  2514. end
  2515. end
  2516. if id==12 then
  2517. ui.addPopup(1000,0,"<p align='center'><b>Mulţumesc că ai votat.</p></b>",nm,300,200,200)
  2518. print("<r>"..nm.." <g>motivul este: <r>"..an.."")
  2519. if an=="" then
  2520. ui.addPopup(1000,0,"<p align='center'><b>Păcat că nu ai răspuns.</p></b>",nm,300,200,200)
  2521. print("<r>"..nm.." nu a dorit să răspundă")
  2522. end
  2523. end
  2524. if id==13 then
  2525. ui.addPopup(1000,0,"<p align='center'><b>Mulţumesc că ai votat.</p></b>",nm,300,200,200)
  2526. print("<r>"..nm.." <g>specifică: <r>"..an.."")
  2527. if an=="" then
  2528. ui.addPopup(1000,0,"<p align='center'><b>Păcat că nu ai răspuns.</p></b>",nm,300,200,200)
  2529. print("<r>"..nm.." nu a dorit să răspundă")
  2530. end
  2531. end
  2532. if id==14 then
  2533. ui.addPopup(1000,0,"<p align='center'><b>Mulţumesc că ai votat.</p></b>",nm,300,200,200)
  2534. print("<v>"..nm.." : "..an.."")
  2535. end
  2536. if id==999 then
  2537. if an == "" then
  2538. print("<bv>"..nm.." <r>a anulat")
  2539. ui.addPopup(1000,0,"<p align='center'><font size='15'>Nu ai scris jucătorul, anulat.</font></p>",nm,200,129,400)
  2540. end
  2541. local arg={}
  2542. for argument in an:gmatch("[^%s]+") do
  2543. table.insert(arg,argument)
  2544. end
  2545. nme=arg[1]
  2546. end
  2547. if id==1000 then
  2548. nume=nume..nme..[[
  2549.  
  2550. ]]
  2551. motive=motive..an..[[
  2552.  
  2553. ]]
  2554. cine=cine..nm..[[
  2555.  
  2556. ]]
  2557. ui.addPopup(100,0,"[SecurityBot]: <br>Mulţumesc că ai raportat jucătorul. Erikq, Kyasx sau Tucancitto vor verifica imediat.<br><br>Jucătorul raportat: <b>"..nme.."</b><br>Motiv: <b>"..an.."</b> <br>De cine: <b>"..nm.."</b>",nm,200,129,400)
  2558. Log = '<v>['..nm..'] <n>a reportat o persoana: <r>'..nme..', motiv: '..an..'\n'..Log
  2559. ui.addTextArea(60,[[<a href="event:reports"><j>Raportări<a>]],a,730,370,nil,nil,0x4F2B18,0x26140B,1)
  2560. ui.addTextArea(61,[[<a href="event:reports"><j>Raportări<a>]],b,730,370,nil,nil,0x4F2B18,0x26140B,1)
  2561. ui.addTextArea(62,[[<a href="event:reports"><j>Raportări<a>]],d,730,370,nil,nil,0x4F2B18,0x26140B,1)
  2562. end
  2563. if id==21 then
  2564. if an=="" then
  2565. nunte = true
  2566. nuntar = false
  2567. ui.addPopup(21,0,"<p align='center'><font size='15'>Nu ai scris jucătorul, anulat.</font></p>",nm,200,129,400)
  2568. ui.addPopup(22,0,"<p align='center'><font size='15'>Nu ai scris jucătorul, anulat.</font></p>",nm,200,129,400)
  2569. end
  2570. local args={}
  2571. for argument in an:gmatch("[^%s]+") do
  2572. table.insert(args,argument)
  2573. sotie=args[1]
  2574. timp_loading = true
  2575. ui.addTextArea(801, "", sotie, 212, 95, 377, 229, 0xc47800, 0x000000, 1, true)
  2576. ui.addTextArea(802, "<J><p align='center'><font size='15'>Scrisoare de acord de la "..nm.."</font></p>\n\n<n><font size='20'>Vrei sa te mariti cu "..sot.." ?", sotie, 219, 99, 364, 219, 0x0e242d, 0x000000, 1, true)
  2577. ui.addTextArea(803, "<a href='event:resDa'>Da vreau</a>", sotie, 277, 263, 62, 16, 0x0e242d, 0xc47800, 1, true)
  2578. ui.addTextArea(804, "<a href='event:resNu'>Nu vreau</a>", sotie, 455, 263, 62, 16, 0x0e242d, 0xc47800, 1, true)
  2579. ui.addTextArea(801, "", sot, 212, 95, 377, 229, 0xc47800, 0x000000, 1, true)
  2580. ui.addTextArea(802, "<J><p align='center'><font size='15'>Scrisoare de acord de la "..nm.."</font></p>\n\n<n><font size='20'>Vrei sa te casatoresti cu "..sotie.." ?", sot, 219, 99, 364, 219, 0x0e242d, 0x000000, 1, true)
  2581. ui.addTextArea(803, "<a href='event:resDa'>Da vreau</a>", sot, 277, 263, 62, 16, 0x0e242d, 0xc47800, 1, true)
  2582. ui.addTextArea(804, "<a href='event:resNu1'>Nu vreau</a>", sot, 455, 263, 62, 16, 0x0e242d, 0xc47800, 1, true)
  2583. end
  2584. end
  2585. if id==22 then
  2586. if an=="" then
  2587. nuntar = false
  2588. nunte = true
  2589. ui.addPopup(21,0,"<p align='center'><font size='15'>Nu ai scris jucătorul, anulat.</font></p>",nm,200,129,400)
  2590. ui.addPopup(22,0,"<p align='center'><font size='15'>Nu ai scris jucătorul, anulat.</font></p>",nm,200,129,400)
  2591. end
  2592. local argse={}
  2593. for argument in an:gmatch("[^%s]+") do
  2594. table.insert(argse,argument)
  2595. end
  2596. sot=argse[1]
  2597. end
  2598. end
  2599.  
  2600. for i,command in ipairs({"1","q","a","np","map","test","stop","go","nunta"}) do system.
  2601. disableChatCommandDisplay(command,true)
  2602. end
  2603.  
  2604. rpg = 0
  2605. function eventChatCommand(name,com,msg)
  2606. if com:sub(0,5)=="nunta" then
  2607. if nunte then
  2608. nuntar = true
  2609. timp_MesajBot = true
  2610. ui.addPopup(21,2,"<p align='center'><b>Cine este viitoarea <font color='#FA00B6'>Soție</font></p></b>",name,300,200,200,true)
  2611. ui.addPopup(22,2,"<p align='center'><b>Cine este viitorul <font color='#0083AA'>Soț</font></p></b>",name,300,200,200,true)
  2612. end
  2613. if nunte == false then
  2614. timp_MesajBot = true
  2615. ui.addTextArea(6006,"<J><B>[Bot]</B><N> Cineva a trimis o scrisoare de acord, asteapta cateva minute",name,6,380,x,20,0x4F2B18,0x26140B,1,true)
  2616. end
  2617. end
  2618. if com:sub(0,2)=="go" then
  2619. table.insert(safk, name)
  2620. Logmsg = ' <v>['..name..'] <n> concurs Activat\n'..Logmsg
  2621. timp_normal = true
  2622. end
  2623. if com:sub(1,1)=="1" then
  2624. Logmsg = ' <r>'..name..' <n>> <j>[Bot] <n> '..com:sub(3)..'\n'..Logmsg
  2625. print("[B]"..name.." : "..com:sub(3).."")
  2626. timp_MesajBot = true
  2627. ui.addTextArea(4,"<J><B>[Bot]</B><N> "..com:sub(3).."",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  2628. t=10
  2629. end
  2630. if com:sub(1,1)=="q" then
  2631. Logmsg = '<j>['..name..'] <n> '..com:sub(3)..'\n'..Logmsg
  2632. timp_MesajBot = true
  2633. print("[Q]"..name.." : "..com:sub(3).."")
  2634. ui.addTextArea(4,"<J><B>~"..name.."</B><N> "..com:sub(3).."",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  2635. t=10
  2636. end
  2637. if com:sub(1,1)=="a" then
  2638. Logmsg = ' <r>private player <n> <j>[Anonim] <n> '..com:sub(3)..'\n'..Logmsg
  2639. timp_MesajBot = true
  2640. print("[A]"..name.." : "..com:sub(3).."")
  2641. ui.addTextArea(4,"<J><B>[Anonim]</B><N> "..com:sub(3).."",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  2642. t=10
  2643. end
  2644. if com:sub(0,2)=="np" then
  2645. if np then
  2646. Logmsg = '<bl>[Np] ['..name..'] <n>a pus mapa: <bl>'..com:sub(3)..'\n'..Logmsg
  2647. print("[Np]"..name.." a pus mapa: "..com:sub(4).."")
  2648. tfm.exec.newGame(com:sub(4))
  2649. end
  2650. end
  2651. if com:sub(0,3)=="map" then
  2652. if maper then
  2653. Logmsg = '<bl>[Map] ['..name..'] <n>a pus mapa \n'..Log
  2654. print("[Map]"..name.." a pus mapa")
  2655. tfm.exec.newGame(m[math.random(#m)])
  2656. end
  2657. end
  2658. if com:sub(0,4)=="test" then
  2659. Logmsg = '<bl>[Test] ['..name..'] <n>testeaza mapa: <bl>'..com:sub(6)..'\n'..Logmsg
  2660. ui.removeTextArea(5,nil)
  2661. if test_timp then
  2662. systemOFF(s)
  2663. timp_testExpirat=180
  2664. notest = false
  2665. test = true
  2666. test_timp = false
  2667. timp_test = true
  2668. ui.addTextArea(1221,"Toate comenzile sunt dezactivate pentru 3 minute",nil,5,20,x,16,0x4F2B18,0x26140B,0.6,true)
  2669. print("[Test]"..name.." a pus mapa: "..com:sub(6).."")
  2670. tfm.exec.newGame(com:sub(6))
  2671. tfm.exec.setGameTime(180)
  2672. end
  2673. end
  2674. if com:sub(0,4)=="stop" then
  2675. Logmsg = '<bl>[Test] ['..name..'] <n>a scris <bl>!stop\n'..Logmsg
  2676. ui.addTextArea(1221,"Când trec cele <v>3 minute<n>, toate comenzile sunt activate",name,5,-20,x,16,0x4F2B18,0x26140B,1,true)
  2677. ui.addTextArea(403,"<p align='center'><a href='event:tp'><b>Tp: <r>OFF</a></p>",name,5,20,65,16,0x4F2B18,0x26140B,0.6,true)
  2678. ui.addTextArea(410,"<p align='center'><a href='event:meniu'><b>Menu</a></p>",name,78,20,45,16,0x4F2B18,0x26140B,0.6,true)
  2679. Fly = true
  2680. canTeleport = {}
  2681. cheese = true
  2682. playerVictory = true
  2683. vipParticle = true
  2684. speedDr = true
  2685. speedSt = true
  2686. timeM = true
  2687. trambel = true
  2688. particle = {}
  2689. particle_1 = {}
  2690. particle_2 = {}
  2691. particle_3 = {}
  2692. end
  2693. end
  2694. function eventColorPicked (id,nm,an)
  2695. tfm.exec.setNameColor (nm, an)
  2696. end
  2697. tfm.exec.disableAutoTimeLeft(true)
  2698. tfm.exec.disableAfkDeath(true)
  2699. tfm.exec.disableAutoShaman(true)
  2700. tfm.exec.disableAutoNewGame(true)
  2701.  
  2702.  
  2703. t=0.5
  2704. timp_remove2=15
  2705. timp_remove=5
  2706. timp_remove1=15
  2707. timp_joc=600
  2708. timp_normalpuncte=61
  2709. timp_botpuncte=10
  2710. timp_testExpirat=180
  2711. timp_load = 15
  2712. nuntal = 1
  2713. timp_loader = 10
  2714. movesotie = 800
  2715. timp_pornire = false
  2716. timp_asteptare = false
  2717. timp_gandire = false
  2718. timp_normal = false
  2719. timp_MesajBot = false
  2720. timp_test = false
  2721. timp_loading = false
  2722. timp_loaders = false
  2723. np = true
  2724. maper = true
  2725. test = false
  2726. test_timp = true
  2727. notest = true
  2728. movem = false
  2729. moveb = false
  2730. movet = false
  2731. mover = false
  2732. nuntar = false
  2733.  
  2734.  
  2735. function eventLoop(currentTime, timeRemaining)
  2736. if current_date < end_date then
  2737.         current_date  = ro_date(os.date("%m/%d/%Y %H:%M:%S"))
  2738.         ui.updateTextArea(1004,"<J><B><p align='center'>Anunt important!</p></B><N><br><p align='left'>bla bla bla bla bla bla<br></p><br><br><p align='center'><font color='#aaaaaa' size='10'><B>Current time </B></font><br> <font color='#cccccc' size='10'>"..current_date.."</font></p><br><br><br><br><br><p align='right'><font color='#aaaaaa' size='10'><b>Anunt activ pana la date de </b></font></p><p align='right'><font color='#cccccc' size='10'>"..end_date.."</font></p>",nil,0,0,1,1,0x4F2B18,0x26140B,0.9,true)
  2739.     else
  2740.         ui.removeTextArea(1004,nil)
  2741.         for name, player in pairs(admin) do
  2742.         ui.addTextArea(5,"",player,-560,-250,1920,1080,true,0x100000,0.9,true)
  2743.         ui.addTextArea(1006, "", player, 212, 95, 377, 229, 0xc47800, 0x000000, 1, true)
  2744.         ui.addTextArea(1007, "Versiune Veche<br> Te rog schimba versiunea, intra pe discord sau contacteaza-l pe Erikq", player, 219, 100, 364, 219, 0x0e242d, 0x000000, 1, true)
  2745.         timer=false
  2746.         end
  2747.     end
  2748. afk('afktime')
  2749. afk('movetime')
  2750. t=t+0.5
  2751. if t==1 and nuntar == true then
  2752. nuntal=nuntal-0.5
  2753. if nuntal == 0 then
  2754. nunte = false
  2755. nuntar = false
  2756. nuntal = 1
  2757. end
  2758. end
  2759.  
  2760. if t==1 and timp_loaders == true then
  2761. timp_loader=timp_loader-0.5
  2762. if timp_loader == 0 then
  2763. ui.removeTextArea(6007,nil)
  2764. timp_loaders = false
  2765. timp_loader = 10
  2766. end
  2767. end
  2768. if t==1 and timp_loading then
  2769. timp_load=timp_load-0.5
  2770. if timp_load == 0 then
  2771. nunte = true
  2772. ui.removeTextArea(801,sot)
  2773. ui.removeTextArea(802,sot)
  2774. ui.removeTextArea(803,sot)
  2775. ui.removeTextArea(804,sot)
  2776. ui.removeTextArea(801,sotie)
  2777. ui.removeTextArea(802,sotie)
  2778. ui.removeTextArea(803,sotie)
  2779. ui.removeTextArea(804,sotie)
  2780. timp_loading = false
  2781. timp_load = 15
  2782. resda = 0
  2783. ui.addTextArea(6007,"<J><B>[Scrisoare de acord Amanat]</B><N> Timpul a expirat, ori jucatorul a scris gresit numele ori nu a raspuns",sot,6,380,x,20,0x4F2B18,0x26140B,1,true)
  2784. ui.addTextArea(6007,"<J><B>[Scrisoare de acord Amanat]</B><N> Timpul a expirat, ori jucatorul a scris gresit numele ori nu a raspuns",sotie,6,380,x,20,0x4F2B18,0x26140B,1,true)
  2785. timp_loaders = true
  2786. end
  2787. end
  2788. if t==1 and movem == true then
  2789. movesotie=movesotie-0.5
  2790. tfm.exec.movePlayer(sot,165, 265,offset,0,0,offset)
  2791. if movesotie == 795 then
  2792. die = false
  2793. nodie = true
  2794. ui.addTextArea(0, "Bun gasit martori oculari, luati loc...", nil, 15, 154, 125, 60, 0x324650, 0x000000, 1, true)
  2795. end
  2796. if movesotie == 790 then
  2797. moveb = true
  2798. movem = false
  2799. movesotie=790
  2800. tfm.exec.respawnPlayer(sotie)
  2801. tfm.exec.movePlayer(sotie,790, 335,offset,0,0,offset)
  2802. tfm.exec.setNameColor(sotie,0xFE00AD)
  2803. end
  2804. end
  2805. if t==1 and moveb == true then
  2806. tfm.exec.movePlayer(sot,165, 265,offset,0,0,offset)
  2807. movesotie=movesotie-20
  2808. tfm.exec.movePlayer(sotie,movesotie, 335,offset,0,0,offset)
  2809. ui.addTextArea(0, "Buna <ch>"..sot.." <n>asteapta sa vina si <rose>"..sotie.."", nil, 15, 154, 125, 60, 0x324650, 0x000000, 1, true)
  2810. if movesotie == 370 then
  2811. tfm.exec.setNameColor(sot,0x02D0D4)
  2812. tfm.exec.setNameColor(sotie,0xFE00AD)
  2813. moveb = false
  2814. movet = true
  2815. end
  2816. end
  2817. if t==1 and movet == true then
  2818. tfm.exec.movePlayer(sot,165, 265,offset,0,0,offset)
  2819. movesotie=movesotie-0.5
  2820. if movesotie == 369 then
  2821. tfm.exec.movePlayer(sotie,335, 322,offset,0,0,offset)
  2822. end
  2823. if movesotie == 368 then
  2824. tfm.exec.movePlayer(sotie,305, 300,offset,0,0,offset)
  2825. end
  2826. if movesotie == 367 then
  2827. tfm.exec.movePlayer(sotie,275, 282,offset,0,0,offset)
  2828. end
  2829. if movesotie == 366 then
  2830. tfm.exec.movePlayer(sotie,230, 265,offset,0,0,offset)
  2831. movet = false
  2832. mover = true
  2833. movesotie=0
  2834. end
  2835. end
  2836. if t==1 and mover == true then
  2837. movesotie=movesotie+0.5
  2838. tfm.exec.movePlayer(sotie,230, 265,offset,0,0,offset)
  2839. tfm.exec.movePlayer(sot,165, 265,offset,0,0,offset)
  2840. if movesotie == 1 then
  2841. ui.addTextArea(0, "<ch>"..sot.." <n>si <rose>"..sotie.." <n>sunteti pregatiti ?", nil, 15, 154, 125, 60, 0x324650, 0x000000, 1, true)
  2842. end
  2843. if movesotie == 5 then
  2844. ui.addTextArea(0, "Haidati sa incepem..", nil, 15, 154, 125, 60, 0x324650, 0x000000, 1, true)
  2845. end
  2846. if movesotie == 10 then
  2847. ui.addTextArea(0, "Ne-am adunat aici să celebrăm această zi importantă", nil, 15, 154, 125, 60, 0x324650, 0x000000, 1, true)
  2848. end
  2849. if movesotie == 15 then
  2850. ui.addTextArea(0, "Uniunea a 2 suflete în companie veșnică", nil, 15, 154, 125, 60, 0x324650, 0x000000, 1, true)
  2851. end
  2852. if movesotie == 20 then
  2853. ui.addTextArea(0, "Voi veţi fi împreuna în prosperitate şi sărăcie", nil, 15, 154, 125, 60, 0x324650, 0x000000, 1, true)
  2854. end
  2855. if movesotie == 25 then
  2856. ui.addTextArea(0, "şi în bucurie şi greutaţi", nil, 15, 154, 125, 60, 0x324650, 0x000000, 1, true)
  2857. end
  2858. if movesotie == 30 then
  2859. ui.addTextArea(0, "<ch>"..sot.."<n>, eşti de acord să fiţi legati împreuna in dragoste acum şi pentru totdeauna??", nil, 15, 154, 155, 60, 0x324650, 0x000000, 1, true)
  2860. end
  2861. if movesotie == 32 then
  2862. ui.addTextArea(6000, "<a href='event:dasot'><font size='25'>Da</font></a>", sot, 101, 318, 40, 40, 0x324650, 0x000000, 1, true)
  2863. ui.addTextArea(6001, "<a href='event:nusot'><font size='25'>Nu</font></a>", sot, 196, 318, 40, 40, 0x324650, 0x000000, 1, true)
  2864. end
  2865. if movesotie == 42 then
  2866. ui.addTextArea(0, "<ch>"..sot.." <n>nu raspunde, ce s-a intamplat cu el ? Hai ca mai asteptam putin.", nil, 15, 124, 155, 60, 0x324650, 0x000000, 1, true)
  2867. end
  2868. if movesotie == 52 then
  2869. ui.addTextArea(0, "Se pare ca <ch>"..sot.." <n>nu este disponibil, voi amana nunta.", nil, 15, 124, 155, 60, 0x324650, 0x000000, 1, true)
  2870. end
  2871. if movesotie == 55 then
  2872. ui.removeTextArea(0,nil)
  2873. ui.removeTextArea(6000,nil)
  2874. ui.removeTextArea(6001,nil)
  2875. mover = false
  2876. movesotie = 800
  2877. systemON(s)
  2878. tfm.exec.newGame(m[math.random(#m)])
  2879. end
  2880. if movesotie == 65 then
  2881. ui.addTextArea(0, "<rose>"..sotie.."<n>, eşti de acord să fiţi legati împreuna in dragoste acum şi pentru totdeauna??", nil, 15, 154, 155, 60, 0x324650, 0x000000, 1, true)
  2882. end
  2883. if movesotie == 67 then
  2884. ui.addTextArea(6000, "<a href='event:dasotie'><font size='25'>Da</font></a>", sotie, 172, 318, 40, 40, 0x324650, 0x000000, 1, true)
  2885. ui.addTextArea(6001, "<a href='event:nusotie'><font size='25'>Nu</font></a>", sotie, 258, 318, 40, 40, 0x324650, 0x000000, 1, true)
  2886. end
  2887. if movesotie == 77 then
  2888. ui.addTextArea(0, "<rose>"..sotie.." <n>nu raspunde, ce s-a intamplat cu ea ? Hai ca mai asteptam putin.", nil, 15, 124, 155, 60, 0x324650, 0x000000, 1, true)
  2889. end
  2890. if movesotie == 87 then
  2891. ui.addTextArea(0, "Se pare ca <rose>"..sotie.." <n>nu este disponibila, voi amana nunta.", nil, 15, 124, 155, 60, 0x324650, 0x000000, 1, true)
  2892. end
  2893. if movesotie == 92 then
  2894. ui.removeTextArea(0,nil)
  2895. ui.removeTextArea(6000,nil)
  2896. ui.removeTextArea(6001,nil)
  2897. mover = false
  2898. movesotie = 800
  2899. systemON(s)
  2900. tfm.exec.newGame(m[math.random(#m)])
  2901. end
  2902. if movesotie == 98 then
  2903. mover = false
  2904. movef = true
  2905. end
  2906. end
  2907. if t==1 and movef == true then
  2908. movesotie=movesotie+0.5
  2909. if movesotie == 100 then
  2910. tfm.exec.movePlayer(sot,190, 265,offset,0,0,offset)
  2911. ui.addTextArea(0, "Atunci vă declar căsătoriţi! Poți săruta mireasa", nil, 15, 124, 155, 60, 0x324650, 0x000000, 1, true)
  2912. end
  2913. if movesotie == 110 then
  2914. ui.addTextArea(0, "Haidati sa ne distram, va invit la restaurant la <rose>Paris!", nil, 15, 124, 155, 60, 0x324650, 0x000000, 1, true)
  2915. end
  2916. if movesotie == 115 then
  2917. ui.removeTextArea(0,nil)
  2918. tfm.exec.newGame([[<C><P APS="x_evenements/x_fondSVb.png,0,940,0,800,400" L="1660" D="x_evenements/x_fondSVa.jpg" d="x_evenements/x_fondSVc.png" /><Z><S><S Y="201" T="12" P="0,0,0,0.2,90,0,0,0" L="400" o="12bd94" m="" X="-4" H="10" /><S Y="390" T="12" P="0,0,0.3,0.2,0,0,0,0" L="200" o="12bd94" m="" X="101" H="20" /><S Y="403" T="12" P="0,0,0.3,0.2,0,0,0,0" L="310" o="12bd94" m="" X="354" H="20" /><S Y="389" T="12" P="0,0,0.3,0.2,0,0,0,0" L="400" o="12bd94" m="" X="706" H="20" /><S Y="401" T="12" P="0,0,0.3,0.2,0,0,0,0" L="720" o="12bd94" m="" X="1300" H="20" /><S Y="390" T="12" P="0,0,0.3,0.2,-30,0,0,0" L="30" o="12bd94" m="" X="497" H="10" /><S Y="393" T="12" P="0,0,0.3,0.2,40,0,0,0" L="30" o="12bd94" m="" X="210" H="10" /><S Y="390" T="12" P="0,0,0.3,0.2,15,0,0,0" L="50" o="12bd94" m="" X="927" H="10" /><S Y="241" T="9" P="0,0,,,,0,0,0" L="57" m="" X="1630" H="300" /><S Y="265" T="12" P="0,0,0.3,0.2,0,0,0,0" L="850" o="12bd94" m="" X="1174" H="10" /><S Y="148" T="12" P="0,0,0.3,0.2,0,0,0,0" L="850" o="12bd94" m="" X="1176" H="10" /><S Y="201" T="12" P="0,0,0,0.2,-90,0,0,0" L="420" o="12bd94" m="" X="1664" H="10" /><S Y="-10" T="12" P="0,0,0.3,0,0,0,0,0" L="720" o="12bd94" m="" X="1309" H="20" /><S Y="273" T="12" P="0,0,0.3,0.2,0,0,0,0" L="40" o="12bd94" m="" X="629" H="10" /><S Y="214" T="12" P="0,0,0.3,0.2,0,0,0,0" L="60" o="12bd94" m="" X="565" H="10" /><S Y="66" T="12" P="0,0,0.3,0.2,0,0,0,0" L="280" o="12bd94" m="" X="266" H="10" /><S Y="218" T="12" P="0,0,0.3,0.2,90,0,0,0" L="200" o="12bd94" m="" X="429" H="10" /></S><D><DS Y="362" X="89" /><P Y="143" T="68" X="844" P="0,0" /><P Y="142" T="67" X="801" P="0,0" /><P Y="143" T="67" X="890" P="0,1" /><P Y="259" T="68" X="850" P="0,0" /><P Y="143" T="68" X="1017" P="0,0" /><P Y="143" T="68" X="1182" P="0,0" /><P Y="143" T="68" X="1334" P="0,0" /><P Y="143" T="68" X="1507" P="0,0" /><P Y="260" T="68" X="1513" P="0,0" /><P Y="260" T="68" X="1339" P="0,0" /><P Y="260" T="68" X="1174" P="0,0" /><P Y="260" T="68" X="1019" P="0,0" /><P Y="390" T="68" X="1115" P="0,0" /><P Y="389" T="68" X="1285" P="0,0" /><P Y="391" T="68" X="1459" P="0,0" /><P Y="260" T="67" X="809" P="0,0" /><P Y="143" T="67" X="975" P="0,0" /><P Y="144" T="67" X="1137" P="0,0" /><P Y="144" T="67" X="1290" P="0,0" /><P Y="144" T="67" X="1464" P="0,0" /><P Y="260" T="67" X="971" P="0,0" /><P Y="260" T="67" X="1131" P="0,0" /><P Y="259" T="67" X="1296" P="0,0" /><P Y="260" T="67" X="1468" P="0,0" /><P Y="391" T="67" X="1415" P="0,0" /><P Y="390" T="67" X="1240" P="0,0" /><P Y="391" T="67" X="1070" P="0,0" /><P Y="260" T="67" X="894" P="0,1" /><P Y="390" T="67" X="1504" P="0,1" /><P Y="391" T="67" X="1331" P="0,1" /><P Y="390" T="67" X="1160" P="0,1" /><P Y="144" T="67" X="1552" P="0,1" /><P Y="144" T="67" X="1380" P="0,1" /><P Y="143" T="67" X="1230" P="0,1" /><P Y="143" T="67" X="1063" P="0,1" /><P Y="260" T="67" X="1063" P="0,1" /><P Y="260" T="67" X="1220" P="0,1" /><P Y="260" T="67" X="1387" P="0,1" /><P Y="259" T="67" X="1558" P="0,1" /></D><O><O C="22" Y="282" X="1108" P="0" /></O></Z></C>]])
  2919. tfm.exec.setGameTime(120,true)
  2920. tfm.exec.setUIMapName("<n>Paris  <ch>"..sot.." <n>si <rose>"..sotie.."")
  2921. end
  2922. if movesotie == 116 then
  2923. tfm.exec.movePlayer(sotie,898, 220,offset,0,0,offset)
  2924. tfm.exec.movePlayer(sot,805, 220,offset,0,0,offset)
  2925. end
  2926. if movesotie == 140 then
  2927. systemON(s)
  2928. movef = false
  2929. movesotie = 800
  2930. end
  2931. if movesotie == 205 then
  2932. ui.addTextArea(0, "Oh.. Imi pare rau de tine <rose>"..sotie.."", nil, 15, 124, 155, 60, 0x324650, 0x000000, 1, true)
  2933. end
  2934. if movesotie == 210 then
  2935. ui.addTextArea(0, "Vrei sa te razbuni pe <ch>"..sot.." <n>?", nil, 15, 124, 155, 60, 0x324650, 0x000000, 1, true)
  2936. end
  2937. if movesotie == 212 then
  2938. ui.addTextArea(6000, "<a href='event:darazsotie'><font size='25'>Da</font></a>", sotie, 101, 318, 40, 40, 0x324650, 0x000000, 1, true)
  2939. ui.addTextArea(6001, "<a href='event:nurazsotie'><font size='25'>Nu</font></a>", sotie, 196, 318, 40, 40, 0x324650, 0x000000, 1, true)
  2940. end
  2941. if movesotie == 230 then
  2942. ui.addTextArea(0, "Se pare ca <rose>"..sotie.." <n>nu raspunde. La revedere.", nil, 15, 124, 155, 60, 0x324650, 0x000000, 1, true)
  2943. end
  2944. if movesotie == 235 then
  2945. ui.removeTextArea(0,nil)
  2946. ui.removeTextArea(6000,nil)
  2947. ui.removeTextArea(6001,nil)
  2948. systemON(s)
  2949. movef = false
  2950. movesotie = 800
  2951. tfm.exec.newGame(m[math.random(#m)])
  2952. end
  2953. if movesotie == 241 then
  2954. tfm.exec.addPhysicObject(1,408,-182,{
  2955. type=0,
  2956. restitution=0.2,
  2957. friction=0.3,
  2958. width=10,
  2959. height=10,
  2960. groundCollision=true
  2961. })
  2962. tfm.exec.addPhysicObject(2,397,-32,{
  2963. type=0,
  2964. restitution=0.2,
  2965. friction=0.3,
  2966. width=10,
  2967. height=10,
  2968. groundCollision=true
  2969. })
  2970. tfm.exec.movePlayer(sotie,737, 168,offset,0,0,offset)
  2971. tfm.exec.movePlayer(sot,422, 250,offset,0,0,offset)
  2972. end
  2973. if movesotie == 245 then
  2974. die = true
  2975. nodie = false
  2976. tfm.exec.setUIMapName("<r>Razbunare  <rose>"..sotie.."<n> se razbuna pe <r>"..sot.."")
  2977. ui.addTextArea(0, "Bun, deci, <rose>"..sotie.."<n> ca sa moara apasa un singur buton", nil, 30, 140, 146, 44, 0x324650, 0x000000, 1, true)
  2978. end
  2979. if movesotie == 250 then
  2980. ui.addTextArea(6003, "<a href='event:butonul'><font size='24'>Buton</font></a>", sotie, 700, 240, 77, 32, 0x324650, 0x000000, 1, true)
  2981. end
  2982. if movesotie == 270 then
  2983. ui.addTextArea(0, "<rose>"..sotie.."<n> timpul se scurge !! Apasa!", nil, 30, 140, 146, 44, 0x324650, 0x000000, 1, true)
  2984. end
  2985. if movesotie == 280 then
  2986. die = false
  2987. nodie = true
  2988. ui.removeTextArea(0,nil)
  2989. ui.removeTextArea(6003,nil)
  2990. systemON(s)
  2991. movef = false
  2992. movesotie = 800
  2993. tfm.exec.newGame(m[math.random(#m)])
  2994. end
  2995. if movesotie == 305 then
  2996. ui.addTextArea(0, "Oh.. Imi pare rau de tine <ch>"..sot.."", nil, 15, 124, 155, 60, 0x324650, 0x000000, 1, true)
  2997. end
  2998. if movesotie == 310 then
  2999. ui.addTextArea(0, "Vrei sa te razbuni pe <rose>"..sotie.." <n>?", nil, 15, 124, 155, 60, 0x324650, 0x000000, 1, true)
  3000. end
  3001. if movesotie == 312 then
  3002. ui.addTextArea(6000, "<a href='event:darazsot'><font size='25'>Da</font></a>", sot, 101, 318, 40, 40, 0x324650, 0x000000, 1, true)
  3003. ui.addTextArea(6001, "<a href='event:nurazsot'><font size='25'>Nu</font></a>", sot, 196, 318, 40, 40, 0x324650, 0x000000, 1, true)
  3004. end
  3005. if movesotie == 330 then
  3006. ui.addTextArea(0, "Se pare ca <ch>"..sot.." <n>nu raspunde. La revedere.", nil, 15, 124, 155, 60, 0x324650, 0x000000, 1, true)
  3007. end
  3008. if movesotie == 335 then
  3009. ui.removeTextArea(0,nil)
  3010. ui.removeTextArea(6000,nil)
  3011. ui.removeTextArea(6001,nil)
  3012. systemON(s)
  3013. movef = false
  3014. movesotie = 800
  3015. tfm.exec.newGame(m[math.random(#m)])
  3016. end
  3017. if movesotie == 341 then
  3018. tfm.exec.addPhysicObject(1,408,-182,{
  3019. type=0,
  3020. restitution=0.2,
  3021. friction=0.3,
  3022. width=10,
  3023. height=10,
  3024. groundCollision=true
  3025. })
  3026. tfm.exec.addPhysicObject(2,397,-32,{
  3027. type=0,
  3028. restitution=0.2,
  3029. friction=0.3,
  3030. width=10,
  3031. height=10,
  3032. groundCollision=true
  3033. })
  3034. tfm.exec.movePlayer(sot,737, 168,offset,0,0,offset)
  3035. tfm.exec.movePlayer(sotie,422, 250,offset,0,0,offset)
  3036. end
  3037. if movesotie == 345 then
  3038. die = true
  3039. nodie = false
  3040. tfm.exec.setUIMapName("<r>Razbunare  <ch>"..sot.."<n> se razbuna pe <r>"..sotie.."")
  3041. ui.addTextArea(0, "Bun, deci, <ch>"..sot.."<n> ca sa moara apasa un singur buton", nil, 30, 140, 146, 44, 0x324650, 0x000000, 1, true)
  3042. end
  3043. if movesotie == 350 then
  3044. ui.addTextArea(6003, "<a href='event:butonul'><font size='24'>Buton</font></a>", sot, 700, 240, 77, 32, 0x324650, 0x000000, 1, true)
  3045. end
  3046. if movesotie == 370 then
  3047. ui.addTextArea(0, "<ch>"..sot.."<n> timpul se scurge !! Apasa!", nil, 30, 140, 146, 44, 0x324650, 0x000000, 1, true)
  3048. end
  3049. if movesotie == 380 then
  3050. die = false
  3051. nodie = true
  3052. ui.removeTextArea(0,nil)
  3053. ui.removeTextArea(6003,nil)
  3054. systemON(s)
  3055. movef = false
  3056. movesotie = 800
  3057. tfm.exec.newGame(m[math.random(#m)])
  3058. end
  3059. if movesotie == 607 then
  3060. tfm.exec.removePhysicObject(2)
  3061. end
  3062. if movesotie == 627 then
  3063. die = false
  3064. nodie = true
  3065. ui.removeTextArea(0,nil)
  3066. systemON(s)
  3067. movef = false
  3068. movesotie = 800
  3069. tfm.exec.newGame(m[math.random(#m)])
  3070. end
  3071. end
  3072. if t==1 and timp_test == true then
  3073. timp_testExpirat=timp_testExpirat-0.5
  3074. if timp_testExpirat == 175 then
  3075. ui.addTextArea(1221,"Toate comenzile sunt dezactivate pentru 3 minute",nil,5,-20,x,16,0x4F2B18,0x26140B,1,true)
  3076. end
  3077. if timp_testExpirat == 160 then
  3078. test_timp = true
  3079. ui.addTextArea(5,"Comanda <v>!test @code - <vp>Activat",nil,5,20,x,16,0x4F2B18,0x26140B,0.6,true)
  3080. end
  3081. if timp_testExpirat == 155 then
  3082. ui.addTextArea(5,"Comanda <v>!test @code - <vp>Activat",nil,400,-20,x,16,0x4F2B18,0x26140B,1,true)
  3083. end
  3084. if timp_testExpirat == 0 then
  3085. Logsystem = '<v>timp_test == <r>false <n>and points = <v>'..timp_testExpirat..' > 240\n'..Logsystem
  3086. ui.removeTextArea(5,nil)
  3087. test = false
  3088. notest = true
  3089. timp_test = false
  3090. timp_testExpirat=240
  3091. systemON(s)
  3092. end
  3093. end
  3094.  
  3095. if t==1 and timp_MesajBot == true then
  3096. timp_botpuncte=timp_botpuncte-0.5
  3097. if timp_botpuncte == 0 then
  3098. Logsystem = '<v>timp_MesajBot == <r>false <n>and points = <v>'..timp_botpuncte..' > 10\n'..Logsystem
  3099. timp_botpuncte=10
  3100. timp_MesajBot = false
  3101. ui.removeTextArea(4,nil)
  3102. ui.removeTextArea(3,nil)
  3103. ui.removeTextArea(2,nil)
  3104. ui.removeTextArea(0,sot)
  3105. ui.removeTextArea(0,sotie)
  3106. ui.removeTextArea(6006,nil)
  3107. end
  3108. end
  3109.  
  3110. if t==1 and timp_normal == true then
  3111. for index,player in pairs(isafk) do
  3112. timp_normalpuncte=timp_normalpuncte-0.5
  3113. timer(name)
  3114. if timp_normalpuncte == 0 then
  3115. Logsystem = '<v>timp_normal == <r>false <n>and points = <v>'..timp_normalpuncte..' > 61\n'..Logsystem
  3116. timp_normal = false
  3117. timp_normalpuncte=61
  3118. ui.addTextArea(2,"<VP><B>[Concurs]</b> <N>Se încarcă...",name,6,380,x,20,0x4F2B18,0x26140B,1,true)
  3119. end
  3120. end
  3121. end
  3122.  
  3123. if t==1 and timp_gandire then
  3124. timp_remove2=timp_remove2-0.5
  3125. if timp_remove2 == 0 then
  3126. Logsystem = '<v>timp_gandire == <r>false <n>and points = <v>'..timp_remove2..' > 15\n'..Logsystem
  3127. tfm.exec.disableAfkDeath(true)
  3128. tfm.exec.disableAutoTimeLeft(true)
  3129. tfm.exec.disableAutoShaman(true)
  3130. tfm.exec.disableAutoNewGame(true)
  3131. killcheese = false
  3132. win = false
  3133. die = false
  3134. next = false
  3135. minigame = false
  3136. Fly = true
  3137. respawn = true
  3138. canTeleport = {}
  3139. canExplosion = {}
  3140. medExplosion = {}
  3141. maxExplosion = {}
  3142. cheese = true
  3143. shaman = true
  3144. vampire = true
  3145. meep = true
  3146. vipCheese = true
  3147. playerVictory = true
  3148. vipEvent = true
  3149. vipIce = true
  3150. vipGround = true
  3151. vipParticle = true
  3152. speedDr = true
  3153. speedSt = true
  3154. timeM = true
  3155. trambel = true
  3156. home = true
  3157. grounds = {}
  3158. teren = {}
  3159. terenuri = {}
  3160. gheata = {}
  3161. gheatam = {}
  3162. gheatama = {}
  3163. tramb = {}
  3164. trambu = {}
  3165. trambul = {}
  3166. cioco = {}
  3167. ciocol = {}
  3168. ciocola = {}
  3169. particle = {}
  3170. particle_1 = {}
  3171. particle_2 = {}
  3172. particle_3 = {}
  3173. ui.addTextArea(403,"<p align='center'><a href='event:tp'><b>Tp: <r>OFF</a></p>",nil,5,20,65,16,0x4F2B18,0x26140B,0.6,true)
  3174. ui.addTextArea(409,"<p align='center'><a href='event:expl'><b>Exp: <r>OFF</a></p>",nil,78,20,69,16,0x4F2B18,0x26140B,0.6,true)
  3175. ui.addTextArea(410,"<p align='center'><a href='event:meniu'><b>Menu</a></p>",nil,155,20,45,16,0x4F2B18,0x26140B,0.6,true)
  3176. nokill = true
  3177. nowin = true
  3178. nodie = true
  3179. tfm.exec.newGame(m[math.random(#m)])
  3180. ui.addTextArea(7001,"<j><b>[Anulat]</b><n> Nu am primit voturi suficiente. Am oprit mini-jocul: <b>KillCheese</b>",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  3181. timp_pornire = true
  3182. timp_gandire = false
  3183. timp_remove2=10
  3184. end
  3185. end
  3186.  
  3187. if t==1 and timp_pornire == true then
  3188. timp_remove=timp_remove-0.5
  3189. if timp_remove == 0 then
  3190. Logsystem = '<v>timp_pornire == <r>false <n>and points = <v>'..timp_remove..' > 5\n'..Logsystem
  3191. voteyes=0
  3192. voteno=0
  3193. timp_pornire = false
  3194. timp_remove=5
  3195. ui.removeTextArea(7001,nil)
  3196. ui.removeTextArea(7002,nil)
  3197. end
  3198. end
  3199.  
  3200. if t==1 and timp_asteptare == true then
  3201. timp_remove1=timp_remove1-0.5
  3202. if timp_remove1 == 0 then
  3203. timp_remove1=10
  3204. ui.addTextArea(7001,"<j><b>[Anulat]</b><n> Nu am primit voturi suficiente.",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  3205. ui.removeTextArea(7002,nil)
  3206. timp_pornire = true
  3207. timp_asteptare = false
  3208. end
  3209. end
  3210.  
  3211. if t==1 and timp_avertizarejoc == true then
  3212. timp_joc=timp_joc-0.5
  3213. if timp_joc == 0 then
  3214. ui.addTextArea(7002,"<j><b>[Anunţ]</b><n> Mai vreţi să vă jucaţi <b>Killcheese</b>, şobolani?      <a href='event:responDaJoc'><u><vp>Sunt de acord</vp></u></a> <n>| <a href='event:responNuJoc'><u><r>Nu sunt de acord</u></a>",nil,6,380,x,20,0x4F2B18,0x26140B,1,true)
  3215. timp_gandire = true
  3216. timp_joc=600
  3217. timp_remove2=10
  3218. timp_avertizarejoc = false
  3219. end
  3220. end
  3221. t=0.5
  3222. end
  3223. ui.removeTextArea(2,nil)
  3224. print("<VP>PORNIT")
  3225. afk('start')
Add Comment
Please, Sign In to add comment