Manacer

Manipulator 0.1

May 5th, 2014
651
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.56 KB | None | 0 0
  1.   print("<font color='#FFFF00'>Module lancer.</font>")
  2.   print("<font color='#ABCD'>Utilise les touches m,l,j,k pour faire bouger la souris choisis</font>")
  3.  
  4. noob = "PSEUDO"
  5. tfm.exec.setUIMapName("<vi>Manipulator 0.1 by <j>Manacer<n> aidé par <j>Nicolasledu")
  6.  
  7. tfm.exec.setNameColor(""..noob.."", 0xEB1D51)
  8.  
  9.  
  10. function eventNewPlayer(name)
  11.     tfm.exec.setNameColor(""..noob.."", 0xEB1D51)
  12.     tfm.exec.bindKeyboard(name,77,true,true)
  13.     tfm.exec.bindKeyboard(name,76,true,true)
  14.     tfm.exec.bindKeyboard(name,75,true,true)
  15.     tfm.exec.bindKeyboard(name,74,true,true)
  16. end
  17.  
  18. for name,player in pairs(tfm.get.room.playerList) do
  19.     eventNewPlayer(name)
  20. end
  21.  
  22. function eventKeyboard(name,key,down,x,y)
  23.     if key==77 then -- droite m
  24.         tfm.exec.movePlayer(noob,0,0,true,20,0,false)
  25.         end
  26.     if key==76 then -- gauche l
  27.         tfm.exec.movePlayer(noob,0,0,true,-20,0,false)
  28.         end
  29.     if key==75 then -- bas k
  30.         tfm.exec.movePlayer(noob,0,0,true,0,20,false)
  31.         end
  32.     if key==74 then -- haut j
  33.         tfm.exec.movePlayer(noob,0,0,true,0,-40,false)
  34.         end
  35.     end
  36.  
  37. ui.addTextArea(1,"<p align='center'><J><vi>Manipulator 0.1 by <j>Manacer<n> aidé par <j>Nicolasledu</p>",name,20,35,765,20,nil,0x324650,0.7,true)
  38. ui.addTextArea(2,"<p align='center'><J>Faite voler <BL>"..noob.."<J> en appuyant juste sur <vp>espace.</p>",name,20,80,765,20,nil,0x324650,0.7,true)
  39. ui.addTextArea(3,"<p align='center'><J><vi><ROSE>!help<vi> pour ouvrir l'aide.</p>",name,20,120,765,20,nil,0x324650,0.7,true)
  40.  
  41. function eventChatCommand(name,command) -- A partir de la il y'a les commandes
  42.   if command == "help" then
  43. end
  44. end
Advertisement
Add Comment
Please, Sign In to add comment