Advertisement
Guest User

Oto to.

a guest
Nov 25th, 2015
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.35 KB | None | 0 0
  1. for nick in pairs(tfm.get.room.playerList) do
  2. tfm.exec.bindKeyboard(nick,38,true)
  3. end
  4.  
  5. for nick in pairs(tfm.get.room.playerList) do
  6. tfm.exec.bindKeyboard(nick,112,true)
  7. end
  8.  
  9. for nick in pairs(tfm.get.room.playerList) do
  10. tfm.exec.bindKeyboard(nick,113,true)
  11. end
  12.  
  13. for nick in pairs(tfm.get.room.playerList) do
  14. tfm.exec.bindKeyboard(nick,90,true)
  15. end
  16.  
  17. for nick in pairs(tfm.get.room.playerList) do
  18. tfm.exec.bindKeyboard(nick,32,true)
  19. end
  20.  
  21. for nick in pairs(tfm.get.room.playerList) do
  22. tfm.exec.bindKeyboard(nick,73,true)
  23. end
  24.  
  25. for nick in pairs(tfm.get.room.playerList) do
  26. tfm.exec.bindKeyboard(nick,75,true)
  27. end
  28.  
  29. for nick in pairs(tfm.get.room.playerList) do
  30. tfm.exec.bindKeyboard(nick,74,true)
  31. end
  32.  
  33. for nick in pairs(tfm.get.room.playerList) do
  34. tfm.exec.bindKeyboard(nick,76,true)
  35. end
  36.  
  37. for nick in pairs(tfm.get.room.playerList) do
  38. tfm.exec.bindKeyboard(nick,77,true)
  39. end
  40.  
  41. for nick in pairs(tfm.get.room.playerList) do
  42. tfm.exec.bindKeyboard(nick,78,true)
  43. end
  44.  
  45.  
  46.  
  47. Admin={Bartekgajes=1,Googoopl=1,Mysiaptysia=1,Chanelltfm=1}
  48. UAdmin={Tengosciu=1,Olinicia=1,Olikotek=1,Yaket=1,Tengosciu=1,Mangosweet=1}
  49. BAdmin={Mandarynkapx=1,Erykxx=1,Lumulus=1}
  50. CAdmin={Rastapl=1}
  51. DAdmin={Karolciakic=1,Wizualny=1}
  52. Zwykli={}
  53.  
  54. function eventLoop()
  55. for nick in pairs(Admin) do
  56. tfm.exec.setNameColor(nick,0xffd700)
  57. end
  58. for nick in pairs(UAdmin) do
  59. tfm.exec.setNameColor(nick,0x00DB0D)
  60. end
  61. for nick in pairs(BAdmin) do
  62. tfm.exec.setNameColor(nick,0xEE873D)
  63. end
  64. for nick in pairs(CAdmin) do
  65. tfm.exec.setNameColor(nick,0x3FFE01)
  66. end
  67. for nick in pairs(DAdmin) do
  68. tfm.exec.setNameColor(nick,0xff3366)
  69. end
  70. end
  71. function eventKeyboard(nick,klaw,wd,x,y)
  72. if klaw==32 and nick=="Bartekgajes" then
  73. tfm.exec.movePlayer(nick,0,0,true,0,-50,true)
  74. tfm.exec.displayParticle(29,x+5,y+15,0,0,0,0,nil)
  75. tfm.exec.displayParticle(29,x-15,y+15,0,0,0,0,nil)
  76. tfm.exec.displayParticle(29,x-5,y+18,0,0,0,0,nil)
  77. tfm.exec.displayParticle(29,x+10,y+10,0,0,0,0,nil)
  78. tfm.exec.displayParticle(29,x-20,y+10,0,0,0,0,nil)
  79. tfm.exec.displayParticle(29,x-10,y+10,0,0,0,0,nil)
  80. tfm.exec.displayParticle(29,x,y+10,0,0,0,0,nil)
  81. elseif klaw==32 and nick=="Adekab" then
  82. tfm.exec.movePlayer(nick,0,0,true,0,-50,true)
  83. elseif klaw==32 and nick=="Mysiaptysia" then
  84. tfm.exec.movePlayer(nick,0,0,true,0,-50,true)
  85. tfm.exec.displayParticle(29,x+5,y+15,0,0,0,0,nil)
  86. tfm.exec.displayParticle(29,x-15,y+15,0,0,0,0,nil)
  87. tfm.exec.displayParticle(29,x-5,y+18,0,0,0,0,nil)
  88. tfm.exec.displayParticle(29,x+10,y+10,0,0,0,0,nil)
  89. tfm.exec.displayParticle(29,x-20,y+10,0,0,0,0,nil)
  90. tfm.exec.displayParticle(29,x-10,y+10,0,0,0,0,nil)
  91. tfm.exec.displayParticle(29,x,y+10,0,0,0,0,nil)
  92. elseif klaw==32 and nick=="Olinicia" then
  93. tfm.exec.movePlayer(nick,0,0,true,0,-50,true)
  94. tfm.exec.displayParticle(29,x+5,y+15,0,0,0,0,nil)
  95. tfm.exec.displayParticle(29,x-15,y+15,0,0,0,0,nil)
  96. tfm.exec.displayParticle(29,x-5,y+18,0,0,0,0,nil)
  97. tfm.exec.displayParticle(29,x+10,y+10,0,0,0,0,nil)
  98. tfm.exec.displayParticle(29,x-20,y+10,0,0,0,0,nil)
  99. tfm.exec.displayParticle(29,x-10,y+10,0,0,0,0,nil)
  100. tfm.exec.displayParticle(29,x,y+10,0,0,0,0,nil)
  101. elseif klaw==32 and nick=="Olikotek" then
  102. tfm.exec.movePlayer(nick,0,0,true,0,-50,true)
  103. tfm.exec.displayParticle(29,x+5,y+15,0,0,0,0,nil)
  104. tfm.exec.displayParticle(29,x-15,y+15,0,0,0,0,nil)
  105. tfm.exec.displayParticle(29,x-5,y+18,0,0,0,0,nil)
  106. tfm.exec.displayParticle(29,x+10,y+10,0,0,0,0,nil)
  107. tfm.exec.displayParticle(29,x-20,y+10,0,0,0,0,nil)
  108. tfm.exec.displayParticle(29,x-10,y+10,0,0,0,0,nil)
  109. tfm.exec.displayParticle(29,x,y+10,0,0,0,0,nil)
  110. elseif klaw==32 and nick=="Mandarynkapx" then
  111. tfm.exec.movePlayer(nick,0,0,true,0,-50,true)
  112. elseif klaw==32 and nick=="Wizualny" then
  113. tfm.exec.movePlayer(nick,0,0,true,0,-50,true)
  114. elseif klaw==32 and nick=="Yaket" then
  115. tfm.exec.movePlayer(nick,0,0,true,0,-50,true)
  116. tfm.exec.displayParticle(29,x+5,y+15,0,0,0,0,nil)
  117. tfm.exec.displayParticle(29,x-15,y+15,0,0,0,0,nil)
  118. tfm.exec.displayParticle(29,x-5,y+18,0,0,0,0,nil)
  119. tfm.exec.displayParticle(29,x+10,y+10,0,0,0,0,nil)
  120. tfm.exec.displayParticle(29,x-20,y+10,0,0,0,0,nil)
  121. tfm.exec.displayParticle(29,x-10,y+10,0,0,0,0,nil)
  122. tfm.exec.displayParticle(29,x,y+10,0,0,0,0,nil)
  123. elseif klaw==32 and nick=="Erykxx" then
  124. tfm.exec.movePlayer(nick,0,0,true,0,-50,true)
  125. elseif klaw==32 and nick=="Googoopl" then
  126. tfm.exec.movePlayer(nick,0,0,true,0,-50,true)
  127. tfm.exec.displayParticle(29,x+5,y+15,0,0,0,0,nil)
  128. tfm.exec.displayParticle(29,x-15,y+15,0,0,0,0,nil)
  129. tfm.exec.displayParticle(29,x-5,y+18,0,0,0,0,nil)
  130. tfm.exec.displayParticle(29,x+10,y+10,0,0,0,0,nil)
  131. tfm.exec.displayParticle(29,x-20,y+10,0,0,0,0,nil)
  132. tfm.exec.displayParticle(29,x-10,y+10,0,0,0,0,nil)
  133. tfm.exec.displayParticle(29,x,y+10,0,0,0,0,nil)
  134. elseif klaw==32 and nick=="Mangosweet" then
  135. tfm.exec.movePlayer(nick,0,0,true,0,-50,true)
  136. tfm.exec.displayParticle(29,x+5,y+15,0,0,0,0,nil)
  137. tfm.exec.displayParticle(29,x-15,y+15,0,0,0,0,nil)
  138. tfm.exec.displayParticle(29,x-5,y+18,0,0,0,0,nil)
  139. tfm.exec.displayParticle(29,x+10,y+10,0,0,0,0,nil)
  140. tfm.exec.displayParticle(29,x-20,y+10,0,0,0,0,nil)
  141. tfm.exec.displayParticle(29,x-10,y+10,0,0,0,0,nil)
  142. tfm.exec.displayParticle(29,x,y+10,0,0,0,0,nil)
  143. elseif klaw==73 and nick=="Bartekgajes" then
  144. tfm.exec.movePlayer(nick,x,y-100,false,0,1,false)
  145. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  146. elseif klaw==74 and nick=="Bartekgajes" then
  147. tfm.exec.movePlayer(nick,x-100,y,false,0,1,false)
  148. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  149. elseif klaw==75 and nick=="Bartekgajes" then
  150. tfm.exec.movePlayer(nick,x,y+100,false,0,1,false)
  151. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  152. elseif klaw==76 and nick=="Bartekgajes" then
  153. tfm.exec.movePlayer(nick,x+100,y,false,0,1,false)
  154. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  155. elseif klaw==73 and nick=="Mandarynkapx" then
  156. tfm.exec.movePlayer(nick,x,y-100,false,0,1,false)
  157. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  158. elseif klaw==74 and nick=="Mandarynkapx" then
  159. tfm.exec.movePlayer(nick,x-100,y,false,0,1,false)
  160. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  161. elseif klaw==75 and nick=="Mandarynkapx" then
  162. tfm.exec.movePlayer(nick,x,y+100,false,0,1,false)
  163. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  164. elseif klaw==76 and nick=="Mandarynkapx" then
  165. tfm.exec.movePlayer(nick,x+100,y,false,0,1,false)
  166. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  167. elseif klaw==73 and nick=="Olikotek" then
  168. tfm.exec.movePlayer(nick,x,y-100,false,0,1,false)
  169. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  170. elseif klaw==74 and nick=="Olikotek" then
  171. tfm.exec.movePlayer(nick,x-100,y,false,0,1,false)
  172. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  173. elseif klaw==75 and nick=="Olikotek" then
  174. tfm.exec.movePlayer(nick,x,y+100,false,0,1,false)
  175. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  176. elseif klaw==76 and nick=="Olikotek" then
  177. tfm.exec.movePlayer(nick,x+100,y,false,0,1,false)
  178. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  179. elseif klaw==73 and nick=="Adekab" then
  180. tfm.exec.movePlayer(nick,x,y-100,false,0,1,false)
  181. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  182. elseif klaw==74 and nick=="Adekab" then
  183. tfm.exec.movePlayer(nick,x-100,y,false,0,1,false)
  184. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  185. elseif klaw==75 and nick=="Adekab" then
  186. tfm.exec.movePlayer(nick,x,y+100,false,0,1,false)
  187. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  188. elseif klaw==76 and nick=="Adekab" then
  189. tfm.exec.movePlayer(nick,x+100,y,false,0,1,false)
  190. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  191. elseif klaw==73 and nick=="Olinicia" then
  192. tfm.exec.movePlayer(nick,x,y-100,false,0,1,false)
  193. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  194. elseif klaw==74 and nick=="Olinicia" then
  195. tfm.exec.movePlayer(nick,x-100,y,false,0,1,false)
  196. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  197. elseif klaw==75 and nick=="Olinicia" then
  198. tfm.exec.movePlayer(nick,x,y+100,false,0,1,false)
  199. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  200. elseif klaw==76 and nick=="Olinicia" then
  201. tfm.exec.movePlayer(nick,x+100,y,false,0,1,false)
  202. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  203. elseif klaw==73 and nick=="Googoopl" then
  204. tfm.exec.movePlayer(nick,x,y-100,false,0,1,false)
  205. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  206. elseif klaw==74 and nick=="Googoopl" then
  207. tfm.exec.movePlayer(nick,x-100,y,false,0,1,false)
  208. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  209. elseif klaw==75 and nick=="Googoopl" then
  210. tfm.exec.movePlayer(nick,x,y+100,false,0,1,false)
  211. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  212. elseif klaw==76 and nick=="Googoopl" then
  213. tfm.exec.movePlayer(nick,x+100,y,false,0,1,false)
  214. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  215. elseif klaw==73 and nick=="Mysiaptysia" then
  216. tfm.exec.movePlayer(nick,x,y-100,false,0,1,false)
  217. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  218. elseif klaw==74 and nick=="Mysiaptysia" then
  219. tfm.exec.movePlayer(nick,x-100,y,false,0,1,false)
  220. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  221. elseif klaw==75 and nick=="Mysiaptysia" then
  222. tfm.exec.movePlayer(nick,x,y+100,false,0,1,false)
  223. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  224. elseif klaw==76 and nick=="Mysiaptysia" then
  225. tfm.exec.movePlayer(nick,x+100,y,false,0,1,false)
  226. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  227. elseif klaw==73 and nick=="Yaket" then
  228. tfm.exec.movePlayer(nick,x,y-100,false,0,1,false)
  229. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  230. elseif klaw==74 and nick=="Yaket" then
  231. tfm.exec.movePlayer(nick,x-100,y,false,0,1,false)
  232. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  233. elseif klaw==75 and nick=="Yaket" then
  234. tfm.exec.movePlayer(nick,x,y+100,false,0,1,false)
  235. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  236. elseif klaw==76 and nick=="Yaket" then
  237. tfm.exec.movePlayer(nick,x+100,y,false,0,1,false)
  238. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  239. elseif klaw==73 and nick=="Mangosweet" then
  240. tfm.exec.movePlayer(nick,x,y-100,false,0,1,false)
  241. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  242. elseif klaw==74 and nick=="Mangosweet" then
  243. tfm.exec.movePlayer(nick,x-100,y,false,0,1,false)
  244. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  245. elseif klaw==75 and nick=="Mangosweet" then
  246. tfm.exec.movePlayer(nick,x,y+100,false,0,1,false)
  247. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  248. elseif klaw==76 and nick=="Mangosweet" then
  249. tfm.exec.movePlayer(nick,x+100,y,false,0,1,false)
  250. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  251. elseif klaw==73 and nick=="Chanelltfm" then
  252. tfm.exec.movePlayer(nick,x,y-100,false,0,1,false)
  253. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  254. elseif klaw==74 and nick=="Chanelltfm" then
  255. tfm.exec.movePlayer(nick,x-100,y,false,0,1,false)
  256. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  257. elseif klaw==75 and nick=="Chanelltfm" then
  258. tfm.exec.movePlayer(nick,x,y+100,false,0,1,false)
  259. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  260. elseif klaw==76 and nick=="Chanelltfm" then
  261. tfm.exec.movePlayer(nick,x+100,y,false,0,1,false)
  262. tfm.exec.displayParticle(35,x,y,0,0,0,0,nil)
  263. elseif klaw==77 then
  264. tfm.exec.movePlayer(nick,1,0,true,15,0,true)
  265. elseif klaw==78 then
  266. tfm.exec.movePlayer(nick,-1,0,true,-15,0,true)
  267. elseif klaw==38 then
  268. tfm.exec.movePlayer(nick,0,0,n,0,-50*2.50)
  269. elseif klaw==112 and nick=="Bartekgajes" then
  270. ui.addTextArea(1,"",n,-1e3,-1e3,2800,2400,1,1,0.7)
  271. elseif klaw==113 and nick=="Bartekgajes" then
  272. ui.removeTextArea(1)
  273. end
  274. end
  275.  
  276. function eventEmotePlayed(nick,id)
  277. if id==0 and nick=="Olinicia" then
  278. tfm.exec.playEmote(nick,13)
  279. elseif id==0 and nick=="Olikotek" then
  280. tfm.exec.playEmote(nick,13)
  281. elseif id==0 and nick=="Mandarynkapx" then
  282. tfm.exec.playEmote(nick,13)
  283. elseif id==0 and nick=="Adekab" then
  284. tfm.exec.playEmote(nick,13)
  285. elseif id==0 and nick=="Wizualny" then
  286. tfm.exec.playEmote(nick,13)
  287. elseif id==0 and nick=="Yaket" then
  288. tfm.exec.playEmote(nick,13)
  289. end
  290. end
  291.  
  292. function eventChatCommand(nick,komd)
  293. if komd=='s' and nick=="Bartekgajes" then
  294. tfm.exec.setShaman(nick)
  295. elseif komd=='s' and nick=="Adekab" then
  296. tfm.exec.setShaman(nick)
  297. elseif komd=='s' and nick=="Mysiaptysia" then
  298. tfm.exec.setShaman(nick)
  299. elseif komd=='s' and nick=="Olinicia" then
  300. tfm.exec.setShaman(nick)
  301. elseif komd=='s' and nick=="Olikotek" then
  302. tfm.exec.setShaman(nick)
  303. elseif komd=='s' and nick=="Yaket" then
  304. tfm.exec.setShaman(nick)
  305. elseif komd=='s' and nick=="Googoopl" then
  306. tfm.exec.setShaman(nick)
  307. elseif komd=='niewidka' and nick=="Bartekgajes" then
  308. tfm.exec.playEmote(nick,13)
  309. elseif komd=='niewidka' and nick=="Mysiaptysia" then
  310. tfm.exec.playEmote(nick,13)
  311. elseif komd=='niewidka' and nick=="Olincia" then
  312. tfm.exec.playEmote(nick,13)
  313. elseif komd=='niewidka' and nick=="Olikotek" then
  314. tfm.exec.playEmote(nick,13)
  315. elseif komd=='niewidka' and nick=="Mangosweet" then
  316. tfm.exec.playEmote(nick,13)
  317. elseif komd=='niewidka' and nick=="Chanelltfm" then
  318. tfm.exec.playEmote(nick,13)
  319. end
  320. end
  321.  
  322. for v,komd in pairs({"s","niewidka"}) do
  323. system.disableChatCommandDisplay(komd,true)
  324. end
  325.  
  326. function eventNewPlayer(playerName)
  327. tfm.exec.respawnPlayer(playerName)
  328.  
  329. if Zwykli[nick] then
  330. ui.addTextArea(997,"",playerName,-1e3,-1e3,2800,2400,1,1,1,true)
  331. end
  332.  
  333. system.bindMouse(playerName, true)
  334. tfm.exec.setUIMapName("<B><VP>Chanell Transformice<VP><B>")
  335. ui.addTextArea(2,"<a href='event:regulamin'><font color='#FFC34D'><font/><B>Regulamin</B>",nil,695,30,nil,nil, 0x3D0000 ,0x050505, 3.0, true)
  336. ui.addTextArea(3,"<a href='event:rangi'><font color='#FFC34D'><font/><B>Rangi</B>",nil,710,60,nil,nil, 0x3D0000 ,0x050505, 3.0, true)
  337. end
  338.  
  339. for playerName in pairs(tfm.get.room.playerList) do
  340. eventNewPlayer(playerName)
  341. end
  342.  
  343. function eventTextAreaCallback(id,playerName,odp)
  344. if odp=="regulamin" then
  345. ui.addTextArea(7,"<p align='center'><font size='15'>REGULAMIN</font color='#FCFCFC'>\n1. Nie wyzywamy \n2.Nie spamujemy \n3. Nie reklamujemy \n4. Nie przeklinamy \n5. Nie piszemy że szukamy dziewczyny,chłopaka \n6. Nie używamy przemocy \n7. Nie puszczamy muzy w trakcie innej \n8. Nie wyłudzamy i szantażujemy \n9. Nie puszczamy filmów +18 \n10. Nie prosimy o range \n<R>Nie przestrzeganie regulaminu grozi wyrzuceniem, Regulamin wykonali Bartekgajes,Karolciakic",playerName,300,100,250,250,0x3D0000,0x050505,1.0,true)
  346. ui.addTextArea(8,"<a href='event:z'>Zamknij",playerName,400,330,nil,nil,0.0,0.0,0,true)
  347. elseif odp=="rangi" then
  348. ui.addTextArea(7,"<p align='center'><font size='15'>RANGI</font><R><font size='15'color='#DDDCED'> \n1. Rekrutacja 3 myszek \n2.Organizacja imprez \n3.Podium na konkursie \n4.Pomoc innym gdy potrzebują \n5.Aktywnosc",playerName,300,100,250,250,0x3D0000,0x050505,1.0,true)
  349. ui.addTextArea(8,"<a href='event:z'>Zamknij",playerName,400,330,nil,nil,0.0,0.0,0,true)
  350. elseif odp=="z" then
  351. ui.removeTextArea(7)
  352. ui.removeTextArea(8)
  353. end
  354. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement