Advertisement
Cocoduf

TFM lua

Sep 6th, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.99 KB | None | 0 0
  1. for name, player in pairs(tfm.get.room.playerList) do
  2.     tfm.exec.bindKeyboard(name, 32, true, true)
  3.     system.bindMouse(name, true)
  4.     --ui.addTextArea("hitbox", "", name, 890, 338, 34, 18, 0x111111, 0xff3333, 0.5, true)
  5.     --ui.addTextArea("test", "<font size='100'><BL>♥</font>", name, 104, 190, 100, 120, 0x111111, 0xff3333, 0, true)
  6. end
  7. function eventKeyboard(name, key, down, x, y)
  8.     if key==32 then
  9.         --tfm.exec.explosion(x, y, -80, 800, true)
  10.     end
  11. end
  12. function eventMouse(name, x, y)
  13.     --tfm.exec.movePlayer(name, x, y, false, 0, 0, false)
  14.     if x>=905 and x<=925 and y>=186 and y<=218 then
  15.         tfm.exec.setShaman(name)
  16.     end
  17.     if x>=890 and x<=924 and y>=338 and y<=356 then
  18.         tfm.exec.giveMeep(name)
  19.         ui.addTextArea("i_love_chicken", "<font size='20'><0x000000>♥♥♥♥♥", name, 838, 362, 100, 30, 0, 0, 0, true)
  20.     end
  21. end
  22. function eventChatCommand(name, message)
  23.     if string.sub(message, 0, 5)=="kill_" then
  24.         tfm.exec.killPlayer(string.sub(message, 6, string.len(message)))
  25.     end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement