Advertisement
wiktorrosik

[Transformice] #Walljump(Ssserekpll)

Aug 2nd, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.81 KB | None | 0 0
  1. admin="Ssserekpll","Wiktorrosik"
  2.  
  3. system.disableChatCommandDisplay("hej",true)
  4. tfm.exec.disableAutoShaman(true)
  5.  
  6. gra={}
  7.  
  8. function eventChatCommand(nick, com)
  9. if com=="hej" then
  10. tfm.exec.newGame(mapy[math.random(#mapy)])
  11. tfm.exec.setUIMapName("#Walljump")
  12. tfm.exec.setNameColor("Ssserekpll", 0x0000FF)
  13. tfm.exec.setNameColor("Wiktorrosik", 0x00FF00)
  14. end
  15. end
  16.  
  17. ----------------------------------------------
  18. mapy={'@4060170','@810610'}
  19. tfm.exec.disableAutoNewGame(true)
  20.  
  21. function eventLoop(t1,t2)
  22. A01=0
  23. for v,nicks in pairs(tfm.get.room.playerList) do
  24. if nicks.isDead~=true then
  25. A01=1
  26. end
  27. end
  28. if A01~=1 or t2<1 then
  29. tfm.exec.newGame(mapy[math.random(#mapy)])
  30. tfm.exec.setUIMapName("#Walljump")
  31. tfm.exec.setNameColor("Ssserekpll", 0x0000FF)
  32. tfm.exec.setNameColor("Wiktorrosik", 0x00FF00)
  33. end
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement