Advertisement
Guest User

Untitled

a guest
May 6th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.05 KB | None | 0 0
  1. ---True e false---
  2. tfm.exec.disableAllShamanSkills(false)
  3. tfm.exec.disableAutoNewGame(true);
  4. ---end true e false--
  5.  
  6. ---Tables---
  7. mapas={[[0]],[[1]],[[@4827484]],[[@4235568]],[[2]],[[4176839]],[[@4827484]],[[4176839]],[[4176839]],[[3]],[[4]],[[5]],[[6]],[[7]],[[8]],[[9]],[[10]],[[11]],[[12]],[[13]],[[14]],[[15]],[[16]],[[17]],[[18]],[[19]],[[20]],[[21]],[[22]],[[23]],[[24]],[[25]],[[26]],[[27]],[[28]],[[29]],[[30]],[[31]],[[32]],[[33]],[[34]],[[35]],[[36]],[[37]],[[38]],[[39]],[[40]],[[41]],[[42]],[[43]],[[44]],[[45]],[[46]],[[47]],[[48]],[[49]],[[50]],[[51]],[[52]],[[53]],[[54]],[[55]],[[56]],[[57]],[[58]],[[59]],[[60]],[[61]],[[62]],[[63]],[[64]],[[65]],[[@4827484]],[[66]],[[67]],[[68]],[[69]],[[70]],[[71]],[[72]],[[73]],[[74]],[[75]],[[76]],[[77]],[[78]],[[79]],[[80]],[[81]],[[82]],[[83]],[[@4827484]],[[84]],[[85]],[[86]],[[87]],[[88]],[[89]],[[90]],[[91]],[[92]],[[93]],[[94]],[[95]],[[96]],[[97]],[[98]],[[99]],[[100]],[[101]],[[102]],[[103]],[[104]],[[105]],[[106]],[[107]],[[108]],[[109]],[[110]],[[111]],[[112]],[[113]],[[114]],[[115]],[[116]],[[117]],[[118]],[[119]],[[120]],[[121]],[[122]],[[123]],[[124]],[[125]],[[126]],[[127]],[[128]],[[129]],[[130]],[[131]],[[132]],[[133]],[[134]],[[136]],[[137]],[[138]],[[139]],[[140]],[[141]],[[@4827484]],[[4035276]],[[142]],[[143]],[[200]],[[201]],[[202]],[[203]],[[204]],[[205]],[[206]],[[4035276]],[[207]],[[208]],[[209]],[[4035276]],[[210]],[[3078]],[[8679]],[[82090]],[[127419]],[[129835]],[[142101]],[[4035276]],[[142738]],[[146364]],[[146615]],[[4035276]],[[147437]],[[149853]],[[153201]],[[155415]],[[159076]],[[159204]],[[162804]],[[164931]],[[165808]],[[169033]],[[169909]],[[178486]],[[179656]],[[180035]],[[@4827484]],[[180617]],[[181261]],[[182233]],[[185646]],[[185955]],[[185985]],[[186484]],[[186695]],[[191070]],[[4035276]],[[197413]],[[197442]],[[197503]],[[197742]],[[199957]],[[201502]],[[201606]],[[210217]],[[211248]],[[212576]],[[212903]],[[213470]],[[214465]],[[214788]],[[215601]],[[219889]],[[220737]],[[221767]],[[222730]],[[228517]],[[233294]],[[233333]],[[235464]],[[237251]],[[238378]],[[240994]],[[244642]],[[245152]],[[247329]],[[247904]],[[248906]],[[250491]],[[250619]],[[261462]],[[266889]],[[269131]],[[269534]],[[270645]],[[274963]],[[276098]],[[280637]],[[281784]],[[284702]],[[292057]],[[294500]],[[298123]],[[@4827484]],[[302456]],[[303391]],[[306755]],[[313182]],[[318970]],[[321268]],[[327447]],[[329627]],[[335361]],[[337813]],[[352622]],[[353079]],[[363635]],[[364490]],[[366205]],[[369138]],[[371072]],[[371332]],[[387110]],[[402190]],[[405795]],[[417816]],[[421885]],[[422655]],[[423989]],[[424864]],[[429339]],[[433483]],[[446627]],[[446819]],[[455094]],[[466871]],[[470069]],[[482003]],[[500133]],[[@4827484]],[[505196]],[[511007]],[[520258]],[[523865]],[[547602]],[[552213]],[[@4827484]],[[557334]],[[581408]],[[611234]],[[629731]],[[639804]],[[659216]],[[667934]],[[724780]],[[763961]],[[780286]],[[847540]],[[1053516]],[[1107804]],[[1190826]],[[1193625]],[[1222017]],[[1222509]],[[1252255]],[[1368022]],[[1429444]],[[1481024]],[[1502799]],[[1550076]],[[1556972]],[[1563226]],[[1662570]],[[1683790]],[[1698845]],[[1699288]],[[1855968]],[[1864676]],[[1931963]],[[1943359]],[[1958341]],[[1970001]],[[2006183]],[[2019746]],[[2188104]],[[2208335]],[[2223354]],[[2227644]],[[2261303]],[[2311047]],[[2355739]],[[2378818]],[[2419958]],[[2439335]],[[2444362]],[[2458243]],[[@4827484]],[[2558294]],[[2589845]],[[2598599]],[[2616341]],[[2675699]],[[2708773]],[[2746128]],[[2805602]],[[4035276]],[[2808729]],[[2813218]],[[2827176]],[[2842279]],[[2847966]],[[2870002]],[[2929597]],[[2932980]],[[2959762]],[[2959999]],[[2960917]],[[2969368]],[[2972400]],[[2973921]],[[2978151]],[[3008536]],[[3014728]],[[3051957]],[[3117749]],[[3124326]],[[3124696]],[[@4827484]],[[3224383]],[[3237735]],[[3270188]],[[@4827484]],[[@4827484]],[[3279863]],[[3297112]],[[3314017]],[[3373223]],[[3407209]],[[3425103]],[[3432133]],[[3452208]],[[3464359]],[[3469357]],[[3497411]],[[3512325]],[[3526384]],[[3560912]],[[3586018]],[[3603116]],[[3605217]],[[3671328]],[[3710926]],[[3714605]],[[3723142]],[[3779546]],[[3865524]],[[3866374]],[[4116927]],[[4140588]],[[4148686]],[[@1471124]],[[@1694602]],[[@1644638]],[[@1542736]],[[@1495344]],[[129420]],[[154859]],[[202952]],[[224120]],[[230970]],[[235931]],[[238162]],[[247992]],[[256797]],[[257777]],[[257782]],[[261886]],[[263215]],[[263800]],[[270238]],[[277994]],[[280679]],[[@4827484]],[[281473]],[[287044]],[[290549]],[[299897]],[[@4827484]],[[306561]],[[315632]],[[317110]],[[330773]],[[330797]],[[334645]],[[350441]],[[374125]],[[448507]],[[450140]],[[453765]],[[457558]],[[476658]],[[484355]],[[485653]],[[495829]],[[506218]],[[525684]],[[531213]],[[543398]],[[558253]],[[578714]],[[585040]],[[604406]],[[617254]],[[638159]],[[706326]],[[744348]],[[750942]],[[763156]],[[779260]],[[786497]],[[@4827484]],[[@4827484]],[[848208]],[[878196]],[[899457]],[[927182]],[[979494]],[[1135318]],[[1154704]],[[1200519]],[[1211568]],[[1214279]],[[1259600]],[[1262441]],[[1262576]],[[1263900]],[[1268550]],[[1284562]],[[1300245]],[[1334402]],[[1349031]],[[1352113]],[[1412929]],[[1452622]],[[1478116]],[[1485916]],[[1528279]],[[1573316]],[[1695882]],[[1697837]],[[1708963]],[[1712533]],[[1716752]],[[1730988]],[[1738125]],[[1738989]],[[1746290]],[[1749688]],[[1749932]],[[1756788]],[[1762434]],[[1762519]],[[1766747]],[[1777814]],[[1787404]],[[1796467]],[[1799015]],[[1800626]],[[1820179]],[[1830174]],[[1836823]],[[1844159]],[[1846067]],[[1847621]],[[@4827484]],[[1849171]],[[1860790]],[[1863924]],[[1872587]],[[1889408]],[[1889794]],[[1913370]],[[1942013]],[[1956373]],[[1976323]],[[1980188]],[[1984663]],[[1998819]],[[2012914]],[[2018904]],[[2019344]],[[2052945]],[[2115470]],[[2119048]],[[2154135]],[[2203483]],[[2220773]],[[2239451]],[[2270547]],[[2328121]],[[2360279]],[[2367228]],[[2376836]],[[2407012]],[[2427381]],[[2429189]],[[2446305]],[[2446697]],[[2455096]],[[2462352]],[[2470112]],[[2476115]],[[2479910]],[[2490148]],[[2539757]],[[2546729]],[[2552396]],[[2563171]],[[2621331]],[[2623223]],[[2636264]],[[2637780]],[[2638619]],[[2677968]],[[2688651]],[[2760552]],[[2763000]],[[2780261]],[[2784715]],[[2794881]],[[2796541]],[[2798026]],[[2802862]],[[2852625]],[[2866381]],[[2880542]],[[2932572]],[[2949304]],[[2953001]],[[2957089]],[[2961043]],[[2971843]],[[2975039]],[[2996913]],[[3007211]],[[3014000]],[[3018693]],[[3019964]],[[3023538]],[[3026528]],[[3052500]],[[3067412]],[[3071317]],[[3100888]],[[3107962]],[[3110059]],[[3121566]],[[3122999]],[[3128066]],[[3130657]],[[3130919]],[[3132651]],[[@4827484]],[[3167482]],[[3171809]],[[3191094]],[[3191391]],[[3213325]],[[3237957]],[[3283533]],[[3295987]],[[3295997]],[[3296008]],[[3305726]],[[3312511]],[[3327927]],[[3335221]],[[3344068]],[[3358845]],[[3390013]],[[3396857]],[[3421888]],[[3436062]],[[3451399]],[[3471523]],[[3473320]],[[3474595]],[[3477001]],[[3561784]],[[3572354]],[[3574034]],[[@4827484]],[[3579914]],[[3631500]],[[3651353]],[[3676167]],[[3678544]],[[3692406]],[[3815717]],[[3910771]],[[3924361]],[[3932627]],[[3938620]],[[3969167]],[[4000418]],[[4081617]],[[4094804]],[[4094915]],[[49101]],[[60303]],[[113235]],[[119308]],[[121043]],[[121494]],[[123777]],[[124969]],[[126151]],[[127440]],[[133082]],[[139581]],[[141827]],[[147831]],[[149476]],[[155262]],[[155591]],[[158569]],[[160303]],[[164404]],[[164859]],[[166106]],[[167093]],[[169959]],[[171290]],[[179384]],[[183423]],[[183427]],[[184294]],[[192144]],[[192155]],[[196950]],[[198823]],[[204059]],[[206891]],[[208692]],[[211171]],[[211533]],[[213396]],[[215965]],[[217333]],[[219350]],[[@4827484]],[[220999]],[[226423]],[[@4827484]],[[238926]],[[239907]],[[242204]],[[242381]],[[246776]],[[248490]],[[248644]],[[250042]],[[251430]],[[251448]],[[254893]],[[272272]],[[275965]],[[285235]],[[290801]],[[293308]],[[301206]],[[306730]],[[313415]],[[314416]],[[315612]],[[317820]],[[323597]],[[325027]],[[327706]],[[333365]],[[334288]],[[339035]],[[340745]],[[346316]],[[356553]],[[356643]],[[356892]],[[370937]],[[372968]],[[389671]],[[407025]],[[411996]],[[413183]],[[418415]],[[425247]],[[434768]],[[437196]],[[478655]],[[486012]],[[491590]],[[499940]],[[515187]],[[581701]],[[599187]],[[605286]],[[660510]],[[672430]],[[693009]],[[697877]],[[702824]],[[748650]],[[778287]],[[868686]],[[921661]],[[923485]],[[928583]],[[941707]],[[944540]],[[993954]],[[1090395]],[[1245573]],[[1249188]],[[1255674]],[[1297039]],[[1391896]],[[1412254]],[[1412359]],[[1427861]],[[1432572]],[[1505167]],[[1542565]],[[1634606]],[[@4827484]],[[1698766]],[[1709809]],[[1756337]],[[1779549]],[[1783602]],[[1799297]],[[1854137]],[[1928572]],[[1933292]],[[1957536]],[[2002821]],[[2036283]],[[2187460]],[[2261863]],[[2265648]],[[2270500]],[[2305185]],[[2305294]],[[2373533]],[[2377177]],[[2394359]],[[2434490]],[[2435302]],[[2456807]],[[2465212]],[[2468712]],[[2493085]],[[2493651]],[[2515079]],[[2618581]],[[2655603]],[[2686903]],[[2766068]],[[2803902]],[[2865445]],[[2868361]],[[2884007]],[[2885923]],[[2918771]],[[2929292]],[[@4827484]],[[2973170]],[[2984874]],[[2999899]],[[3038859]],[[3078733]],[[3096613]],[[3118578]],[[3132494]],[[3150249]],[[3157116]],[[3176749]],[[3197968]],[[3206130]],[[3211751]],[[3229524]],[[3265107]],[[3265446]],[[3270078]],[[3286276]],[[3296011]],[[3333614]],[[3361309]],[[3382202]],[[3456515]],[[3464484]],[[3476685]],[[3478259]],[[3478807]],[[3499928]],[[3529629]],[[3632629]],[[4035276]],[[3641144]],[[3657454]],[[3659540]],[[3661853]],[[3674055]],[[3727797]],[[3729243]],[[3753845]],[[3765910]],[[3774646]],[[3954735]],[[@4827484]]};
  8. lights={"25" ,"25" ,"25" , "26" , "27", "28","25" ,"25" }
  9. admins={"Multipepyta"}
  10.  
  11. data={};
  12. sc={
  13. ["rps"]=0;
  14. ["urp"]="";
  15. };
  16. pAtOnce=0
  17. ---end tables---
  18. for i in pairs(tfm.get.room.playerList) do
  19. nD={
  20. ["prp"]="";
  21. ["mrp"]="";
  22. ["rps"]="";
  23. ["nrp"]=0;
  24. ["ban"]=false;
  25. ["ale"]="";
  26. ["vrp"]="";
  27. ["wrp"]=false;
  28. };
  29. data[i] = nD;
  30. end
  31. -- Textarea
  32. for i,v in pairs(admins) do
  33. ui.addTextArea(0,"<V><a href='event:m'>Játék Vezérlő</a>",v,15,25,72,20,1,1,0.8,true)
  34. end
  35. ---rotating mapas---
  36. function nextRound()
  37. tfm.exec.newGame(mapas[math.random(#mapas)]);
  38. end
  39.  
  40. function eventNewGame()
  41. vivo=0
  42. tfm.exec.setUIMapName("Fishing 2012");
  43. for name,player in pairs(tfm.get.room.playerList) do
  44. vivo=vivo+1
  45. end
  46. end
  47.  
  48. function eventPlayerDied(name)
  49. vivo=vivo-1
  50. end
  51.  
  52. function eventPlayerWon(name)
  53. vivo=vivo-1
  54. end
  55. ----Loop---
  56. function eventLoop(ct, tr)
  57. if vivo == 0 or tr < 1000 then
  58. nextRound();
  59. pAtOnce=0
  60. tfm.exec.snow((0),(15))
  61. tfm.exec.disableAutoShaman(false)
  62. end
  63.  
  64. for i=1,pAtOnce do
  65. tfm.exec.displayParticle(lights[math.random(#lights)],math.random(0,4800),math.random(0,400),0,0,0,0,nil)
  66. end
  67. for i in pairs(tfm.get.room.playerList) do
  68. if data[i].ban == true then
  69. tfm.exec.killPlayer(i)
  70. end
  71. if data[i].wrp == true then
  72. watch(data[i].vrp,i)
  73. end
  74. end
  75. --Cor/color--
  76. for All in pairs(tfm.get.room.playerList) do
  77. for _,vAdmins in pairs(admins) do
  78. if(All == vAdmins) then --Se for admin...
  79. tfm.exec.setNameColor(All, 0xEB1D51) --Troque FFFFFF pela cor que deseja.
  80. end
  81. end
  82. end
  83. end
  84. nextRound();
  85. --end loop and rotating maps--
  86. function isAdm(p)
  87. for i,v in pairs(admins) do
  88. if v == p then
  89. return true
  90. end
  91. end
  92. end
  93.  
  94. --comandos--
  95. function eventChatCommand(player,c)
  96. if c:sub(0,3) == [[rep]] then
  97. for i,v in pairs(tfm.get.room.playerList) do
  98. if i == c:sub(5) then
  99. data[player].prp = ""..c:sub(5).."";
  100. ui.addPopup(0,2,"Miért akarod reportolni "..c:sub(5).."-t?",player,300,175,217,true)
  101. end
  102. end
  103. end
  104.  
  105. if c == [[woff]] and isAdm(player) == true then
  106. data[player].wrp = false;
  107. end
  108.  
  109. if c:sub(0,3) == [[par]] and (c:sub(5) <= [[500]]) and isAdm(player) == true then
  110. pAtOnce=c:sub(5)
  111. print("<v>[Tribe] <n>Vigyázat vihar, <j>".. player .."<n> szelet teremtett Ò.Ó")
  112. end
  113.  
  114. if c:sub(0,5) == [[fish]] and isAdm(player) == true then
  115. pAtOnce=100
  116. tfm.exec.disableAutoShaman(true)
  117. tfm.exec.newGame("@4827484")
  118. tfm.exec.setUIMapName("Fishing")
  119. tfm.exec.giveMeep(player)
  120. print("<v>[Tribe] <n>Üdvözöllek <j>".. player .."<n>, akarsz egy kicsit horgászni? Ez nem kérdés volt, hanem kijelentés:D")
  121. end
  122.  
  123. if c:sub(0,4) == [[snow]] and isAdm(player) == true then
  124. tfm.exec.snow((120),(15))
  125. print("<v>[Tribe] <n>Áhh, hidegvan, <j>".. player .."<n> aktiválta a havat!")
  126. end
  127.  
  128. if (c == [[mort]]) then
  129. tfm.exec.killPlayer(player)
  130. print("<v>[Tribe] <j>".. player .." <n>meghalt, mert használta a <rose>"..c.." kommandot.")
  131. end
  132.  
  133. if c:sub(0,4) == [[stop]] and isAdm(player) == true then
  134. system.exit()
  135. end
  136.  
  137. if c:sub(0,4) == [[auto]] and isAdm(player) == true then
  138. tfm.exec.setGameTime(120, true)
  139. end
  140.  
  141. if c:sub(0,4) == [[next]] and isAdm(player) == true then
  142. tfm.exec.newGame(mapas[math.random(#mapas)]);
  143. tfm.exec.snow((0),(15))
  144. pAtOnce=0
  145. print("<v>[Tribe] <j>".. player .." <n>nem akarta teljesíteni a pályát!")
  146. end
  147.  
  148. if c:sub(0,4) == [[help]] then
  149. ui.addPopup(0, 0, "Üdvözöllek <font color='#009D9D'>"..player.."</font> <n> itt megtalálod azokat a kommandokat, amelyekre szükségedlesz<br><br><font color='#BABD2F'>!mort</font> - Halál o.O<br><font color='#BABD2F'>!rep NÉV</font> - reportolod egy adminnak.<br><br>Te egy <font color='#EB1D51'>administrator</font>vagy? Ha igan, akkor írd be, hogy <font color='#BABD2F'>!helpadm</font>.", p, 250, 110, 250)
  150. end
  151.  
  152. if c:sub(0,7) == [[helpadm]] and isAdm(player) == true then
  153. ui.addPopup(0, 0, "Üdvözöllek <font color='#EB1D51'>"..player.."</font>, itt találod a kommandokat, amelyeket egy admin használhat:<br><br><font color='#BABD2F'>!fish</font> - Elindítod a horgász mapot.<br><font color='#BABD2F'>!snow</font> - Hóóó ^^<br><font color='#BABD2F'>!par @SZÁM</font> - Elindítassz egy általad kiválasztott pályát.<br><font color='#BABD2F'>!next</font> - Következő pálya.<br><font color='#BABD2F'>!life</font> - Újraéledsz.<br><font color='#BABD2F'>!np</font> - Kiválasztassz egy pályát.<br><font color='#BABD2F'>!win</font> - Megnyeri egy játékos a kört<br><font color='#BABD2F'>!time</font> - Megváltoztatod az hátralévő időt.<br><font color='#BABD2F'>!woff</font> - Kikapcsolja a nézést(beta)<br><font color='#BABD2F'>!kill</font> - Megöl egy kiválasztott játékost.<br><font color='#BABD2F'>!stop</font> - Leállítod a scriptet.", p, 250, 110, 250)
  154. end
  155.  
  156. if c:sub(0,4) == [[life]] and isAdm(player) == true then
  157. tfm.exec.setGameTime(120, true)
  158. tfm.exec.respawnPlayer(player)
  159. vivo=vivo+1
  160. end
  161.  
  162. if c:sub(0,4) == [[time]] and isAdm(player) == true then
  163. ui.addPopup(9,2,"Time remaining:", player,300,100,200)
  164. end
  165.  
  166. if c:sub(0,3) == [[np]] and isAdm(player) == true then
  167. ui.addPopup(8,2,"Next map:", player,300,100,200)
  168. end
  169. if c:sub(0,3) == [[win]] and isAdm(player) == true then
  170. ui.addPopup(7,2,"Win player?:", player,300,100,200)
  171. end
  172. if c:sub(0,4) == [[kill]] and isAdm(player) == true then
  173. ui.addPopup(6,2,"Kill player:", player,300,100,200)
  174. end
  175. end
  176.  
  177. function eventPopupAnswer(id, player, answer)
  178. if id == 9 then
  179. tfm.exec.setGameTime(answer)
  180. end
  181.  
  182. if id == 8 then
  183. tfm.exec.newGame(answer)
  184. end
  185. if id == 7 then
  186. tfm.exec.giveCheese(answer)
  187. tfm.exec.playerVictory(answer)
  188. end
  189. if id == 6 then
  190. tfm.exec.killPlayer(answer)
  191. end
  192.  
  193. if id == 0 then
  194. if data[data[player].prp].nrp <= 20 then
  195. data[player].mrp = ""..answer.."";
  196. ui.addPopup(0,0,"<p align='center'>Kérésedet figyelembe vesszük.</p>",player,300,175,200,true)
  197. repPlayer(data[player].prp,answer,player)
  198. sc.urp = "<R>"..player.."<N2> reported <VP>"..data[player].prp.."";
  199. else
  200. ui.addPopup(0,0,"<p align='center'>A játékost már reportolták.</p>",player,300,175,200,true)
  201. end
  202. end
  203. if id == 1 then
  204. for i,v in pairs(tfm.get.room.playerList) do
  205. if i == answer then
  206. data[player].vrp = ""..answer.."";
  207. ui.updateTextArea(1,"<p align='center'><VP><TI><b>J Á T É K V E Z É R L Ő</b></p><br /><V><a href='event:close'>Bezárás</a><br /><font size='12'><J>"..answer.."<BL> "..data[answer].nrp.." - [<R><a href='event:brp'>Tiltsd ki</a></a><BL>] - [<R><a href='event:wrp'>Figyeld</a></a><BL>] - [<R><a href='event:arp'>Figyelmeztetsd</a></a><BL>]"..data[answer].rps.."",player)
  208. end
  209. end
  210. end
  211. if id == 2 then
  212. for i,v in pairs(tfm.get.room.playerList) do
  213. if i == answer then
  214. data[answer].ban = true;
  215. ui.addPopup(0,0,"<p align='center'>"..answer.." ki lett tiltva!",player,300,175,200,true)
  216. tfm.exec.killPlayer(answer)
  217. end
  218. end
  219. end
  220. if id == 3 then
  221. for i,v in pairs(tfm.get.room.playerList) do
  222. if i == answer then
  223. data[answer].ban = false;
  224. ui.addPopup(0,0,"<p align='center'>"..answer.." tiltása fel lett oldva!",player,300,175,200,true)
  225. end
  226. end
  227. end
  228. if id == 4 then
  229. for i,v in pairs(tfm.get.room.playerList) do
  230. if i == answer then
  231. data[player].ale = ""..answer.."";
  232. ui.addPopup(5,2,"<p align='center'>Mit üzensz?",player,300,175,200,true)
  233. end
  234. end
  235. end
  236. if id == 5 then
  237. ui.addPopup(0,0,"<p align='center'><font color='#ED67EA'>[~"..player.."]</font> "..answer.."",data[player].ale,300,175,200,true)
  238. end
  239. end
  240. --end commandos--
  241. -- Atualizar reports de um jogador
  242. function repPlayer(player,msg,r)
  243. data[player].rps = data[player].rps.."<br /><N2>[<V>"..player.."<N2>]<BL> "..r.." : <N>"..msg.."";
  244. data[player].nrp = data[player].nrp+1;
  245. sc.rps=sc.rps+1;
  246. end
  247. -- Links de uma textarea
  248. function eventTextAreaCallback(id,player,link)
  249. if link == [[m]] then
  250. ui.addTextArea(1,"<p align='center'><VP><TI><b>J Á T É K V E Z É R L Ő</b><br /></p><J>• Statisztika a reprtolásokról:<br /><font size='12'><V>Reportolt játékosok száma: <N2>"..sc.rps.."<br /><V>Utolsó reportolás: <N2>"..sc.urp.."<br /><br /><TI><J>• Eszközök:<br /><V><font size='12'><a href='event:r'>Nézzük meg a reportolásokat.</a><br /><a href='event:ban'>Tilts ki egy játékost.</a><br /><a href='event:unb'>Old fel a kitiltást egy játékosról.</a><br /><a href='event:ale'>Figyelmeztess egy játékost.</a><br /><a href='event:close'>Bezárás.</a>",player,20,60,700,260,1,1,0.8,true)
  251. ui.addTextArea(0,"<V><a href='event:m'>Játék Vezérlő</a>",v,15,20,72,20,1,1,0.8,true)
  252. end
  253. if link == [[close]] then
  254. ui.removeTextArea(id,player)
  255. end
  256. if link == [[r]] then
  257. ui.addPopup(1,2,"Kit?",player,300,175,200,true)
  258. end
  259. if link == [[ban]] then
  260. ui.addPopup(2,2,"Kit?",player,300,175,200,true)
  261. end
  262. if link == [[unb]] then
  263. ui.addPopup(3,2,"Kit?",player,300,175,200,true)
  264. end
  265. if link == [[ale]] then
  266. ui.addPopup(4,2,"Kit?",player,300,175,200,true)
  267. end
  268. if link == [[brp]] then
  269. data[data[player].vrp].ban = true;
  270. ui.addPopup(0,0,"<p align='center'> "..data[player].vrp.." ki lett tiltva",player,300,175,200,true)
  271. end
  272. if link == [[wrp]] then
  273. data[player].wrp = true;
  274. end
  275. if link == [[arp]] then
  276. data[player].ale = ""..data[player].vrp.."";
  277. ui.addPopup(5,2,"<p align='center'>Mit üzensz neki?",player,300,175,200,true)
  278. end
  279. end
  280. -- Novo jogador entra na sala
  281. function eventNewPlayer(player)
  282. if not data[player] then
  283. nD={
  284. ["prp"]="";
  285. ["mrp"]="";
  286. ["rps"]="";
  287. ["nrp"]=0;
  288. ["ban"]=false;
  289. ["ale"]="";
  290. ["vrp"]="";
  291. ["wrp"]=false;
  292. };
  293. data[player] = nD;
  294. end
  295. for i,v in pairs(admins) do
  296. ui.addTextArea(0,"<V><a href='event:m'>Modo Pwet</a>",v,15,25,70,20,1,1,0.8,true)
  297. end
  298. end
  299. -- Watch
  300. function watch(player,i)
  301. ui.addTextArea(3,"",i,tfm.get.room.playerList[player].x-23,-300,70,1000,1,1,0.7)
  302. end
  303. --disable comandos--
  304. system.disableChatCommandDisplay("mort",true)
  305. system.disableChatCommandDisplay("Kill",true)
  306. system.disableChatCommandDisplay("next",true)
  307. system.disableChatCommandDisplay("snow",true)
  308. system.disableChatCommandDisplay("par",true)
  309. system.disableChatCommandDisplay("stop",true)
  310. system.disableChatCommandDisplay("fish",true)
  311. system.disableChatCommandDisplay("help",true)
  312. system.disableChatCommandDisplay("helpadm",true)
  313. system.disableChatCommandDisplay("life",true)
  314. system.disableChatCommandDisplay("win",true)
  315. system.disableChatCommandDisplay("np",true)
  316. system.disableChatCommandDisplay("time",true)
  317. system.disableChatCommandDisplay("rep",true)
  318. system.disableChatCommandDisplay("woff",true)
  319.  
  320. print("\n<n>Sziasztok kisegerek!")
  321. ui.addPopup(0, 0, "<font size='12'>Üdvözöllek a <font color='#A4CF9E'>Horgász eventen</font>, készítette: <font color='#EB1D51'>Thogabriel</font> segített neki: <font color='#009D9D'>Brenower</font> és <font color='#009D9D'>Byenamo</font>.<br><br>Íed be, hogy <font color='#babd2f'>!help</font> Több információért.", NIL, 300, 175, 250)
  322.  
  323. --end script--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement