Advertisement
Boeing747-8

Untitled

Aug 9th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tfm.exec.setGameTime(3,true)
  2. dp={}
  3. roles={0,1}
  4. maps={7489629}
  5. data={}
  6. text={}
  7. lang={}
  8. players={}
  9. ids={
  10. 0,
  11. 0,
  12. 0,
  13. 0
  14. }
  15. alive=0
  16. lang.en={
  17. menu="Menu",
  18. profile2="Profile",
  19. help2="Help",
  20. help="In #kidnapper the goal of the game is for protectors to catch the mouse with the bomb before the mouse gets to the hole. The mouse with the bomb can use attacks to shield off protectors.",
  21. wins="Total Wins",
  22. wins_Bomber="Wins As Kidnapper",
  23. wins_Protector="Wins As Protector",
  24. close="Close",
  25. health=100,
  26. bomber_Wins="Kidnapper Wins!",
  27. protector_Wins="Protectors Win!",
  28. powerups2="Powerups",
  29. powerup1="[Normal Attack]</J> Is activated by pressing space. Only works for Protectors when they are near the bomber.",
  30. powerup2="[Mega Jump]</J> Is activated by the down arrow.",
  31. mouseStolen="kidnapped the mouse!",
  32. buy="Buy",
  33. bought="Bought",
  34. shop="Shop",
  35. points="Points"
  36. }
  37. for _, s in next, {'AutoTimeLeft', 'PhysicalConsumables', 'AfkDeath', 'AutoShaman', 'AutoNewGame'} do
  38. tfm.exec['disable' .. s]()
  39. end
  40. function Dp(name)
  41. name = name:sub(1,1):upper()..name:sub(2):lower()
  42. for i,dp in ipairs(dp) do
  43. if name==dp then
  44. return true
  45. end
  46. end
  47. return false
  48. end
  49. function stolen(n)
  50. data[n].p=player
  51. data[n].stolen="<R>"..data[n].p.."<J> "..text[n].mouseStolen
  52. tfm.exec.chatMessage(data[n].stolen,n)
  53. end
  54. function particles(x,y)
  55. tfm.exec.displayParticle(9,x,y+10,-0.4,0.1,0.2,0.3,nil)
  56. tfm.exec.displayParticle(9,x,y+10,-0.6,0.2,0.6,0.2,nil)
  57. tfm.exec.displayParticle(9,x,y+10,-0.8,0.3,0.8,0.1,nil)
  58. tfm.exec.displayParticle(9,x,y+10,0.4,0.4,-0.4,0.3,nil)
  59. tfm.exec.displayParticle(9,x,y+10,0.6,0.5,-0.6,0.2,nil)
  60. tfm.exec.displayParticle(9,x,y+10,0.8,0.6,-0.8,0.1,nil)
  61. end
  62. function bigJump(n,x,y)
  63. tfm.exec.movePlayer(n,0,0,false,0,-80,true)
  64. tfm.exec.displayParticle(3,x-5,y+10,-0.8,0,0,0,n)
  65. tfm.exec.displayParticle(3,x+5,y+10,0.8,0,0,0,n)
  66. tfm.exec.displayParticle(3,x-10,y+10,-1.7,0,0,0,n)
  67. tfm.exec.displayParticle(3,x+10,y+10,1.7,0,0,0,n)
  68. particles(x,y)
  69. end
  70. function identifyBomber(n)
  71. if data[n].role==0 then
  72. tfm.exec.setNameColor(n,0x00FF00)
  73. tfm.exec.movePlayer(n,1023,432,false,0,50,false)
  74. elseif data[n].role==1 then
  75. tfm.exec.setNameColor(n,0xFF0000)
  76. end
  77. end
  78. function countAlive()
  79. alive=0
  80. for n,player in pairs(tfm.get.room.playerList) do
  81. if tfm.get.room.playerList[n].isDead==false then
  82. alive=alive+1
  83. end
  84. end
  85. end
  86. function removeWinner()
  87. ui.removeTextArea(20,nil)
  88. ui.removeTextArea(30,nil)
  89. ui.removeTextArea(40,nil)
  90. ui.removeTextArea(50,nil)
  91. ui.removeTextArea(60,nil)
  92. ui.removeTextArea(19,nil)
  93. end
  94.  
  95. function win(n)
  96. if tfm.get.room.playerList[n].isDead==false and data[n].role==0 then
  97. data[n].wins=data[n].wins+1
  98. data[n].wins_Protector=data[n].wins_Protector+1
  99. end
  100. end
  101. function insertName(n)
  102. table.insert(players,n)
  103. end
  104. function setLang(n)
  105. text[n]=lang[tfm.get.room.playerList[n].community] or lang.en
  106. end
  107. function setData(n)
  108. data[n]=
  109. {
  110. wins=0,
  111. role=0,
  112. health=100,
  113. spawn=1,
  114. wins_Protector=0,
  115. wins_Bomber=0,
  116. p="",
  117. stolen="",
  118. shopItems={propellerMouse=0,greenMouse=0,lightningMouse=0,tigerMouse=0},
  119. buy1=text[n].buy,
  120. buy2=text[n].buy,
  121. buy3=text[n].buy,
  122. buy4=text[n].buy,
  123. using="1651b5bc86d.png",
  124. points=0
  125. }
  126. end
  127. function chooseRole()
  128. for n,player in pairs(tfm.get.room.playerList) do
  129. data[n].role=0
  130. end
  131. player=players[math.random(#players)]
  132. data[player].role=1
  133. player=""..player
  134. end
  135. function bindKeyboard(n)
  136. for i=0,150 do
  137. tfm.exec.bindKeyboard(n,i,true,true)
  138. end
  139. end
  140. function showMenu(n)
  141. ui.addTextArea(0, "<p align='center'><font face='calibri'><a href='event:menu2'>"..text[n].menu, n, 10, 30, 42, 20, 0x000001, 0xFFFFFF, 1, true)
  142. end
  143. function showMenu2(n)
  144. ui.addTextArea(0, "<p align='center'><font face='calibri'><a href='event:Menu'>"..text[n].menu.." </a>| <a href='event:Help'>"..text[n].help2.."</a> | <a href='event:Profile'>"..text[n].profile2.."</a> | <a href='event:Powerups'>"..text[n].powerups2.."</a> | <a href='event:Shop'>"..text[n].shop, n, 10, 30, 210, 20, 0x000001, 0xffffff, 1, true)
  145. end
  146. function removeImage(n)
  147. tfm.exec.removeImage(id1)
  148. tfm.exec.removeImage(id2)
  149. tfm.exec.removeImage(id3)
  150. tfm.exec.removeImage(id4)
  151. end
  152. function removeShop(n)
  153. for i=1000,10000 do
  154. ui.removeTextArea(i)
  155. end
  156. end
  157. function showHealth(n)
  158. ui.addTextArea(-3, "", n, 319, 27, 100, 18, 0xffffff, 0xffffff, 1, true)
  159. ui.addTextArea(-1, "", n, 319, 27, data[n].health, 18, 0x1aff00, 0x1aff00, 1, true)
  160. ui.addTextArea(-2, "<p align='center'><b><font color='#000000'>"..data[n].health.."%", n, 345, 27, 54, 18, 0x324650, 0x000000, 0, true)
  161. end
  162. function displayTab(n,info,subject)
  163. ui.addTextArea(2, "", n, 262, 72, 360, 290, 0x331f15, 0x331f15, 1, true)
  164. ui.addTextArea(3, "", n, 262, 125, 4, 180, 0x6b4231, 0x6b4231, 1, true)
  165. ui.addTextArea(5, "", n, 295, 72, 290, 4, 0x6b4231, 0x6b4231, 1, true)
  166. ui.addTextArea(4, "", n, 618, 125, 4, 180, 0x6b4231, 0x6b4231, 1, true)
  167. ui.addTextArea(6, "", n, 295, 358, 295, 4, 0x6b4231, 0x6b4231, 1, true)
  168. ui.addTextArea(1, "<p align='center'><font face='calibri'><font size='17'><b>#KIDNAPPER - "..subject.."</b></font></font><font size='14'>\n\n"..info, n, 271, 80, 342, 270, 0x1b262b, 0x131c21, 1, true)
  169. ui.addTextArea(7, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close.."</a></font>", n, 272, 330, 339, 20, 0x324650, 0x324650, 1, true)
  170. end
  171. function profile(n,info)
  172. ui.addTextArea(2, "", n, 262, 72, 268, 290, 0x331f15, 0x331f15, 1, true)
  173. ui.addTextArea(3, "", n, 262, 120, 4, 180, 0x6b4231, 0x6b4231, 1, true)
  174. ui.addTextArea(5, "", n, 295, 72, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  175. ui.addTextArea(4, "", n, 526, 120, 4, 180, 0x6b4231, 0x6b4231, 1, true)
  176. ui.addTextArea(6, "", n, 295, 358, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  177. ui.addTextArea(1, "<p align='center'><font face='calibri'><font size='17'><b>"..n.."</b></font></font></p><font size='14'>\n<font face='calibri'>\n"..info, n, 270, 82, 252, 270, 0x1b262b, 0x131c21, 1, true)
  178. ui.addTextArea(7, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close.."</a></font>", n, 272, 330, 248, 20, 0x324650, 0x324650, 1, true)
  179. end
  180. function profile2(n,info,l)
  181. ui.addTextArea(2, "", l, 262, 72, 268, 290, 0x331f15, 0x331f15, 1, true)
  182. ui.addTextArea(3, "", l, 262, 120, 4, 180, 0x6b4231, 0x6b4231, 1, true)
  183. ui.addTextArea(5, "", l, 295, 72, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  184. ui.addTextArea(4, "", l, 526, 120, 4, 180, 0x6b4231, 0x6b4231, 1, true)
  185. ui.addTextArea(6, "", l, 295, 358, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  186. ui.addTextArea(1, "<p align='center'><font face='calibri'><font size='17'><b>"..n.."</b></font></font></p><font size='14'>\n<font face='calibri'>\n"..info, l, 270, 82, 252, 270, 0x1b262b, 0x131c21, 1, true)
  187. ui.addTextArea(7, "<p align='center'><font size='13'><a href='event:close'>"..text[l].close.."</a></font>", l, 272, 330, 248, 20, 0x324650, 0x324650, 1, true)
  188. end
  189. function close(n)
  190. for i=1,7 do
  191. ui.removeTextArea(i,n)
  192. end
  193. end
  194. function nearBomber(n,x,y,p)
  195. if ((tfm.get.room.playerList[n].x<tfm.get.room.playerList[p].x+100 and tfm.get.room.playerList[n].x<tfm.get.room.playerList[p].x) and tfm.get.room.playerList[n].y<tfm.get.room.playerList[p].y+50 and tfm.get.room.playerList[n].y>tfm.get.room.playerList[p].y-50) and not (n==p) and data[p].health>0 and tfm.get.room.playerList[n].isFacingRight==true then
  196. tfm.exec.movePlayer(p,0,0,false,operation[math.random(#operation)],operation[math.random(#operation)],true)
  197. data[p].health=data[p].health-12.5
  198. tfm.exec.displayParticle(1,x,y,0.2,0,0.2,0,nil)
  199. tfm.exec.displayParticle(1,x,y,0.4,0,0.4,0,nil)
  200. tfm.exec.displayParticle(1,x,y,0.6,0,0.6,0,nil)
  201. tfm.exec.displayParticle(1,x,y,0.8,0,0.8,0,nil)
  202. tfm.exec.displayParticle(1,x,y,1,0,1,0,nil)
  203. tfm.exec.displayParticle(1,x,y-10,0.2,0,0.2,0,nil)
  204. tfm.exec.displayParticle(1,x,y-10,0.4,0,0.4,0,nil)
  205. tfm.exec.displayParticle(1,x,y-10,0.6,0,0.6,0,nil)
  206. tfm.exec.displayParticle(1,x,y-10,0.8,0,0.8,0,nil)
  207. tfm.exec.displayParticle(1,x,y-10,1,0,1,0,nil)
  208. tfm.exec.displayParticle(1,x,y+10,0.2,0,0.2,0,nil)
  209. tfm.exec.displayParticle(1,x,y+10,0.4,0,0.4,0,nli)
  210. tfm.exec.displayParticle(1,x,y+10,0.6,0,0.6,0,nil)
  211. tfm.exec.displayParticle(1,x,y+10,0.8,0,0.8,0,nil)
  212. tfm.exec.displayParticle(1,x,y+10,1,0,1,0,nil)
  213. end
  214. if ((tfm.get.room.playerList[n].x>tfm.get.room.playerList[p].x-100 and tfm.get.room.playerList[n].x>tfm.get.room.playerList[p].x) and tfm.get.room.playerList[n].y<tfm.get.room.playerList[p].y+50 and tfm.get.room.playerList[n].y>tfm.get.room.playerList[p].y-50) and not (n==p) and data[p].health>0 and tfm.get.room.playerList[n].isFacingRight==false then
  215. tfm.exec.movePlayer(p,0,0,false,operation[math.random(#operation)],operation[math.random(#operation)],true)
  216. data[p].health=data[p].health-12.5
  217. tfm.exec.displayParticle(1,x,y,-0.2,0,-0.2,0,nil)
  218. tfm.exec.displayParticle(1,x,y,-0.4,0,-0.4,0,nil)
  219. tfm.exec.displayParticle(1,x,y,-0.6,0,-0.6,0,nil)
  220. tfm.exec.displayParticle(1,x,y,-0.8,0,-0.8,0,nil)
  221. tfm.exec.displayParticle(1,x,y,-1,0,-1,0,nil)
  222. tfm.exec.displayParticle(1,x,y-10,-0.2,0,-0.2,0,nil)
  223. tfm.exec.displayParticle(1,x,y-10,-0.4,0,-0.4,0,nil)
  224. tfm.exec.displayParticle(1,x,y-10,-0.6,0,-0.6,0,nil)
  225. tfm.exec.displayParticle(1,x,y-10,-0.8,0,-0.8,0,nil)
  226. tfm.exec.displayParticle(1,x,y-10,-1,0,-1,0,nil)
  227. tfm.exec.displayParticle(1,x,y+10,-0.2,0,-0.2,0,nil)
  228. tfm.exec.displayParticle(1,x,y+10,-0.4,0,-0.4,0,nli)
  229. tfm.exec.displayParticle(1,x,y+10,-0.6,0,-0.6,0,nil)
  230. tfm.exec.displayParticle(1,x,y+10,-0.8,0,-0.8,0,nil)
  231. tfm.exec.displayParticle(1,x,y+10,-1,0,-1,0,nil)
  232. end
  233. if data[p].health<1 then
  234. tfm.exec.killPlayer(p)
  235. end
  236. end
  237. operation={-110,110}
  238. function nearProtector(n,p,x,y)
  239. if not (n==p) and data[p].health>0 and data[n].health>0 then
  240. tfm.exec.displayParticle(13,x,y,-0.2,0.1,-0.2,0.1,nil)
  241. tfm.exec.displayParticle(13,x,y,-0.4,0,-0.4,0,nil)
  242. tfm.exec.displayParticle(13,x,y,-0.6,0,-0.6,0,nil)
  243. tfm.exec.displayParticle(3,x,y,-0.8,0,-0.8,0,nil)
  244. tfm.exec.displayParticle(3,x,y,-8,0,-1,0,nil)
  245. tfm.exec.displayParticle(3,x,y-10,-0.2,0.1,-0.2,0.1,nil)
  246. tfm.exec.displayParticle(13,x,y-10,-0.4,0,-0.4,0,nil)
  247. tfm.exec.displayParticle(13,x,y-10,-0.6,0,-0.6,0,nil)
  248. tfm.exec.displayParticle(13,x,y-10,-0.8,0,-0.8,0,nil)
  249. tfm.exec.displayParticle(13,x,y-10,-1,0,-1,0,nil)
  250. tfm.exec.displayParticle(13,x,y+10,-0.2,0.1,-0.2,0.1,nil)
  251. tfm.exec.displayParticle(13,x,y+10,-0.4,0,-0.4,0,nli)
  252. tfm.exec.displayParticle(13,x,y+10,-0.6,0,-0.6,0,nil)
  253. tfm.exec.displayParticle(13,x,y+10,-0.8,-0.1,-0.8,-0.1,nil)
  254. tfm.exec.displayParticle(13,x,y+10,-1,0,-1,0,nil)
  255. tfm.exec.displayParticle(13,x,y,0.2,0,0.2,0,nil)
  256. tfm.exec.displayParticle(13,x,y,0.4,0,0.4,0,nil)
  257. tfm.exec.displayParticle(13,x,y,0.6,0,0.6,0,nil)
  258. tfm.exec.displayParticle(13,x,y,0.8,0,0.8,0,nil)
  259. tfm.exec.displayParticle(13,x,y,1,0,1,0,nil)
  260. tfm.exec.displayParticle(13,x,y-10,0.2,0.1,0.2,0.1,nil)
  261. tfm.exec.displayParticle(13,x,y-10,0.4,0,0.4,0,nil)
  262. tfm.exec.displayParticle(13,x,y-10,0.6,0,0.6,0,nil)
  263. tfm.exec.displayParticle(13,x,y-10,0.8,0,0.8,0,nil)
  264. tfm.exec.displayParticle(13,x,y-10,1,0,1,0,nil)
  265. tfm.exec.displayParticle(13,x,y+10,0.2,0,0.2,0,nil)
  266. tfm.exec.displayParticle(13,x,y+10,0.4,0,0.4,0,nli)
  267. tfm.exec.displayParticle(13,x,y+10,0.6,0,0.6,0,nil)
  268. tfm.exec.displayParticle(3,x,y+10,0.8,0,0.8,0,nil)
  269. tfm.exec.displayParticle(3,x,y+10,8,0,1,0,nil)
  270. end
  271. if (tfm.get.room.playerList[n].x<tfm.get.room.playerList[p].x+70 and tfm.get.room.playerList[n].x>tfm.get.room.playerList[p].x-70 and tfm.get.room.playerList[n].y<tfm.get.room.playerList[p].y+30 and tfm.get.room.playerList[n].y>tfm.get.room.playerList[p].y-30) and not (n==p) and data[p].health>0 and data[n].health>0 then
  272. data[n].health=data[n].health-12.5
  273. tfm.exec.movePlayer(n,0,0,false,operation[math.random(#operation)],operation[math.random(#operation)],true)
  274. end
  275. if data[n].health<1 then
  276. tfm.exec.killPlayer(n)
  277. end
  278. end
  279.  
  280. for n,player in pairs(tfm.get.room.playerList) do
  281. bindKeyboard(n)
  282. setLang(n)
  283. insertName(n)
  284. setData(n)
  285. showMenu(n)
  286. table.insert(dp,n)
  287. end
  288. chooseRole()
  289. for n,player in pairs(tfm.get.room.playerList) do
  290. identifyBomber(n)
  291. end
  292. function allInfo(n)
  293. bindKeyboard(n)
  294. setLang(n)
  295. insertName(n)
  296. setData(n)
  297. showMenu(n)
  298. identifyBomber(n)
  299. table.insert(dp,n)
  300. end
  301. function eventNewGame()
  302. players={}
  303. for n,player in pairs(tfm.get.room.playerList) do
  304. insertName(n)
  305. end
  306. chooseRole()
  307. countAlive()
  308. removeWinner()
  309. for n,player in pairs(tfm.get.room.playerList) do
  310. identifyBomber(n)
  311. data[n].health=100
  312. stolen(n)
  313. end
  314. id=tfm.exec.addImage(data[player].using,"$"..player, -40, -25)
  315. end
  316. function eventTextAreaCallback(txt, n, a)
  317. if a=="Menu" then
  318. showMenu(n)
  319. elseif a=="menu2" then
  320. showMenu2(n)
  321. elseif a=="Help" then
  322. displayTab(n,text[n].help,text[n].help2)
  323. elseif a=="close" then
  324. close(n)
  325. removeImage(n)
  326. removeShop(n)
  327. elseif a=="Profile" then
  328. profile(n,text[n].wins..": <J>"..data[n].wins.."\n\n</J>"..text[n].wins_Bomber..": <J>"..data[n].wins_Bomber.."\n\n</J>"..text[n].wins_Protector..": <J>"..data[n].wins_Protector.."</J>\n\n"..text[n].points..": <J>"..data[n].points)
  329. elseif a=="Powerups" then
  330. displayTab(n,"<J>"..text[n].powerup1.."\n\n<J>"..text[n].powerup2,text[n].powerups2)
  331. elseif a=="Shop" then
  332. shop(n)
  333. elseif a=="buy1" and data[n].points>=0 then
  334. data[n].buy1="</a><G>"..text[n].bought
  335. data[n].using="1651ca2b636.png"
  336. shop(n)
  337. elseif a=="buy2" and data[n].points>=0 then
  338. data[n].buy2="</a><G>"..text[n].bought
  339. data[n].using="1651ca29934.png"
  340. shop(n)
  341. elseif a=="buy3" and data[n].points>=0 then
  342. data[n].buy3="</a><G>"..text[n].bought
  343. data[n].using="1651ca27c02.png"
  344. shop(n)
  345. elseif a=="buy4" and data[n].points>=0 then
  346. data[n].buy4="</a><G>"..text[n].bought
  347. data[n].using="1651ca26129.png"
  348. shop(n)
  349. end
  350. end
  351. function eventNewPlayer(n)
  352. allInfo(n)
  353. end
  354. function eventLoop(time,timeRemaining)
  355. for n,player in pairs(tfm.get.room.playerList) do
  356. data[n].spawn=data[n].spawn+0.5
  357. showHealth(n)
  358. end
  359. if timeRemaining<=0 then
  360. tfm.exec.newGame(maps[math.random(#maps)])
  361. end
  362. end
  363.  
  364. function eventKeyboard(n, k, d, x, y)
  365. if k==32 and data[n].role==0 and data[n].spawn>0 and tfm.get.room.playerList[n].isDead==false then
  366. nearBomber(n,x,y,player)
  367. data[n].spawn=-1
  368. elseif k==32 and data[n].role==1 and data[n].spawn>0 and tfm.get.room.playerList[n].isDead==false then
  369. data[n].spawn=-1.5
  370. player=player
  371. for n in pairs(tfm.get.room.playerList) do
  372. nearProtector(n,player,tfm.get.room.playerList[player].x,tfm.get.room.playerList[player].y)
  373. end
  374. elseif k==3 and data[n].spawn>0 then
  375. data[n].spawn=-2
  376. player=player
  377. bigJump(n,x,y)
  378. elseif k==112 then
  379.  
  380. end
  381. end
  382. function eventPlayerDied(n)
  383. for n,player in pairs(tfm.get.room.playerList) do
  384. win(n)
  385. end
  386. countAlive()
  387. data[n].health=0
  388. if data[n].role==1 then
  389. for n,player in pairs(tfm.get.room.playerList) do
  390. ui.addTextArea(20, "", n, 262, 172, 268, 66, 0x331f15, 0x331f15, 1, true)
  391. ui.addTextArea(30, "", n, 262, 191, 4, 26, 0x6b4231, 0x6b4231, 1, true)
  392. ui.addTextArea(50, "", n, 300, 172, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  393. ui.addTextArea(40, "", n, 526, 192, 4, 26, 0x6b4231, 0x6b4231, 1, true)
  394. ui.addTextArea(60, "", n, 300, 234, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  395. ui.addTextArea(19, "<p align='center'><font size='20'><VP>"..text[n].protector_Wins, n, 270, 182, 252, 44, 0x1b262b, 0x131c21, 1, true)
  396. tfm.exec.setGameTime(5,true)
  397. end
  398. end
  399. end
  400.  
  401. function eventMouse(playerName,x,y)
  402. print("<VP>X</VP><N>:</N><J> "..x.."</J><VP> Y</VP><N>:</N><J> "..y)
  403. end
  404. system.bindMouse("Fuzzyfirsdog#0000", true)
  405. function eventPlayerGetCheese(n)
  406. if data[n].role==1 then
  407. data[n].wins=data[n].wins+1
  408. data[n].wins_Bomber=data[n].wins_Bomber+1
  409. tfm.exec.setGameTime(10,true)
  410. for n,player in pairs(tfm.get.room.playerList) do
  411. ui.addTextArea(20, "", n, 262, 172, 268, 66, 0x331f15, 0x331f15, 1, true)
  412. ui.addTextArea(30, "", n, 262, 191, 4, 26, 0x6b4231, 0x6b4231, 1, true)
  413. ui.addTextArea(50, "", n, 300, 172, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  414. ui.addTextArea(40, "", n, 526, 192, 4, 26, 0x6b4231, 0x6b4231, 1, true)
  415. ui.addTextArea(60, "", n, 300, 234, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  416. ui.addTextArea(19, "<p align='center'><font size='20'><R>"..text[n].bomber_Wins, n, 270, 182, 252, 44, 0x1b262b, 0x131c21, 1, true)
  417. if not (data[n].role==1) then
  418. tfm.exec.killPlayer(n)
  419. end
  420. end
  421. end
  422. end
  423. system.disableChatCommandDisplay("p",true)
  424. function eventChatCommand(l,c)
  425. if c=="p" then
  426. profile(l,text[l].wins..": <J>"..data[l].wins.."\n\n</J>"..text[l].wins_Bomber..": <J>"..data[l].wins_Bomber.."\n\n</J>"..text[l].wins_Protector..": <J>"..data[l].wins_Protector)
  427. end
  428. if c:sub(0,1)=="p" and Dp(c:sub(3))then
  429. n = c:sub(3,3):upper()..c:sub(4):lower()
  430. profile2(n,text[l].wins..": <J>"..data[n].wins.."\n\n</J>"..text[l].wins_Bomber..": <J>"..data[n].wins_Bomber.."\n\n</J>"..text[l].wins_Protector..": <J>"..data[n].wins_Protector.."</J>\n\n"..text[l].points..": <J>"..data[n].points,l)
  431. end
  432. end
  433. function shop(n)
  434. ui.addTextArea(7000, "", n, 113, 58, 643, 260, 0x331f15, 0x331f15, 1, true)
  435. ui.addTextArea(5000, "", n, 296, 314, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  436. ui.addTextArea(3000, "", n, 113, 111, 4, 151, 0x6b4231, 0x6b4231, 1, true)
  437. ui.addTextArea(4000, "", n, 752, 111, 4, 151, 0x6b4231, 0x6b4231, 1, true)
  438. ui.addTextArea(6000, "", n, 296, 58, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  439. ui.addTextArea(2000, "<p align='center'><font size='20'><VP>", n, 122, 68, 626, 240, 0x1b262b, 0x131c21, 1, true)
  440. ui.addTextArea(8000, "", n, 154, 94, 100, 100, 0x324650, 0x324650, 1, true)
  441. ui.addTextArea(9000, "<p align='center'><b><a href='event:buy1'>"..data[n].buy1, n, 153, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  442. ui.addTextArea(1000, "<p align='center'><b><a href='event:buy2'>"..data[n].buy2, n, 309, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  443. ui.addTextArea(1100, "<p align='center'><b><a href='event:buy3'>"..data[n].buy3, n, 468, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  444. ui.addTextArea(1200, "", n, 617, 94, 100, 100, 0x324650, 0x324650, 1, true)
  445. ui.addTextArea(1300, "<p align='center'><b><a href='event:buy4'>"..data[n].buy4, n, 617, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  446. ui.addTextArea(7700, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close.."</a></font>", n, 125, 285, 620, 20, 0x324650, 0x324650, 1, true)
  447. ui.addTextArea(9200, "", n, 309, 94, 100, 100, 0x324650, 0x324650, 1, true)
  448. ui.addTextArea(9100, "", n, 468, 94, 100, 100, 0x324650, 0x324650, 1, true)
  449. id1=tfm.exec.addImage("1651ca2b636.png", "&1", 153, 115, n)
  450. id2=tfm.exec.addImage("1651ca29934.png", "&2", 312, 110, n)
  451. id3=tfm.exec.addImage("1651ca27c02.png", "&3", 467, 110, n)
  452. ids4=tfm.exec.addImage("1651ca26129.png", "&4", 617, 120, n)
  453. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement