Advertisement
Bolodefchoco_LUAXML

[Script] Booster

Apr 21st, 2017
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. --Creator: Bolodefchoco
  2. --Made in: 21/04/2017
  3. --Last update: 21/04/2017
  4. --[[ Notes:
  5.     Does:
  6.         Impulsionador simples
  7. ]]--
  8.  
  9. info = {}
  10. eventNewPlayer = function(n)
  11.     if not info[n] then
  12.         info[n] = {
  13.             false,false,false,false
  14.         }
  15.     end
  16.     for k = 0,3 do
  17.         for i = 1,2 do
  18.             system.bindKeyboard(n,k,i==1,true)
  19.         end
  20.     end
  21. end
  22. table.foreach(tfm.get.room.playerList,eventNewPlayer)
  23.  
  24. eventKeyboard = function(n,k,d)
  25.     info[n][k] = d
  26. end
  27.  
  28. f = 5
  29. eventLoop = function()
  30.     for k,v in next,info do
  31.         tfm.exec.movePlayer(k,v[0] and -f or v[2] and f or 0,v[1] and -f or v[3] and f or 0,true)
  32.     end
  33. end
  34.  
  35. tfm.exec.newGame('<C><P G="0,0" /><Z><S><S L="809" H="57" X="398" Y="410" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="871" H="38" X="403" Y="0" T="0" P="0,0,0.3,0.2,0,0,0,0" /></S><D /><O /></Z></C>')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement