Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- maps={@code,@code,@code}
- tfm.exec.newGame(maps[math.random(#maps)])
- function eventLoop(time,remaining) if remaining<=0 then tfm.exec.newGame(maps[math.random(#maps)]) end end
- tfm.exec.disableAutoNewGame(true)
- function eventChatCommand(playerName,command)
- if command=="help" then
- 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)
- elseif command=="commands" then
- tfm.exec.chatMessage("<ROSE>!credits <VP>- credits pop up in chat",playerName)
- tfm.exec.chatMessage("<ROSE>!help <VP>- help for stuff",playerName)
- elseif command=="credits" then
- tfm.exec.chatMessage("<V>[Epicshawty] <N>< Idea man {assistant coder}",playerName)
- tfm.exec.chatMessage("<V>[Shamousey] <N>< The brains of it all",playerName)
- tfm.exec.chatMessage("<V>[Kevinfarrel] <N>< Helper, {assistant coder}",playerName)
- elseif command=="mort" then
- tfm.exec.killPlayer(playerName)
- tfm.exec.chatMessage("<J>Successfully suicided.",playerName)
- end
- end
- function eventPlayerDied(playerName)
- tfm.exec.respawnPlayer(playerName)
- end
- function eventNewPlayer(playerName)
- 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)
- end
- for playerName,player in pairs(tfm.get.room.playerList) do eventNewPlayer(playerName) end
- system.disableChatCommandDisplay("help")
- system.disableChatCommandDisplay("commands")
- system.disableChatCommandDisplay("credits")
- system.disableChatCommandDisplay("mort")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement