Advertisement
ShoopieTUBE

xml

Feb 22nd, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 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("@1335223") --- Put what code you want
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement