Roger_tfm

VoteMaker

May 29th, 2020 (edited)
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.96 KB | None | 0 0
  1. --صناعة : Roger#4888--
  2. --قم بأزالة اسم حساب صانع السكريبت Roger#4888--
  3. --ثم قم بوضع اسمك بين علامتي التنصيص "و" لكي يعمل السكريبت--
  4. --اذا واجهت خطأ ي السكريبت قم بتبليغ صانع السكريبت عنه--
  5.  
  6. Admin ="Roger#4888"
  7.  
  8.  
  9. tfm.exec.disableAutoShaman(true)
  10. tfm.exec.newGame("@6218574")
  11. tfm.exec.disableAutoNewGame(true)
  12. tfm.exec.disableAutoShaman(true)
  13. tfm.exec.disableAfkDeath(true)
  14. tfm.exec.setUIMapName("<font color='#30BA76'>Welcome to VoteMaker!</font>")
  15. a = 0
  16. b = 0
  17. c = 0
  18. ui.addTextArea(666, "Powered By <font color='#009D9D'>Roger#4888</font color='#009D9D'> for Millionaires#0928", nil, 550, 28, 241, 20, 0x000000, 0x000000, 1, true)
  19. ui.addPopup(4888, 0, "<p align = 'center'><font size='30'  face='impact'>  التصويتات صانع </font></p>\nمرحبا في سكريبت صانع التصويتات! سيقوم الادمن بصنع 3 اختيارات وعليك الانتظار  لينهي ال3 اختيارات حيث ان اختيارك لا رجوع فيه! لذا يجب ان تختار بحكمة وان تتحلي بالصبر وذلك لضمان قبولك للأختيار الذي اخترته.", nil, 225, 129, 342, true)
  20. ui.addPopup(4888, 0, "<p align = 'center'><font size='30'  face='impact'>  التصويتات صانع </font></p>\nمرحبا في سكريبت صانع التصويتات! انت الادمن ويمكنك صناعة التصويتات لذا عليك ان تحذر اثناء الكتابة من الاخطاء الاملائية او التردد في اتخاذ القرار حول الثلاث انماط التي سوف يتم التصويت عليها لذا خذ وقتك في التفكير ولا داعي للاستعجال فلن تظهر الخيارات للفئران الاخري ان لم تقم بالغط علي \"بدء التصويتات\" وذلك عند انتهاء الكتابة في النوافذ كما وان النوافذ تظهر علي التوالي اي انه يجب ان تكتب في الاولي لتظهر الثانية وتكتب في الثانية لتظهر الاولي وهكذا\nان راودتك اي اقتراحات لا تتردد في اخبارنا بها\n/c Roger#4888\n", Admin, 225, 95, 342, true)
  21. ui.addPopup(0, 2, "النمط الاول", Admin, 17, 44, 175, true)
  22.  
  23.  
  24.  
  25. function eventPopupAnswer (popupId, playerName, answer)
  26.  
  27. if popupId == 0 and playerName == Admin then
  28.  
  29.     w = ""..answer..""
  30.     ui.addPopup(01, 2, "النمط الثاني", Admin, 300, 44, 175, true)
  31.  
  32.  
  33. elseif popupId == 01 and playerName == Admin then
  34.  
  35.     s = ""..answer..""
  36.     ui.addPopup(02, 2, "النمط الثالث", Admin, 600, 44, 175, true)
  37.  
  38. elseif popupId == 02 and playerName == Admin then
  39.  
  40.     x = ""..answer..""
  41.     ui.addTextArea(199, "<a href=\"event:start\"> بدء التصويت </a>", Admin, 715, 313, 80, 32, 0x000000, 0xffffff, 1, true)
  42.  
  43.  
  44.  
  45. end
  46. end
  47.  
  48. function eventTextAreaCallback(id,playerName,event)
  49.  
  50. if event == 'start' then
  51.  
  52.     ui.addTextArea(1, "<a href=\"event:a\">"..w.."</a>", nil, 38, 83, 96, 34, 0x000000, 0xffffff, 1, true)
  53.  
  54.     ui.addTextArea(2, "<a href=\"event:b\">"..s.."</a>", nil, 330, 83, 96, 34, 0x000000, 0xffffff, 1, true)
  55.  
  56.     ui.addTextArea(3, "<a href=\"event:c\">"..x.."</a>", nil, 630, 83, 96, 34, 0x000000, 0xffffff, 1, true)
  57.  
  58.     ui.removeTextArea(199,Admin,1,true)
  59.  
  60.     ui.addTextArea(99, "<a href=\"event:end\"> انهاء التصويت </a>", Admin, 715, 362, 80, 32, 0x000000, 0xffffff, 1, true)
  61.  
  62.  
  63. elseif event == 'a' then
  64.  
  65. a = a + 1
  66.  
  67. tfm.exec.movePlayer(playerName,100,200,false,0,50,false)
  68. print("<font color = '#009D9D' >"..playerName.." اختار الخيار الاول")
  69. ui.removeTextArea(1,playerName,1,true)
  70. ui.removeTextArea(2,playerName,1,true)
  71. ui.removeTextArea(3,playerName,1,true)
  72. ui.addTextArea(22, "لقد قمت بأختيار "..w.." لا تراجع عن اختيارك", playerName, 12, 345, 181, 40, 0x030303, 0xffffff, 1, true)
  73. ui.addTextArea(666, "Powered By <font color='#009D9D'>Roger#4888</font color='#009D9D'> for Millionaires#0928", nil, 550, 28, 241, 20, 0x000000, 0x000000, 1, true)
  74.  
  75.  
  76.  
  77. elseif event == 'b' then
  78.  
  79. b = b + 1
  80.  
  81. tfm.exec.movePlayer(playerName,400,200,false,0,50,false)
  82. print("<font color = '#ff0000' >"..playerName.." اختار الخيار الثاني")
  83. ui.removeTextArea(1,playerName,1,true)
  84. ui.removeTextArea(2,playerName,1,true)
  85. ui.removeTextArea(3,playerName,1,true)
  86. ui.addTextArea(22, "لقد قمت بأختيار "..s.." لا تراجع عن اختيارك", playerName, 12, 345, 181, 40, 0x030303, 0xffffff, 1, true)
  87. ui.addTextArea(666, "Powered By <font color='#009D9D'>Roger#4888</font color='#009D9D'> for Millionaires#0928", nil, 550, 28, 241, 20, 0x000000, 0x000000, 1, true)
  88.  
  89. elseif event == 'c' then
  90.  
  91. c = c + 1
  92.  
  93. tfm.exec.movePlayer(playerName,700,200,false,0,50,false)
  94. print("<font color = '#00ff33' >"..playerName.." اختار الخيار الثالث")
  95. ui.removeTextArea(1,playerName,1,true)
  96. ui.removeTextArea(2,playerName,1,true)
  97. ui.removeTextArea(3,playerName,1,true)
  98. ui.addTextArea(22, "لقد قمت بأختيار "..x.." لا تراجع عن اختيارك", playerName, 12, 345, 181, 40, 0x030303, 0xffffff, 1, true)
  99. ui.addTextArea(666, "Powered By <font color='#009D9D'>Roger#4888</font color='#009D9D'> for Millionaires#0928", nil, 550, 28, 241, 20, 0x000000, 0x000000, 1, true)
  100.  
  101. elseif event == 'end' then
  102.  
  103.  
  104. ui.removeTextArea(1,playerName,1,true)
  105. ui.removeTextArea(2,playerName,1,true)
  106. ui.removeTextArea(3,playerName,1,true)
  107. ui.addTextArea(100, "قام "..a.." باختيار <font color = '#009D9D' >"..w.."</font>" , nil, 38, 83, 150, 34, 0x000000, 0xffffff, 1, true)
  108. ui.addTextArea(200, "قام "..b.." باختيار <font color = '#ff0000' >"..s.."</font>" , nil, 330, 83, 150, 34, 0x000000, 0xffffff, 1, true)
  109. ui.addTextArea(300, "قام "..c.." باختيار <font color = '#00ff33' >"..x.."</font>" , nil, 630, 83, 150, 34, 0x000000, 0xffffff, 1, true)
  110. ui.removeTextArea(22,nil,1,true)
  111. ui.updateTextArea(99, "<a href=\"event:revote\"> اعادة التصويت </a>",Admin)
  112. print("<font color ='#ff0000'> تم ايقاف التصويت </font>")
  113. print("قام "..a.." باختيار "..w.."")
  114. print("قام "..b.." باختيار "..s.."")
  115. print("قام "..c.." باختيار "..x.."")
  116.  
  117.  
  118.  
  119.  
  120. elseif event == 'revote' then
  121.  
  122. a = 0
  123. b = 0
  124. c = 0
  125.  
  126. ui.addPopup(0, 2, "الخيار الاول", Admin, 17, 44, 175, true)
  127. ui.removeTextArea(100,nil,1,true)
  128. ui.removeTextArea(200,nil,1,true)
  129. ui.removeTextArea(300,nil,1,true)
  130. ui.removeTextArea(99,Admin,1,true)
  131. tfm.exec.newGame("@6218574")
  132. print("<font color ='#BABD2F'> تم اعادة التصويت </font>")
  133.  
  134.  
  135. end
  136. end
  137.  
  138.  
  139.  
  140. function eventPlayerDied ( playerName )
  141.     tfm.exec.respawnPlayer( playerName )
  142. end
  143.  
  144. function eventNewPlayer ( playerName )
  145.     tfm.exec.respawnPlayer( playerName )
  146. end
  147.  
  148. function eventPlayerWon ( playerName, timeElapsed, timeElapsedSinceRespawn )
  149.     tfm.exec.respawnPlayer( playerName )
  150. end
Add Comment
Please, Sign In to add comment