Advertisement
epicshawty

#bootcamp with map code

Aug 25th, 2013
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.70 KB | None | 0 0
  1. maps={@code,@code,@code}
  2. tfm.exec.newGame(maps[math.random(#maps)])
  3. function eventLoop(time,remaining) if remaining<=0 then tfm.exec.newGame(maps[math.random(#maps)]) end end
  4. tfm.exec.disableAutoNewGame(true)
  5. function eventChatCommand(playerName,command)
  6.     if command=="help" then
  7.         tfm.exec.chatMessage("<VP>Welcome to Epicshawty's minigame, #bootcamp! It is a bootcamp room that has simplified maps that new people can win! Type <N>!commands <VP>for a list of commands.",playerName)
  8.     elseif command=="commands" then
  9.         tfm.exec.chatMessage("<ROSE>!credits <VP>- credits pop up in chat",playerName)
  10.             tfm.exec.chatMessage("<ROSE>!help <VP>- help for stuff",playerName)
  11.     elseif command=="credits" then
  12.         tfm.exec.chatMessage("<V>[Epicshawty] <N>&lt; Idea man {assistant coder}",playerName)
  13.             tfm.exec.chatMessage("<V>[Shamousey] <N>&lt; The brains of it all",playerName)
  14.                 tfm.exec.chatMessage("<V>[Kevinfarrel] <N>&lt; Helper, {assistant coder}",playerName)
  15.     elseif command=="mort" then
  16.         tfm.exec.killPlayer(playerName)
  17.             tfm.exec.chatMessage("<J>Successfully suicided.",playerName)
  18.     end
  19. end
  20. function eventPlayerDied(playerName)
  21. tfm.exec.respawnPlayer(playerName)
  22. end
  23. function eventNewPlayer(playerName)
  24.     tfm.exec.chatMessage("<ROSE><B>Howdy there fello! Welcome to #bootcamp! Coded by</B> <VP><B>Epicshawty</B> <ROSE><B>and helped by</B> <VP><B>Shamousey and Kevinfarrel!</B> <ROSE><B>Type</B> <N><B>!help</b><ROSE><B>.</B>",playerName)
  25. end
  26. for playerName,player in pairs(tfm.get.room.playerList) do eventNewPlayer(playerName) end
  27. system.disableChatCommandDisplay("help")
  28. system.disableChatCommandDisplay("commands")
  29. system.disableChatCommandDisplay("credits")
  30. system.disableChatCommandDisplay("mort")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement