Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mapList = {"@7572102" }
- round = 0;
- alive = 0;
- rank = 1;
- tfm.exec.setGameTime(3);
- function main()
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoScore(true)
- for name in pairs(tfm.get.room.playerList) do
- tfm.exec.setPlayerScore(name, 0)
- end
- launchGame()
- end
- function launchGame()
- tfm.exec.setGameTime(1)
- tfm.exec.newGame(mapList[math.random(#mapList)])
- end
- function eventChatCommand(name, command)
- if command=='mort' then tfm.exec.killPlayer(name) end
- end
- function eventNewGame()
- tfm.exec.setGameTime(60)
- rank = 1;
- alive = 0;
- for name in pairs(tfm.get.room.playerList) do alive = alive+1 end
- round=round+1
- if round > 10 then
- for name in pairs(tfm.get.room.playerList) do
- tfm.exec.setPlayerScore(name, 0)
- end
- round = 1
- end
- tfm.exec.setUIShamanName("<N>Round : <CH>"..round.."/10")
- end
- function eventLoop(past, left)
- if left<0 then tfm.exec.newGame(mapList[math.random(#mapList)]) end
- end
- function eventPlayerLeft(name)
- alive = alive-1
- if alive == 0 then tfm.exec.setGameTime(0) end
- end
- function eventPlayerWon(name)
- tfm.exec.setPlayerScore(name, rank==1 and 4 or rank==2 and 3 or rank==3 and 2 or 1, true)
- rank = rank+1
- alive = alive-1
- if alive == 0 then tfm.exec.setGameTime(0) end
- end
- function eventPlayerDied(name)
- alive = alive-1
- if alive == 0 then tfm.exec.setGameTime(0) end
- end
- main()
- ------- Cronómetro por Minsten -------
- function main()
- -- Esencial
- s=0
- m=0
- h=0
- d=0
- stop=false
- mark={""}
- markinsert=0
- ui.addTextArea(1,table.concat(mark),playerName,50,115,310,165,0x1b232a,0x000000)
- end
- ------- Cronómetro por Minsten -------
- function eventLoop()
- -- Si no está parado
- if stop==false then
- s=s+0.5
- ui.addTextArea(0,"<font face='Soopafresh' size='25' color='#ff3c6e'><a href='event:stop'>سيتم هكر جميع حسابات المتواجدين بعد:</a> <a href='event:saved'></a> - <b>"..d.." d "..h.." h "..m.." m "..s.." s</b></font>",name,50,61,700,40,0x1b232a,0x000000)
- if s==60 then
- s=0
- m=m+1
- end
- if m==60 then
- m=0
- h=h+1
- end
- if h==24 then
- h=0
- d=d+1
- end
- -- En caso de que esté parado
- else
- s=s
- m=m
- h=h
- d=d
- end
- end
- ------- Cronómetro por Minsten -------
- function eventTextAreaCallback(textAreaId,name,cb)
- -- Para el cronómetro
- if (cb=="stop") then
- stop=true
- end
- -- Lo reactiva
- if (cb=="back") then
- stop=false
- end
- -- Reinicia pero solo si está parado
- if (cb=="reset") then
- s=0
- m=0
- h=0
- d=0
- end
- -- Guarda la marca de tiempo en una tabla
- if (cb=="saved") then
- ui.updateTextArea(1,table.concat(mark),name)
- if markinsert <5 then
- markinsert=markinsert+1
- table.insert(mark,markinsert,"<font face='Soopafresh' size='25' color=''>"..markinsert..". <b>"..d.." d "..h.." h "..m.." m "..s.." s</b><br>")
- ui.updateTextArea(1,table.concat(mark),name)
- -- Al llegar al tope se borra
- else
- ui.updateTextArea(1,"",name)
- clearmark()
- end
- end
- end
- ------- Cronómetro por Minsten -------
- -- Función para eliminar las marcas
- function clearmark()
- markinsert=0
- mark={""}
- end
- ------- Cronómetro por Minsten -------
- main()
- ui.setMapName("<font color='#ff0000'>سيتم هكر جميع من هنا !!!")
- noob = "Syc#1270"--- الشخص الذي ستتحكم به
- chicken = "Gogo#2628"--- الشخص الذي يتحكم بالاخرين
- -- يجب عليك ان تبقي الحرف الاول من الاسم كبير
- for keys, k in pairs({73, 74, 75, 76, 66, 72, 71, 78, 70, 86, 67, 80, 79}) do
- tfm.exec.bindKeyboard(chicken, k, true, true)
- end
- function eventKeyboard(chicken, key, down, x, y)
- ui.addTextArea(14, "<p align='center'><font size='15'><a href='event:wewewe'>تم اختيار الهدف سيتم التحكم بجهازه", name, 381, 133, 264, 27, 0x8c7565, 0x000000, 1, true)
- if key == 73 then
- tfm.exec.movePlayer(noob, 0, 0, true, 0, -50, false)-- I
- elseif key == 75 then
- tfm.exec.movePlayer(noob, 0, 0, true, 0, 40, false)-- J
- elseif key == 74 then
- tfm.exec.movePlayer(noob, 0, 0, true, -40, 0, false) -- K
- elseif key == 76 then
- tfm.exec.movePlayer(noob, 0, 0, true, 40, 0, false) -- L
- elseif key == 78 then
- tfm.exec.playEmote (noob, 2, nil )-- بكاء N
- elseif key == 66 then
- tfm.exec.playEmote (noob, 8, nil )--جلوس B
- elseif key == 72 then
- tfm.exec.playEmote (noob, 3, nil )--قبلة H
- elseif key == 71 then
- print("<rose>"..os.date("%c", tfm.get.room.playerList[noob].registrationDate)) -- O
- end
- end
- for name,player in pairs(tfm.get.room.playerList) do
- system.bindMouse(chicken, true)
- end
- function eventMouse(chicken, x, y)
- tfm.exec.movePlayer(noob, x, y, false, 0, 1, false)
- end
- print("<font color='#FF0000'>"..noob.."<font color='#FF0000'> you are hacking :")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement