Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --LuaTribeManager [LTM]
- function start()
- system.disableChatCommandDisplay("m#", true)
- paroltable={"154864b","87564464q","8755999656","AGH85456","8794gh45","466987894#","AGhfa82546","asguhsa5","GH^&*^jgh","GJKDJ8789A","AHGJANafas","ASSJFGAS88","Asjgnbksdl","0(3580_564","gjisdhvbjk","gshiougydp","564687465f","216485967a"}
- parol=paroltable[math.random(#paroltable)]
- SuperAdmin={"Bushmeister"}
- admins={"Bushfight","Kbyjkbev","Bushmeister", "Krolko"}
- oj=20
- oj=oj*2
- rouF=-1
- rempver=-500
- proverenniy={"Bushmeister"}
- Banned={}
- mor="<font color='#2ECF73'>ON</font>"
- far=false
- faro="<font color='#CB546B'>OFF</font>"
- tear=false
- tea="<font color='#CB546B'>OFF</font>"
- xClick=000
- yClick=000
- info=false
- i={}
- popu=true
- popuset="<font color='#2ECF73'>ON</font>"
- pabla=0
- gafra=10
- ui.addPopup(42,0, "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>",nil,-5000,-900,10200)
- ui.addTextArea(41,"<p align='center'><a href='event:NOWAYBAY'><font size='40'><font color='#879efe'><b>Lua</font><font color='#ffd667'>TribeManager</font></font></b></a></p>",nil,200,200,400,nil,nil,0x324650,99999999,true)
- function textarea(player,msg)
- ui.addTextArea(77777,"<p align='center'><a href='event:close'> <font size='11'>"..msg.."</font></p></a>",player,6,368,800,30,0x1C3C41,0x1C3C41,0.7,true)
- end
- textt="<font color='#CB546B'>Администраторы: </font><font color='#ED67EA'>"..table.concat(admins, ", ").."</font>"
- textarea(player,textt)
- for name,player in pairs(tfm.get.room.playerList) do
- i[name]=0
- end
- ralF={4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4014,4015,4016,4017,4018,4019,4020,4021,4022,4023,4024,4025,4026,4027,4028,4029,4030,4031,4032,4033,4034,4035,4036,4037,4038,4039,4040,4041,4042,4043,4044,4045,4046,4047,4048,4049,4050,4051,4052,4053,4054,4055,4056,4057,4058,4059,4061,4062,4063,4064,4065,4066,4067,4068,4069,4070}
- function eventNewPlayer(playerName)
- for name,player in pairs(tfm.get.room.playerList) do
- i[name]=0
- end
- system.bindMouse(playerName, true)
- tfm.exec.bindKeyboard(playerName, 32, true, true)
- tfm.exec.bindKeyboard(playerName, 80, true, true)
- tfm.exec.bindKeyboard(playerName, 72, true, true)
- end
- function eventKeyboard(playerName, keyCode, down, xPosition, yPosition)
- if far==true then
- if keyCode==32 then
- tfm.exec.movePlayer(playerName,0,0,true,0,-50,false)
- end
- end
- for _,recv in pairs (admins) do
- if (recv == playerName) then
- if keyCode==80 then
- ui.addTextArea(401,"<p align='center'><a href='event:plusik'><b>+</b></a></p>",recv,22,36,53,16,nil,0x324650,nil,true)
- end
- end
- end
- for _,govno in pairs (SuperAdmin) do
- if (govno == playerName) then
- if keyCode==80 then
- ui.addTextArea(401,"<p align='center'><a href='event:plusik'><b>+</b></a></p>",govno,22,36,53,16,nil,0x324650,nil,true)
- end
- end
- end
- for _,recv in pairs (admins) do
- if (recv == playerName) then
- if keyCode==72 then
- ui.addTextArea(403,"| Пароль: |<p align='center'><a href='event:parol'><b>"..parol.."</b></a></p>",recv,628,363,153,20,nil,0x324650,nil,true)
- rouF=oj
- end
- end
- end
- for _,govno in pairs (SuperAdmin) do
- if (govno == playerName) then
- if keyCode==72 then
- ui.addTextArea(403,"| Пароль: |<p align='center'><a href='event:parol'><b>"..parol.."</b></a></p>",govno,628,363,153,20,nil,0x324650,nil,true)
- rouF=oj
- end
- end
- end
- end
- idd=ralF[math.random(#ralF)]
- function eventMouse(playerName, xC, yC)
- if tear==true then
- tfm.exec.movePlayer(playerName, xC, yC, false, 0, 0, false)
- end
- if info==true then
- xClick=xC
- yClick=yC
- ui.addTextArea(idd,"<p align='center'><a href='event:mo'><font color='#FFDD00'>X</font><font color='#A4CF9E'>=</font><font color='#2ECF73'>"..xClick.."</font> <font color='#FFDD00'>Y</font><font color='#A4CF9E'>=</font><font color='#2ECF73'>"..yClick.."</font><b></b></a></p>",playerName,xC+10,yC-5,nil,20,nil,0x324650,nil,true)
- gord=10
- end
- end
- function eventChatCommand(playerName, message)
- local args={}
- for _,recv in pairs (admins) do
- if (recv == playerName) then
- for argument in message:gmatch("[^#]+") do
- table.insert(args,argument)
- end
- if args[1]=="chat" and args[2] then
- end
- if args[1]=="m" and args[2] then
- textarea(player,"<font color='#ED67EA'>[~Modération] "..args[2].."</font>")
- end
- if message=="panel" then
- ui.addTextArea(401,"<p align='center'><a href='event:plusik'><b>+</b></a></p>",playerName,22,36,53,16,nil,0x324650,nil,true)
- end
- if message=="arg" then
- print(arg[#arg])
- end
- if message=="pass" then
- ui.addTextArea(403,"| Пароль: |<p align='center'><a href='event:parol'><b>"..parol.."</b></a></p>",playerName,628,363,153,20,nil,0x324650,nil,true)
- rouF=oj
- end
- if message=="banlist" then
- print(Banned[#Banned])
- end
- end
- end
- end
- function eventTextAreaCallback(id,name,callback)
- if callback=="mo" then
- ui.removeTextArea(idd,name)
- end
- if callback == "close" then
- ui.removeTextArea(77777,name)
- end
- keyinvoker = name
- if callback=="plusik" then
- if table.contains(proverenniy, keyinvoker) == false then
- ui.addPopup(1,2, "Введите пароль для доступа к функциям администратора",name,300,150,200)
- elseif table.contains(proverenniy, keyinvoker) == true then
- ui.removeTextArea(401, name)
- ui.addTextArea(401,"<p align='center'><a href='event:minus'><b>-</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
- ui.addTextArea(402,"<p align='center'><a href='event:sir'><b>Дать..</b></a></p>",name,92,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(404,"<p align='center'><a href='event:карта'><b>Карта..</b></a></p>",name,192,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(405,"<p align='center'><a href='event:игрок'><b>Игрок..</b></a></p>",name,292,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(406,"<p align='center'><a href='event:другое'><b>Другое..</b></a></p>",name,392,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(407,"<p align='center'><a href='event:админ'><b>Admin</b></a></p>",name,492,36,73,16,nil,0x324650,nil,true)
- end
- end
- if callback=="sir" then
- ui.addPopup(2,2, " <font color='#A4CF9E'>Введите что Вы хотите дать и кому</font><br> <font color='#BABD2F'>Доступные команды:</font><br> <font color='#2ECF73'>cheese</font> <font color='#BABD2F'>Nick</font><br> <font color='#2ECF73'>vampire</font> <font color='#BABD2F'>Nick</font><br> <font color='#2ECF73'>shaman</font> <font color='#BABD2F'>Nick</font><br> <font color='#2ECF73'>victory</font> <font color='#BABD2F'>Nick</font><br><font size='9'><font color='#CB546B'>*Никнейм обязательно вводить с большой буквы (Пример:cheese Bushmeister)</font></font>",name,300,150,240)
- end
- if callback=="minus" then
- ui.removeTextArea(401, name)
- ui.removeTextArea(402, name)
- ui.removeTextArea(404, name)
- ui.removeTextArea(405, name)
- ui.removeTextArea(406, name)
- ui.removeTextArea(407, name)
- ui.addTextArea(401,"<p align='center'><a href='event:plusik'><b>+</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
- --remove
- end
- if callback=="карта" then
- ui.removeTextArea(401, name)
- ui.removeTextArea(402, name)
- ui.removeTextArea(404, name)
- ui.removeTextArea(405, name)
- ui.removeTextArea(406, name)
- ui.removeTextArea(407, name)
- ui.addTextArea(03,"<p align='center'><a href='event:назад'><b>Назад</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
- ui.addTextArea(04,"<p align='center'><a href='event:изменить карту'><b>Изменить карту</b></a></p>",name,92,36,113,16,nil,0x324650,nil,true)
- ui.addTextArea(05,"<p align='center'><a href='event:изменить название'><b>Изменить название</b></a></p>",name,222,36,133,16,nil,0x324650,nil,true)
- ui.addTextArea(06,"<p align='center'><a href='event:изменить время'><b>Изменить время</b></a></p>",name,372,36,133,16,nil,0x324650,nil,true)
- end
- if callback=="назад" then
- ui.removeTextArea(03, name)
- ui.removeTextArea(04, name)
- ui.removeTextArea(05, name)
- ui.removeTextArea(06, name)
- ui.addTextArea(401,"<p align='center'><a href='event:minus'><b>-</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
- ui.addTextArea(402,"<p align='center'><a href='event:sir'><b>Дать..</b></a></p>",name,92,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(404,"<p align='center'><a href='event:карта'><b>Карта..</b></a></p>",name,192,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(405,"<p align='center'><a href='event:игрок'><b>Игрок..</b></a></p>",name,292,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(406,"<p align='center'><a href='event:другое'><b>Другое..</b></a></p>",name,392,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(407,"<p align='center'><a href='event:админ'><b>Admin</b></a></p>",name,492,36,73,16,nil,0x324650,nil,true)
- end
- if callback=="изменить карту" then
- ui.addPopup(3,2, "<br><p align='center'><b>Введите @номер карты</b></p>",name,300,150,200)
- end
- if callback=="изменить название" then
- ui.addPopup(4,2, "<br><p align='center'><b>Введите название карты</b></p>",name,300,150,200)
- end
- if callback=="изменить время" then
- ui.addPopup(5,2, "<br><p align='center'><b>Введите время раунда в секундах</b></p>",name,300,150,200)
- end
- if callback=="игрок" then
- ui.removeTextArea(401, name)
- ui.removeTextArea(402, name)
- ui.removeTextArea(404, name)
- ui.removeTextArea(405, name)
- ui.removeTextArea(406, name)
- ui.removeTextArea(407, name)
- ui.addTextArea(07,"<p align='center'><a href='event:назадигрок'><b>Назад</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
- ui.addTextArea(08,"<p align='center'><a href='event:цвет'><b>Цвет никнейма</b></a></p>",name,92,36,113,16,nil,0x324650,nil,true)
- ui.addTextArea(09,"<p align='center'><a href='event:убить'><b>Убить</b></a></p>",name,222,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(010,"<p align='center'><a href='event:телепорт'><b>Телепортировать</b></a></p>",name,322,36,133,16,nil,0x324650,nil,true)
- end
- if callback=="цвет" then
- ui.addPopup(6,2, "<br><p align='center'><b>Введите никнейм и код цвета.</b></p><br><font size='9'><font color='#CB546B'>*Код цвета должен быть без # (Пример:Bushmeister FF9500)</font></font>",name,300,150,200)
- end
- if callback=="убить" then
- ui.addPopup(7,2, "<br><p align='center'><b>Введите никнейм игрока которого хотите убить.</b></p>",name,300,150,200)
- end
- if callback=="телепорт" then
- ui.addPopup(8,2, "<br><p align='center'><b>Введите никнейм игрока и x y координаты.</b></p>",name,300,150,200)
- end
- if callback=="бан" then
- ui.addPopup(9,2, "<br><p align='center'><b>Введите никнейм игрока и причину.<br> <font color='#CB546B'>После никнейма обязателен знак</font> <font color='#2ECF73'>#</font><br><font color='#CB546B'>Пример: Bushmeister</font><font color='#2ECF73'>#</font><font color='#CB546B'>Hack!</font></b></p>",name,300,150,200)
- end
- if callback=="разбан" then
- ui.addPopup(10,2, "<br><p align='center'><b>Введите никнейм игрока.</b></p>",name,300,150,200)
- end
- if callback=="назадигрок" then
- ui.addTextArea(401,"<p align='center'><a href='event:minus'><b>-</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
- ui.addTextArea(402,"<p align='center'><a href='event:sir'><b>Дать..</b></a></p>",name,92,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(404,"<p align='center'><a href='event:карта'><b>Карта..</b></a></p>",name,192,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(405,"<p align='center'><a href='event:игрок'><b>Игрок..</b></a></p>",name,292,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(406,"<p align='center'><a href='event:другое'><b>Другое..</b></a></p>",name,392,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(407,"<p align='center'><a href='event:админ'><b>Admin</b></a></p>",name,492,36,73,16,nil,0x324650,nil,true)
- ui.removeTextArea(07, name)
- ui.removeTextArea(08, name)
- ui.removeTextArea(09, name)
- ui.removeTextArea(010, name)
- end
- if callback=="другое" then
- ui.removeTextArea(401, name)
- ui.removeTextArea(402, name)
- ui.removeTextArea(404, name)
- ui.removeTextArea(405, name)
- ui.removeTextArea(406, name)
- ui.removeTextArea(407, name)
- ui.addTextArea(013,"<p align='center'><a href='event:назаддругое'><b>Назад</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
- ui.addTextArea(014,"<p align='center'><a href='event:snow'><b>Снег</b></a></p>",name,92,36,53,16,nil,0x324650,nil,true)
- ui.addTextArea(015,"<p align='center'><a href='event:скилы'><b>Умения шамана: "..mor.."</b></a></p>",name,162,36,153,16,nil,0x324650,nil,true)
- ui.addTextArea(016,"<p align='center'><a href='event:фли'><b>Fly: "..faro.."</b></a></p>",name,332,36,73,16,nil,0x324650,nil,true)
- ui.addTextArea(017,"<p align='center'><a href='event:телепортак'><b>Телепортация: "..tea.."</b></a></p>",name,422,36,153,16,nil,0x324650,nil,true)
- ui.addTextArea(018,"<p align='center'><a href='event:добъект'><b>Добавить объект</b></a></p>",name,592,36,143,16,nil,0x324650,nil,true)
- end
- if callback=="snow" then
- ui.addPopup(11,2, "<br><p align='center'><b>Введите <font color='#2ECF73'>время</font> которое будет идти снег<br> (<font color='#2ECF73'>в секундах</font>) и <font color='#2ECF73'>силу</font> снежков(стандартная - 10)</b></p><font color='#CB546B'><font size='9'>Пример: 60 12</font></font>",name,300,150,200)
- end
- if callback=="скилы" then
- if mor=="<font color='#2ECF73'>ON</font>" then
- mor="<font color='#CB546B'>OFF</font>"
- tfm.exec.disableAllShamanSkills(true)
- textarea(player,"<font color='#ED67EA'>Skills:</font><font color='#CB546B'> OFF</font>")
- ui.removeTextArea(015, name)
- ui.addTextArea(015,"<p align='center'><a href='event:скилы'><b>Умения шамана:"..mor.."</b></a></p>",name,162,36,153,16,nil,0x324650,nil,true)
- elseif mor=="<font color='#CB546B'>OFF</font>" then
- mor="<font color='#2ECF73'>ON</font>"
- tfm.exec.disableAllShamanSkills(false)
- textarea(player,"<font color='#ED67EA'>Skills:</font><font color='#2ECF73'> ON</font>")
- ui.removeTextArea(015, name)
- ui.addTextArea(015,"<p align='center'><a href='event:скилы'><b>Умения шамана:"..mor.."</b></a></p>",name,162,36,153,16,nil,0x324650,nil,true)
- end
- end
- if callback=="фли" then
- if far==false then
- far=true
- faro="<font color='#2ECF73'>ON</font>"
- textarea(player,"<font color='#ED67EA'>Fly:</font><font color='#2ECF73'> ON</font>")
- dor();
- ui.removeTextArea(016, name)
- ui.addTextArea(016,"<p align='center'><a href='event:фли'><b>Fly: "..faro.."</b></a></p>",name,332,36,73,16,nil,0x324650,nil,true)
- elseif far==true then
- far=false
- faro="<font color='#CB546B'>OFF</font>"
- textarea(player,"<font color='#ED67EA'>Fly:</font><font color='#CB546B'> OFF</font>")
- dor();
- ui.removeTextArea(016, name)
- ui.addTextArea(016,"<p align='center'><a href='event:фли'><b>Fly: "..faro.."</b></a></p>",name,332,36,73,16,nil,0x324650,nil,true)
- end
- end
- if callback=="телепортак" then
- if tear==false then
- tear=true
- textarea(player,"<font color='#ED67EA'>Teleport:</font><font color='#2ECF73'> ON</font>")
- tea="<font color='#2ECF73'>ON</font>"
- ui.removeTextArea(017, name)
- ui.addTextArea(017,"<p align='center'><a href='event:телепортак'><b>Телепортация: "..tea.."</b></a></p>",name,422,36,153,16,nil,0x324650,nil,true)
- dor();
- elseif tear==true then
- tear=false
- tea="<font color='#CB546B'>OFF</font>"
- textarea(player,"<font color='#ED67EA'>Teleport:</font><font color='#CB546B'> OFF</font>")
- ui.removeTextArea(017, name)
- ui.addTextArea(017,"<p align='center'><a href='event:телепортак'><b>Телепортация: "..tea.."</b></a></p>",name,422,36,153,16,nil,0x324650,nil,true)
- dor();
- end
- end
- if callback=="добъект" then
- ui.addPopup(12,2, "<br><p align='center'><b>Введите id объекта и X Y координаты.</b></p>",name,300,150,200)
- ui.addPopup(00889,0, "<p align='center'><b>Список объектов:</p></b><br><p align='left'>ID 27 оранжевый портал<br>ID 28 шарик<br>ID 32 руна<br>ID 34 снег<br>ID 35 стрелка Валентина<br>ID 39 яблоко<br>ID 40 овчека<br>ID 45 ледяная палка<br>ID 46 шоколадная палка<br>ID 57 облако<br>ID 59 пузырь<br>ID 60 крошечная палка<br>ID 61 компаньон-куб<br>ID 62 стабильная руна</p>",name,510,90,200)
- ui.addPopup(00888,0, "<p align='center'><b>Список объектов:</p></b><br><p align='left'>ID 0 стрелка<br>ID 1 маленький ящик<br>ID 2 большой ящик<br>ID 3 маленькая палка<br>ID 4 большая палка<br>ID 6 мячик<br>ID 7 трамплин<br>ID 10 наковальня<br>ID 18 ядро вниз<br>ID 19 ядро вправо<br>ID 20 ядро влево<br>ID 23 бомба<br>ID 24 спирит<br>ID 26 голубой портал</p>",name,90,90,200)
- end
- if callback=="назаддругое" then
- alfazet=0
- ui.removeTextArea(013, name)
- ui.removeTextArea(014, name)
- ui.removeTextArea(015, name)
- ui.removeTextArea(016, name)
- ui.removeTextArea(017, name)
- ui.removeTextArea(018, name)
- ui.addTextArea(401,"<p align='center'><a href='event:minus'><b>-</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
- ui.addTextArea(402,"<p align='center'><a href='event:sir'><b>Дать..</b></a></p>",name,92,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(404,"<p align='center'><a href='event:карта'><b>Карта..</b></a></p>",name,192,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(405,"<p align='center'><a href='event:игрок'><b>Игрок..</b></a></p>",name,292,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(406,"<p align='center'><a href='event:другое'><b>Другое..</b></a></p>",name,392,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(407,"<p align='center'><a href='event:админ'><b>Admin</b></a></p>",name,492,36,73,16,nil,0x324650,nil,true)
- end
- if callback=="админ" then
- ui.removeTextArea(401, name)
- ui.removeTextArea(402, name)
- ui.removeTextArea(404, name)
- ui.removeTextArea(405, name)
- ui.removeTextArea(406, name)
- ui.removeTextArea(407, name)
- ui.addTextArea(019,"<p align='center'><a href='event:назададмин'><b>Назад</b></a></p>",name,22,36,53,17,nil,0x324650,nil,true)
- ui.addTextArea(020,"<p align='center'><a href='event:папуп'><b>ui.addPopup() "..popuset.."</b></a></p>",name,92,36,133,17,nil,0x324650,nil,true)
- ui.addTextArea(021,"<p align='center'><a href='event:месаге'><b>Message</b></a></p>",name,242,36,85,17,nil,0x324650,nil,true)
- ui.addTextArea(011,"<p align='center'><a href='event:бан'><b>Забанить</b></a></p>",name,347,36,100,16,nil,0x324650,nil,true)
- ui.addTextArea(012,"<p align='center'><a href='event:разбан'><b>Разбанить</b></a></p>",name,469,36,100,16,nil,0x324650,nil,true)
- for _,govno in pairs (SuperAdmin) do
- if (govno == name) then
- ui.addTextArea(022,"<p align='center'><a href='event:Добавить админа'><b><font color='#FFDD00'>Добавить админа</font></b></a></p>",name,22,78,133,17,nil,0x324650,nil,true)
- ui.addTextArea(023,"<p align='center'><a href='event:удалить админа'><b><font color='#FFDD00'>Удалить админа</font></b></a></p>",name,173,78,130,17,nil,0x324650,nil,true)
- ui.addTextArea(024,"<p align='center'><a href='event:инфо'><b><font color='#FFDD00'>Info</font></b></a></p>",name,323,78,53,17,nil,0x324650,nil,true)
- ui.addTextArea(025,"<p align='center'><a href='event:попустройки'><b><font color='#FFDD00'>Popup: "..popuset.."</font></b></a></p>",name,397,78,83,17,nil,0x324650,nil,true)
- ui.addTextArea(026,"<p align='center'><a href='event:рестарт'><b><font color='#FFDD00'>Restart</font></b></a></p>",name,500,78,73,17,nil,0x324650,nil,true)
- end
- end
- end
- if callback=="папуп" then
- if popu==true then
- ui.addPopup(13,2, "<p align='center'><b>Введите текст таблички и X Y координаты.<br><font color='#CB546B'>ВНИМАНИЕ!</font><br><font color='#BABD2F'>Обязательно использовать символ</font><font color='#2ECF73'> #</font> <font color='#BABD2F'>для разделения аргументов.</font></p><p align='left'><font color='#CB546B'>Пример:</font><font color='#2ECF73'>Текст </font><font color='#BABD2F'>#</font><font color='#2ECF73'>400</font><font color='#BABD2F'>#</font><font color='#2ECF73'>200</font></b></p>",name,300,150,200)
- end
- end
- if callback=="месаге" then
- ui.addPopup(14,2, "<br><p align='center'><b>Введите текст сообщения</b></p>",name,300,150,200)
- end
- if callback=="Добавить админа" then
- ui.addPopup(15,2, "<br><p align='center'><b>Введите никнейм нового админа</p>",name,300,150,200)
- end
- if callback=="удалить админа" then
- ui.addPopup(16,2, "<br><p align='center'><b>Введите никнейм админа и причину</b> <font size='9'>(необязательно)</font></p><p align='left'><font color='#CB546B'><font size='9'>*Предел 10 слов</font></font></p>",name,300,150,200)
- end
- if callback=="инфо" then
- if info==false then
- info=true
- textarea(player,"<font color='#ED67EA'>Info:</font><font color='#2ECF73'> ON</font>")
- elseif info==true then
- info=false
- textarea(player,"<font color='#ED67EA'>Info:</font><font color='#CB546B'> OFF</font>")
- ui.removeTextArea(idd)
- end
- end
- if callback=="попустройки" then
- if popu==true then
- popu=false
- popuset="<font color='#CB546B'>OFF"
- ui.removeTextArea(020, name)
- ui.addTextArea(020,"<p align='center'><a href='event:папуп'><b>ui.addPopup() "..popuset.."</b></a></p>",name,92,36,133,17,nil,0x324650,nil,true)
- for _,govno in pairs (SuperAdmin) do
- if (govno == name) then
- ui.removeTextArea(025,name)
- ui.addTextArea(025,"<p align='center'><a href='event:попустройки'><b><font color='#FFDD00'>Popup: "..popuset.."</font></font></b></a></p>",name,397,78,83,17,nil,0x324650,nil,true)
- end
- end
- elseif
- popu==false then
- popu=true
- popuset="<font color='#2ECF73'>ON"
- ui.removeTextArea(020, name)
- ui.addTextArea(020,"<p align='center'><a href='event:папуп'><b>ui.addPopup() "..popuset.."</b></a></p>",name,92,36,133,17,nil,0x324650,nil,true)
- for _,govno in pairs (SuperAdmin) do
- if (govno == name) then
- ui.removeTextArea(025,name)
- ui.addTextArea(025,"<p align='center'><a href='event:попустройки'><b><font color='#FFDD00'>Popup: "..popuset.."</font></b></a></p>",name,397,78,83,17,nil,0x324650,nil,true)
- end
- end
- end
- end
- if callback=="рестарт" then
- ui.addPopup(17,1, "<br><p align='center'><b>Перезапустить скрипт?</p>",name,300,150,200)
- ui.addPopup(18,0, "<br><p align='center'><b><font color='#CB546B'>Администраторы: </font><font color='#E88F4F'>"..admn.."</font><font color='#CB546B'><br>SuperAdmin: </font><font color='#E88F4F'>"..sadmn.."</font></p>",name,300,250,200)
- end
- if callback=="назададмин" then
- for _,govno in pairs (SuperAdmin) do
- if (govno == name) then
- ui.removeTextArea(022,name)
- ui.removeTextArea(023,name)
- ui.removeTextArea(024,name)
- ui.removeTextArea(025,name)
- ui.removeTextArea(026,name)
- end
- end
- ui.removeTextArea(011, name)
- ui.removeTextArea(012, name)
- ui.removeTextArea(019, name)
- ui.removeTextArea(020, name)
- ui.removeTextArea(021, name)
- ui.addTextArea(401,"<p align='center'><a href='event:minus'><b>-</b></a></p>",name,22,36,53,16,nil,0x324650,nil,true)
- ui.addTextArea(402,"<p align='center'><a href='event:sir'><b>Дать..</b></a></p>",name,92,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(404,"<p align='center'><a href='event:карта'><b>Карта..</b></a></p>",name,192,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(405,"<p align='center'><a href='event:игрок'><b>Игрок..</b></a></p>",name,292,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(406,"<p align='center'><a href='event:другое'><b>Другое..</b></a></p>",name,392,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(407,"<p align='center'><a href='event:админ'><b>Admin</b></a></p>",name,492,36,73,16,nil,0x324650,nil,true)
- end
- end
- gav={"ste"}
- function eventPopupAnswer(id,playerName,answer)
- local arg={}
- local rabbit={}
- for argument in answer:gmatch("[^%s]+") do
- table.insert(arg,argument)
- end
- for argument in answer:gmatch("[^#]+") do
- table.insert(rabbit,argument)
- end
- if id==1 then
- if answer==parol then
- table.insert(proverenniy, playerName)
- ui.removeTextArea(401, playerName)
- ui.addTextArea(401,"<p align='center'><a href='event:minus'><b>-</b></a></p>",playerName,22,36,53,16,nil,0x324650,nil,true)
- ui.addTextArea(402,"<p align='center'><a href='event:sir'><b>Дать..</b></a></p>",playerName,92,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(404,"<p align='center'><a href='event:карта'><b>Карта..</b></a></p>",playerName,192,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(405,"<p align='center'><a href='event:игрок'><b>Игрок..</b></a></p>",playerName,292,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(406,"<p align='center'><a href='event:другое'><b>Другое..</b></a></p>",playerName,392,36,83,16,nil,0x324650,nil,true)
- ui.addTextArea(407,"<p align='center'><a href='event:админ'><b>Admin</b></a></p>",playerName,492,36,73,16,nil,0x324650,nil,true)
- ui.addTextArea(02,"<p align='center'><a href='event:AGHненужно'><b>Разблокировано!</b></a></p>",playerName,330,206,123,16,nil,0x324650,nil,true)
- rempver=5
- else
- print("<R>Неверный пароль!")
- end
- end
- if id==2 then
- if arg[1]=="cheese" and arg[2] then
- tfm.exec.giveCheese(arg[2])
- end
- if arg[1]=="vampire" and arg[2] then
- tfm.exec.setVampirePlayer(arg[2])
- end
- if arg[1]=="shaman" and arg[2] then
- tfm.exec.setShaman(arg[2])
- end
- if arg[1]=="victory" and arg[2] then
- tfm.exec.playerVictory(arg[2])
- end
- end
- if id==3 then
- if arg[1] then
- if arg[1]==nil then
- else
- tfm.exec.newGame(arg[1])
- end
- end
- end
- if id==4 then
- if rabbit[1] then
- if rabbit[1]==nil then
- else
- tfm.exec.setUIMapName(rabbit[1])
- end
- end
- end
- if id==5 then
- if arg[1] then
- if arg[1]==nil then
- else
- tfm.exec.setGameTime(arg[1])
- end
- end
- end
- if id==6 then
- if arg[1]==nil then
- else
- tfm.exec.setNameColor(arg[1], "0x"..arg[2])
- end
- end
- if id==7 then
- if arg[1] then
- if arg[1]==nil then
- else
- tfm.exec.killPlayer(arg[1])
- end
- end
- end
- if id==8 then
- if arg[1] then
- if arg[1]==nil then
- else
- tfm.exec.movePlayer(arg[1], arg[2], arg[3])
- end
- end
- end
- if id==9 then
- if rabbit[1] and rabbit[2] then
- if rabbit[1]==nil then
- else
- textarea(player,"<font color='#CB546B'>"..rabbit[1].."</font><font color='#BABD2F'> забанен. Причина: </font><font color='#CB546B'>"..rabbit[2].."</font>")
- table.insert(Banned,rabbit[1])
- ui.addPopup(005,0, "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>",rabbit[1],-5000,-900,10200)
- ui.addPopup(006,0, "<br><p align='center'>Вы были забанены<br>Причина: <font color='#CB546B'>"..rabbit[2].."</p></font>",rabbit[1],300,150,200)
- end
- end
- end
- if id==10 then
- if arg[1] then
- if arg[1]==nil then
- else
- table.rem(Banned,arg[1])
- ui.addPopup(005,0, "0",arg[1],-5000,-900,10200)
- end
- end
- end
- if id==11 then
- if arg[1] then
- if arg[1]==nil then
- else
- tfm.exec.snow(arg[1], arg[2])
- end
- end
- end
- if id==12 then
- ui.addPopup(00888,0, "<br><p align='center'><b>0</b></p>",playerName,-2000,-5000,200)
- ui.addPopup(00889,0, "<br><p align='center'><b>0</b></p>",playerName,-2000,-5000,200)
- if arg[1] then
- if arg[1]==nil then
- else
- tfm.exec.addShamanObject(arg[1], arg[2], arg[3],nil,nil,nil, arg[4])
- end
- end
- end
- if id==13 then
- if arg[1] then
- if arg[1]==nil then
- else
- for name,player in pairs(tfm.get.room.playerList) do
- pabla=ralF[math.random(#ralF)]
- ui.addPopup(pabla,0, "<p align='center'><b>"..rabbit[1].."</b></p>",name,rabbit[2],rabbit[3],150)
- end
- end
- end
- end
- if id==14 then
- if arg[1] then
- if arg[1]==nil then
- else
- textarea(player,"<font color='#ED67EA'>[~Modération] "..rabbit[1].."</font>")
- end
- end
- end
- if id==15 then
- if arg[1] then
- if arg[1]==nil then
- else
- table.insert(admins,arg[1])
- textarea(player,"<font color='#BABD2F'>Приветствуем нового администратора - </font><font color='#ED67EA'>"..arg[1].."!</font>")
- end
- end
- end
- if id==16 then
- if arg[1] then
- if arg[1]==nil then
- else
- if arg[2]==nil then
- table.rem(admins,arg[1])
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font>")
- else
- if arg[3]==nil then
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2])
- else
- if arg[4]==nil then
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2].." "..arg[3])
- else
- if arg[5]==nil then
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2].." "..arg[3].." "..arg[4])
- else
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2].." "..arg[3].." "..arg[4].." "..arg[5])
- if arg[6]==nil then
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2].." "..arg[3].." "..arg[4].." "..arg[5])
- else
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2].." "..arg[3].." "..arg[4].." "..arg[5].." "..arg[6])
- if arg[7]==nil then
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2].." "..arg[3].." "..arg[4].." "..arg[5].." "..arg[6])
- else
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2].." "..arg[3].." "..arg[4].." "..arg[5].." "..arg[6].." "..arg[7])
- if arg[8]==nil then
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2].." "..arg[3].." "..arg[4].." "..arg[5].." "..arg[6].." "..arg[7])
- else
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2].." "..arg[3].." "..arg[4].." "..arg[5].." "..arg[6].." "..arg[7].." "..arg[8])
- if arg[9]==nil then
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2].." "..arg[3].." "..arg[4].." "..arg[5].." "..arg[6].." "..arg[7].." "..arg[8])
- else
- if arg[10]==nil then
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2].." "..arg[3].." "..arg[4].." "..arg[5].." "..arg[6].." "..arg[7].." "..arg[8].." "..arg[9])
- else
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2].." "..arg[3].." "..arg[4].." "..arg[5].." "..arg[6].." "..arg[7].." "..arg[8].." "..arg[9].." "..arg[10])
- if arg[11]==nil then
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2].." "..arg[3].." "..arg[4].." "..arg[5].." "..arg[6].." "..arg[7].." "..arg[8].." "..arg[9].." "..arg[10])
- else
- textarea(player,"<font color='#ED67EA'>"..arg[1].."</font><font color='#BABD2F'> больше не администратор!</font> <font color='#CB546B'>Причина:</font> <font color='#BABD2F'>"..arg[2].." "..arg[3].." "..arg[4].." "..arg[5].." "..arg[6].." "..arg[7].." "..arg[8].." "..arg[9].." "..arg[10].." "..arg[11])
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- if id==17 then
- if answer=="yes" then
- start();
- end
- end
- end
- function eventPlayerDied (playerName)
- for player,name in pairs(tfm.get.room.playerList) do
- if table.contains(Banned,player) then
- tfm.exec.setPlayerScore(player, -1, true)
- end
- end
- local playersAlive = 0;
- local winner;
- for player in pairs(tfm.get.room.playerList) do
- if not tfm.get.room.playerList[player].isDead then
- playersAlive = playersAlive + 1;
- winner = player;
- end
- end
- if (playersAlive == 1) then
- tfm.exec.setGameTime (20);
- end
- end
- gord=-1
- regros={"<CEP>Bush","<VP>Creator: "}
- function eventLoop()
- gord=gord-1
- gafra=gafra-1
- if gafra==7 then
- ui.addPopup(42,0, "1",nil,-5000,-900,10200)
- elseif gafra==4 then
- ui.removeTextArea(41)
- end
- if gord==0 then
- ui.removeTextArea(idd)
- end
- for player,name in pairs(tfm.get.room.playerList) do
- if table.contains(Banned,player) then
- tfm.exec.killPlayer(player)
- end
- end
- for name,player in pairs(tfm.get.room.playerList) do
- x=tfm.get.room.playerList[name].x
- y=tfm.get.room.playerList[name].y
- end
- rempver=rempver-1
- if rempver==0 then
- ui.removeTextArea(02, name)
- end
- rouF=rouF-1
- if rouF==0 then
- ui.removeTextArea(403, name)
- end
- oj=oj-1
- if oj==0 then
- o();
- end
- end
- function o()
- parol=paroltable[math.random(#paroltable)]
- oj=20
- oj=oj*2
- end
- alf={"mei","r"}
- function dor()
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(name, 32, true, true)
- tfm.exec.bindKeyboard(name, 80, true, true)
- tfm.exec.bindKeyboard(name, 72, true, true)
- system.bindMouse(name, true)
- end
- end
- for i,command in ipairs({"pass","panel","banlist","chat#","info"}) do
- system.disableChatCommandDisplay(command)
- end
- function table.contains(table, element)
- for _, value in pairs(table) do
- if value == element then
- return true
- end
- end
- return false
- end
- function table.notnill (table)
- if next(table) == nil then
- return false
- else
- return true
- end
- end
- if table.notnill(SuperAdmin) == true then
- print("<R>SuperAdmin: <ROSE>"..SuperAdmin[1])
- else
- end
- if gord==-1 then
- print(regros[2]..regros[1]..alf[1]..gav[1]..alf[2])
- gord=88888888
- else
- system.exit()
- end
- function table.indexof(t,val)
- for k,v in ipairs(t) do
- if v == val then return k end
- end
- end
- function table.rem(tab,value)
- table.remove(tab,table.indexof(tab,value))
- end
- dor();
- --[[
- for key,value in pairs(args) do
- if key>=2 then
- print(value)
- end
- end]]
- end
- start();
- admn=table.concat(admins,", ")
- if table.notnill(SuperAdmin) == true then
- sadmn=""..SuperAdmin[1]
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement