Thetroz

Comando !help con un callback de cerrar.

Feb 11th, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. function eventChatCommand (name, command)
  2.         if command == "help" then
  3.             ui.addTextArea(0, "mensaje", name, 144, 44, 500, 300, 5329233, 0, 1.1);
  4.             ui.addTextArea(1, "<ROSE><a href='event:c'>Cerrar", name, 600, 44, nil, nil, 5329233, 0, 0.0);
  5.     end
  6. end
  7.  
  8. function eventTextAreaCallback(id, name, callback)
  9.     if callback == "c" then
  10.         ui.removeTextArea(0, name)
  11.         ui.removeTextArea(1, name)
  12.     end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment