GogoTfm

رمضان جانا

Apr 28th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.00 KB | None | 0 0
  1. tfm.exec.disableAfkDeath(true)
  2. tfm.exec.disableAutoNewGame(true)
  3. tfm.exec.disableAutoScore(true)
  4. tfm.exec.disableAutoShaman(true)
  5. tfm.exec.disableAutoTimeLeft(true)
  6. tfm.exec.disablePhysicalConsumables(true)
  7. tfm.exec.setGameTime(0)
  8. tfm.exec.newGame([[<C><P /><Z><S><S i="1,23,16a646fbfd2.png" /><S H="10" P="0,0,0.3,0.2,0,0,0,0" L="26" X="12" Y="244" T="14" /><S H="38" P="0,0,0.3,0.2,9759,0,0,0" L="10" X="33" Y="231" T="14" /><S H="10" P="0,0,0.3,0.2,0,0,0,0" L="223" X="150" Y="221" T="14" /><S H="20" P="0,0,0.3,0.2,0,0,0,0" L="10" X="263" Y="225" T="14" /><S H="37" P="0,0,0.3,0.2,34,0,0,0" L="10" X="272" Y="226" T="14" /><S H="35" P="0,0,0.3,0.2,123,0,0,0" L="10" X="300" Y="222" T="14" /><S H="10" P="0,0,0.3,0.2,-11,0,0,0" L="171" X="476" Y="253" T="14" /><S H="10" P="0,0,0.3,0.2,-20,0,0,0" L="24" X="321" Y="229" T="14" /><S H="10" P="0,0,0.3,0.2,-20,0,0,0" L="24" X="343" Y="222" T="14" /><S H="10" P="0,0,0.3,0.2,0,0,0,0" L="24" X="363" Y="220" T="14" /><S H="10" P="0,0,0.3,0.2,40,0,0,0" L="24" X="382" Y="228" T="14" /><S H="10" P="0,0,0.3,0.2,80,0,0,0" L="24" X="394" Y="249" T="14" /><S H="10" P="0,0,0.3,0.2,0,0,0,0" L="241" X="678" Y="240" T="14" /></S><D><P X="141" P="0,0" C="ffffff" Y="312" T="90" /></D><O /></Z></C>]])
  9. admin = "Branco#5289" -- اسم الادمن
  10. password = "20191" -- كلمة السرّ
  11. players={} -- لا تكتب أي شئ هنا
  12. system.disableChatCommandDisplay("password")
  13.  
  14. function pw(name)
  15. print("<font color='#ffffff'> ! تم تفعيل كلمة السر فى بيت القبيلة")
  16. for name,player in pairs(tfm.get.room.playerList) do
  17. if name == admin then
  18. for poups, k in pairs({"1","2","3","4","5","6"}) do
  19. ui.removeTextArea(k, admin)
  20. end
  21. else
  22. ui.addTextArea(1, "", name, -1499, -1500, 3000, 3000, 0x000001, 0x000001, 1, true)
  23. ui.addTextArea(2, "", name, 5, 28, 789, 367, 0x544731, 0xffffff, 1, true)
  24. ui.addTextArea(3, "", name, 8, 31, 783, 361, 0x324650, 0x000000, 1, true)
  25. ui.addTextArea(4, "\n<p align='center'><font color='#00EEFF' size='25' face='Comic Sans MS'><b>رمضان كريم وكل سنة وانتو طيبين ^-^</b>\n\n<p align='center'><font color='#babd2f' size='25' face='Comic Sans MS'>للأسف هذه الغرفة محمية بكلمة سر ولاتستطيع الدخول فقط بمتلاك هذه الكلمة :(", name, 11, 34, 777, 355, 0x523d25, 0xc4621c, 1, true)
  26. ui.addTextArea(5, "<p align='center'><font color='#babd2f' size='25' face='Comic Sans MS'><b>"..players[name].txt.."", name, 231, 202, 344, 71, 0x324650, 0x000000, 0, true)
  27. ui.addTextArea(6, "<font color='#ffffff'>", name, 679, 359, 106, 27, 0x523d25, 0x000000, 1, true)
  28. ui.updateTextArea(6,"<font color='#009D9D'> "..players[name].try.." <font color='#ffffff'> : المحاولات المتبقية",name)
  29. ui.addPopup(0, 2, "<p align='center'> ↓ ادخِل كلمة السرّ هنا", name, 296, 205, 217, true)
  30. end
  31. end
  32. end
  33.  
  34. function eventNewPlayer(name)
  35. players[name]={
  36. try = 3, -- عدد مرات المحاولات
  37. txt = ""
  38. }
  39. if name == admin then
  40. for poups, k in pairs({"1","2","3","4","5","6"}) do
  41. ui.removeTextArea(k, admin)
  42. end
  43. else
  44. ui.addTextArea(1, "", name, -1499, -1500, 3000, 3000, 0x000001, 0x000001, 1, true)
  45. ui.addTextArea(2, "", name, 5, 28, 789, 367, 0x544731, 0xffffff, 1, true)
  46. ui.addTextArea(3, "", name, 8, 31, 783, 361, 0x324650, 0x000000, 1, true)
  47. ui.addTextArea(4, "\n<p align='center'><font color='#babd2f' size='25' face='Comic Sans MS'><b>بيت القبيلة مُغلقٌ بكلمةِ سرّ</b>\n\n<p align='center'><font color='#babd2f' size='25' face='Comic Sans MS'>ادخِل كلمة السرّ هنا", name, 11, 34, 777, 355, 0x523d25, 0xc4621c, 1, true)
  48. ui.addTextArea(5, "<p align='center'><font color='#babd2f' size='25' face='Comic Sans MS'><b>"..players[name].txt.."", name, 231, 202, 344, 71, 0x324650, 0x000000, 0, true)
  49. ui.addTextArea(6, "<font color='#ffffff'>", name, 679, 359, 106, 27, 0x523d25, 0x000000, 1, true)
  50. ui.updateTextArea(6,"<font color='#009D9D'> "..players[name].try.." <font color='#ffffff'> : المحاولات المتبقية",name)
  51. ui.addPopup(0, 2, "<p align='center'> ↓ ادخِل كلمة السرّ هنا", name, 296, 205, 217, true)
  52. end
  53. end
  54.  
  55. for name,player in pairs(tfm.get.room.playerList) do
  56. eventNewPlayer(name)
  57. end
  58.  
  59. function removepw(name)
  60. for poups, k in pairs({"1","2","3","4","5","6"}) do
  61. ui.removeTextArea(k, name)
  62. end
  63. end
  64.  
  65. function popup(name)
  66. ui.addPopup(0, 2, "<p align='center'> ↓ ادخِل كلمة السرّ هنا", name, 296, 205, 217, true)
  67. end
  68.  
  69. function split(t,s)local a={}for i,v in string.gmatch(t,string.format("[^%s]+",s or"%s"))do table.insert(a,i)end;return a end
  70.  
  71. function eventChatCommand ( playerName, command )
  72. local arg = split(command, " ")
  73. if playerName == admin then
  74. if arg[1]=="password" then
  75. password = arg[2] or ""
  76. print("<font color='#009D9D'> "..password.." <font color='#ffffff'>تمّ تغيير كلمة السر واصبحت")
  77. end
  78. end
  79. end
  80.  
  81. function eventPopupAnswer(id,name,ans)
  82. if id == 0 then
  83. if ans== password then
  84. removepw(name)
  85. print (" <font color='#ffffff'> كلمة السرّ الصحيحة <font color='#009D9D'> "..name.." <font color='#ffffff'> ادخل")
  86. else
  87. players[name].try = players[name].try - 1
  88. ui.updateTextArea(6,"<font color='#009D9D'> "..players[name].try.." <font color='#ffffff'> : المحاولات المتبقية",name)
  89. popup(name)
  90. print (" <font color='#EB1D51'> "..ans.." <font color='#ffffff'> كلمة سرٍ خاطئة وكانت <font color='#009D9D'> "..name.." <font color='#ffffff'> ادخل ")
  91. if players[name].try > 0 then
  92. popup(name)
  93. end
  94. if players[name].try == 0 then
  95. ui.addPopup(0, 2, "<p align='center'> ↓ ادخِل كلمة السرّ هنا", name, 296, -2205, 217, true)
  96. players[name].txt = "!! انتهت جميع المحاولات"
  97. ui.updateTextArea(5,"<font color='#ffffff'>"..players[name].txt.."",name)
  98. end
  99. end
  100. end
  101. end
  102.  
  103. table.foreach(tfm.get.room.playerList, eventNewPlayer)
  104. pw(name)
  105. tfm.exec.setUIMapName("رمــضاااان كريييييييم")
Advertisement
Add Comment
Please, Sign In to add comment