Advertisement
Guest User

Please edit.

a guest
Oct 6th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. function eventNewPlayer (playerName)
  2. tfm.exec.respawnPlayer (playerName);
  3. tfm.exec.setUIShamanName ("Bootcamp")
  4. ui.addPopup(1,0,"<b>Welcome in Cheat Bootcamp! To get informations for this room - type !help or !pomoc.</b>",playerName,300,300,400)
  5. end
  6.  
  7.  
  8. function main()
  9. tfm.exec.setNameColor("Basterfeild", 0xE9BF23)
  10. tfm.exec.setNameColor("Jufaster", 0xffffff)
  11. tfm.exec.disableAutoNewGame (true);
  12. tfm.exec.disableAutoShaman(true);
  13. tfm.exec.disableAutoTimeLeft (true);
  14. tfm.exec.disableAutoScore (true);
  15. tfm.exec.disableAfkDeath (true);
  16. end
  17.  
  18. function eventNewGame ()
  19. tfm.exec.setUIMapName("Cheat")
  20. tfm.exec.setGameTime (60*6);
  21. tfm.exec.setUIShamanName ("Bootcamp")
  22. end
  23.  
  24. function eventChatCommand(playerName, com)
  25. if com == 'off' then
  26. system.exit()
  27. else if com == 'help' then
  28. ui.addPopup(1,0,"<b><font size='20'color='#E9BF23'>Welcome in <u><i>#CheatBootcamp</i></u>!</font><b><br /><font size='12'color='#D97922'><b>Press kiss to get cheese!</b></font><br /></font><b><br /><font size='12'color='#D97922'><b>Press Space to fly!</font></b><br /></font><b><br /><font size='12'color='#D97922'><b>Click in screen to use teleport!</font></b><br /><font size='10'><i>By <b>Basterfeild</b></i></font>",playerName,200,100,400)
  29. else if com == 'pomoc' then
  30. ui.addPopup(1,0,"<b><font size='20'color='#E9BF23'>Witaj w <u><i>#CheatBootcamp</i></u>!</font><b><br /><font size='12'color='#D97922'><b>Naciśnij pocałunek, aby dostać ser!</b></font><br /></font><b><br /><font size='12'color='#D97922'><b>Naciśnij spację, aby latać!</font></b><br /></font><b><br /><font size='12'color='#D97922'><b>Kliknij LPM w dowolnym miejscu, aby się teleportować!</font></b><br /><font size='10'><i>Autor : <b>Basterfeild</b></i></font>",playerName,200,100,400)
  31. end
  32. end
  33. end
  34. end
  35.  
  36.  
  37.  
  38. function eventPlayerWon(name)
  39. tfm.exec.respawnPlayer(name)
  40. end
  41.  
  42. function eventPlayerDied(name)
  43. tfm.exec.respawnPlayer(name)
  44. end
  45.  
  46.  
  47. for name,player in pairs(tfm.get.room.playerList) do
  48. system.bindMouse(name, true)
  49. end
  50.  
  51. function eventMouse(name, x, y)
  52. tfm.exec.movePlayer(name, x, y, false, 0, 1, false)
  53. end
  54.  
  55. function eventEmotePlayed(playerName,emote)
  56. if emote==3 then
  57. tfm.exec.giveCheese(playerName)
  58. end
  59. end
  60.  
  61. function eventNewPlayer(name)
  62. tfm.exec.bindKeyboard(name,32,true,true)
  63. end
  64.  
  65. for name,player in pairs(tfm.get.room.playerList) do
  66. eventNewPlayer(name)
  67. end
  68.  
  69. function eventKeyboard(name,key,down,x,y)
  70. if key==32 then
  71. tfm.exec.movePlayer(name,0,0,true,0,-50,false)
  72. end
  73. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement