Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("<font color='#FFFF00'>Module lancer.</font>")
- print("<font color='#ABCD'>Utilise les touches m,l,j,k pour faire bouger la souris choisis</font>")
- noob = "PSEUDO"
- tfm.exec.setUIMapName("<vi>Manipulator 0.1 by <j>Manacer<n> aidé par <j>Nicolasledu")
- tfm.exec.setNameColor(""..noob.."", 0xEB1D51)
- function eventNewPlayer(name)
- tfm.exec.setNameColor(""..noob.."", 0xEB1D51)
- tfm.exec.bindKeyboard(name,77,true,true)
- tfm.exec.bindKeyboard(name,76,true,true)
- tfm.exec.bindKeyboard(name,75,true,true)
- tfm.exec.bindKeyboard(name,74,true,true)
- end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function eventKeyboard(name,key,down,x,y)
- if key==77 then -- droite m
- tfm.exec.movePlayer(noob,0,0,true,20,0,false)
- end
- if key==76 then -- gauche l
- tfm.exec.movePlayer(noob,0,0,true,-20,0,false)
- end
- if key==75 then -- bas k
- tfm.exec.movePlayer(noob,0,0,true,0,20,false)
- end
- if key==74 then -- haut j
- tfm.exec.movePlayer(noob,0,0,true,0,-40,false)
- end
- end
- 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)
- 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)
- 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)
- function eventChatCommand(name,command) -- A partir de la il y'a les commandes
- if command == "help" then
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment