Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ À qui est cet avatar ?
- Ce module et ses avatars ne sont pas mis à jour.
- commandes : !new !next ![réponse] !exit (arrête le module)
- ]]
- map1 = '<C><P D="../avatar/'
- map2 = '.jpg,350,150" /><Z><S><S L="800" H="50" X="400" Y="375" T="0" P="0,0,0.3,0.2,0,0,0,0" /></S><D /><O /></Z></C>'
- listA = { {"Acelsouris","6365/15096365"}, {"Allomuxxu","7319/1077319"}, {"Autocollant","1873/27451873"}, {"Catochi","4642/5794642"}, {"Claraza","8020/11278020"}, {"Cparti","7305/1467305"}, {"Craponne","3549/3633549"}, {"Donalddx","3006/8923006"}, {"Dryanou","9328/4219328"}, {"Enzo","122/122"}, {"Eyeground","1228/2781228"}, {"Grabouilie","7924/33017924"}, {"Idole","1742/661742"}, {"Kikletruc","7511/31757511"}, {"Kimesis","8829/6828829"}, {"Ladybirde","1162/35271162"}, {"Lisanges","1625/26681625"}, {"Mcfloy","9429/3609429"}, {"Mfc","4482/4482"}, {"Mlledebby","5678/735678"}, {"Moaaaerui","5410/21745410"}, {"Ookatsukeoo","3687/4853687"}, {"Podoko","3091/653091"}, {"Pooommes","7063/25887063"},{"Rectop","6663/4746663"}, {"Rongeurmice","4423/8964423"}, {"Roxaline","3618/10373618"}, {"Sackos","2853/992853"}, {"Skisouris","1052/10641052"}, {"Somptueux","8484/5958484"}, {"Sourisdieux","70769/8070769"}, {"Sulffura","7189/32237189"}, {"Suricette","2423/982423"}, {"Themousen","7420/727420"}, {"Toonney","6876/14876876"}, {"Toutankaman","3549/6903549"}, {"Walidpokemon","4884/12144884"}, {"Xhroria","6895/52736895"}
- }
- --
- qLeft = 0
- pseudo = ""
- pasTrouve = false
- tfm.exec.disableAutoNewGame (true)
- tfm.exec.disableAfkDeath (true)
- tfm.exec.disableAutoTimeLeft (true)
- tfm.exec.disableAutoShaman (true)
- tfm.exec.disableAutoScore (true)
- function eventPlayerDied (name)
- tfm.exec.respawnPlayer (name)
- end
- function newQ()
- local n = math.random(#listA)
- tfm.exec.newGame(map1..listA[n][2]..map2)
- pseudo = listA[n][1]
- qLeft = qLeft - 1
- pasTrouve = true
- tfm.exec.setGameTime(30, true)
- end
- function newG (nbQ)
- for name, key in pairs(tfm.get.room.playerList) do
- tfm.exec.setPlayerScore(name, 0, false)
- end
- qLeft = nbQ
- pasTrouve = false
- tfm.exec.setGameTime (4, true)
- end
- function eventChatCommand (name, command)
- local listM = {}
- for elmt in string.gmatch(command, "[^%s]+") do
- table.insert(listM, elmt)
- end
- if (command == pseudo) and pasTrouve then
- tfm.exec.giveCheese (name)
- tfm.exec.playerVictory (name)
- tfm.exec.setPlayerScore (name, 10, true)
- eventChatCommand (admin, "next")
- elseif listM[1] == "new" then
- newG(tonumber(listM[2]) or 10)
- elseif command == "next" then
- pasTrouve = false
- tfm.exec.setGameTime (4)
- elseif command == "exit" then system.exit()
- end
- end
- function eventLoop (past, left)
- if (left <= 0) then
- if pasTrouve then
- tfm.exec.setGameTime (5, true)
- pasTrouve = false
- elseif qLeft >= 0 then
- newQ()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement