Advertisement
wassimevicw

gourmon

Mar 7th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.15 KB | None | 0 0
  1. -----------by gourmon protège le trou de souris!------------------
  2.  
  3. tfm.exec.disableMortCommand ()
  4. tfm.exec.disableAfkDeath()
  5. tfm.exec.disableAutoNewGame()
  6. tfm.exec.disableAutoShaman()
  7. tfm.exec.newGame (7394988)
  8.  
  9. function eventNewGame()
  10.   Team_blue={}
  11.   Team_red={}
  12.  
  13. table.insert(Team_blue,n)
  14.   a="blue"
  15.   for n in pairs(tfm.get.room.playerList) do
  16.       if a == "blue" then
  17.           a="red"
  18.          table.insert(Team_red,n)
  19.             elseif a == "red" then
  20.           a="blue"
  21.       end
  22.   end
  23.   for i,n in pairs(Team_blue) do
  24.   tfm.exec.setNameColor(Team_blue,0xFF8000)
  25.   tfm.exec.movePlayer(n,400, 200,offset,0,0,offset)
  26.   end
  27.  
  28.   for i,n in pairs(Team_red) do
  29.   tfm.exec.setNameColor(Team_red,0x000000)
  30.   tfm.exec.movePlayer(n,400, 200,offset,0,0,offset)
  31.   end
  32.  
  33. tfm.exec.setNameColor(Team_red,0x000000)
  34. tfm.exec.setNameColor(Team_blue,0xFF8000)
  35.  
  36.  
  37. tfm.exec.setUIMapName("Protège le trou de souris /V Devlop |By gourmon ".."@7394988")
  38. tfm.exec.setGameTime(300, init)
  39. end
  40.  
  41. function eventLoop(elapsed, restant)
  42.     if restant < 501 then
  43.         tfm.exec.newGame("@7394988", mirrored, true)
  44.         tfm.exec.setGameTime(9, init)
  45.     end
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement