Facebook
From burak, 3 Years ago, written in Lua.
Embed
Download Paste or View Raw
Hits: 135
  1.  
  2. if tfm.get.room.xmlMapInfo.xml == map6 then
  3.  
  4.  
  5. if players[name].win==1 then
  6. if y>=20000  then
  7. players[name].win=players[name].win+1
  8. tfm.exec.movePlayer(name,150,20300)
  9. players[name].x=150 players[name].y=20300
  10. end
  11. end
  12.  
  13.  
  14.  
  15. if players[name].win==2 then
  16. print("hata nerde")
  17. if y>=40000 then
  18. players[name].win=players[name].win+1
  19. tfm.exec.movePlayer(name,150,40300)
  20. players[name].x=150 players[name].y=40300
  21. end
  22. end
  23.  
  24.  
  25. if players[name].win==3 then
  26. print("hata ananın amında")
  27. if y>=60000 then
  28. players[name].win=players[name].win+1
  29. tfm.exec.movePlayer(name,150,60300)
  30. players[name].x=150 players[name].y=60300
  31. end
  32. end
  33.  
  34. if players[name].win==4 then
  35. if y>=80000 then
  36. players[name].win=players[name].win+1
  37. tfm.exec.movePlayer(name,150,80300)
  38. players[name].x=150 players[name].y=80300
  39. end
  40. end
  41.  
  42. if players[name].win==5 then
  43. if y>=100000 then
  44. players[name].win=players[name].win+1
  45. tfm.exec.movePlayer(name,150,100300)
  46. players[name].x=150 players[name].y=100300
  47. end
  48. end
  49.  
  50. if players[name].win==6 then
  51. if y>=120000 then
  52. players[name].win=players[name].win+1
  53. tfm.exec.movePlayer(name,150,120300)
  54. players[name].x=150 players[name].y=120300
  55. end
  56. end
  57.  
  58. if players[name].win==7 then
  59. if y>=140000 then
  60. players[name].win=players[name].win+1
  61. tfm.exec.movePlayer(name,150,140300)
  62. players[name].x=150 players[name].y=140300
  63. end
  64. end
  65.  
  66. if players[name].win==8 then
  67. if y>=160000 then
  68. players[name].win=players[name].win+1
  69. tfm.exec.movePlayer(name,150,160300)
  70. players[name].x=150 players[name].y=160300
  71. end
  72. end
  73.  
  74. if players[name].win==9 then
  75. if y>=180000 then
  76. players[name].win=players[name].win+1
  77. tfm.exec.movePlayer(name,150,180300)
  78. players[name].x=150 players[name].y=180300
  79. end
  80. end
  81.  
  82. if players[name].win==10 then
  83. if y>=200000 then
  84. players[name].win=players[name].win+1
  85. tfm.exec.movePlayer(name,150,200300)
  86. players[name].x=150 players[name].y=200300
  87. end
  88. end
  89.  
  90. if players[name].win==11 then
  91. if y>=220000 then
  92. players[name].win=players[name].win+1
  93. tfm.exec.movePlayer(name,150,220300)
  94. players[name].x=150 players[name].y=220300
  95. end
  96. end
  97.  
  98. if players[name].win==12 then
  99. if y>=22120 then
  100. players[name].win=players[name].win+1
  101. tfm.exec.giveCheese(name)
  102. end
  103. end
  104. end
  105. end
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. function eventPlayerGetCheese(name)
  114. tfm.exec.playerVictory(name)
  115. end
  116.        
  117.  
  118. function eventPlayerWon(name)
  119.  players[name].x=nil
  120.  players[name].y=nil
  121.  players[name].id=nil
  122.  players[name].win=1
  123. end
  124.