Rawoas13

Untitled

Mar 27th, 2020
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.54 KB | None | 0 0
  1. xml=''
  2. function eventNewGame()
  3. xml=tfm.get.room.xmlMapInfo.xml
  4. end
  5. function printXML()
  6. local m=math.ceil(xml:len()/2000)
  7. print('<b><font color="#FF0000">'..tfm.get.room.currentMap..':</font></b>')
  8. for i=0,math.ceil((xml:len()/2000))-1 do
  9. print('<b><font color="#870087" >'..xml:sub(xml:len()*(i/m)+1,xml:len()*((i+1)/m)):gsub('<','&lt;')..'</font></b>')
  10. end
  11. end
  12. function eventChatCommand(name,cmd)
  13. if cmd=='printxml' then printXML() end
  14. end
  15. system.disableChatCommandDisplay('printxml')
  16. tfm.exec.newGame("@6972550") --- Put what code you want
Add Comment
Please, Sign In to add comment