Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoScore(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.disablePhysicalConsumables(true)
- tfm.exec.setGameTime(0)
- 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>]])
- admin = "Branco#5289" -- اسم الادمن
- password = "20191" -- كلمة السرّ
- players={} -- لا تكتب أي شئ هنا
- system.disableChatCommandDisplay("password")
- function pw(name)
- print("<font color='#ffffff'> ! تم تفعيل كلمة السر فى بيت القبيلة")
- for name,player in pairs(tfm.get.room.playerList) do
- if name == admin then
- for poups, k in pairs({"1","2","3","4","5","6"}) do
- ui.removeTextArea(k, admin)
- end
- else
- ui.addTextArea(1, "", name, -1499, -1500, 3000, 3000, 0x000001, 0x000001, 1, true)
- ui.addTextArea(2, "", name, 5, 28, 789, 367, 0x544731, 0xffffff, 1, true)
- ui.addTextArea(3, "", name, 8, 31, 783, 361, 0x324650, 0x000000, 1, true)
- 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)
- 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)
- ui.addTextArea(6, "<font color='#ffffff'>", name, 679, 359, 106, 27, 0x523d25, 0x000000, 1, true)
- ui.updateTextArea(6,"<font color='#009D9D'> "..players[name].try.." <font color='#ffffff'> : المحاولات المتبقية",name)
- ui.addPopup(0, 2, "<p align='center'> ↓ ادخِل كلمة السرّ هنا", name, 296, 205, 217, true)
- end
- end
- end
- function eventNewPlayer(name)
- players[name]={
- try = 3, -- عدد مرات المحاولات
- txt = ""
- }
- if name == admin then
- for poups, k in pairs({"1","2","3","4","5","6"}) do
- ui.removeTextArea(k, admin)
- end
- else
- ui.addTextArea(1, "", name, -1499, -1500, 3000, 3000, 0x000001, 0x000001, 1, true)
- ui.addTextArea(2, "", name, 5, 28, 789, 367, 0x544731, 0xffffff, 1, true)
- ui.addTextArea(3, "", name, 8, 31, 783, 361, 0x324650, 0x000000, 1, true)
- 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)
- 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)
- ui.addTextArea(6, "<font color='#ffffff'>", name, 679, 359, 106, 27, 0x523d25, 0x000000, 1, true)
- ui.updateTextArea(6,"<font color='#009D9D'> "..players[name].try.." <font color='#ffffff'> : المحاولات المتبقية",name)
- ui.addPopup(0, 2, "<p align='center'> ↓ ادخِل كلمة السرّ هنا", name, 296, 205, 217, true)
- end
- end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function removepw(name)
- for poups, k in pairs({"1","2","3","4","5","6"}) do
- ui.removeTextArea(k, name)
- end
- end
- function popup(name)
- ui.addPopup(0, 2, "<p align='center'> ↓ ادخِل كلمة السرّ هنا", name, 296, 205, 217, true)
- end
- 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
- function eventChatCommand ( playerName, command )
- local arg = split(command, " ")
- if playerName == admin then
- if arg[1]=="password" then
- password = arg[2] or ""
- print("<font color='#009D9D'> "..password.." <font color='#ffffff'>تمّ تغيير كلمة السر واصبحت")
- end
- end
- end
- function eventPopupAnswer(id,name,ans)
- if id == 0 then
- if ans== password then
- removepw(name)
- print (" <font color='#ffffff'> كلمة السرّ الصحيحة <font color='#009D9D'> "..name.." <font color='#ffffff'> ادخل")
- else
- players[name].try = players[name].try - 1
- ui.updateTextArea(6,"<font color='#009D9D'> "..players[name].try.." <font color='#ffffff'> : المحاولات المتبقية",name)
- popup(name)
- print (" <font color='#EB1D51'> "..ans.." <font color='#ffffff'> كلمة سرٍ خاطئة وكانت <font color='#009D9D'> "..name.." <font color='#ffffff'> ادخل ")
- if players[name].try > 0 then
- popup(name)
- end
- if players[name].try == 0 then
- ui.addPopup(0, 2, "<p align='center'> ↓ ادخِل كلمة السرّ هنا", name, 296, -2205, 217, true)
- players[name].txt = "!! انتهت جميع المحاولات"
- ui.updateTextArea(5,"<font color='#ffffff'>"..players[name].txt.."",name)
- end
- end
- end
- end
- table.foreach(tfm.get.room.playerList, eventNewPlayer)
- pw(name)
- tfm.exec.setUIMapName("رمــضاااان كريييييييم")
Advertisement
Add Comment
Please, Sign In to add comment