Advertisement
Eliaseeg

[Pedidos de scripts] Mensaje de moderación.

Feb 6th, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. -- Si quieres añadir más, recuerda separarlos por comas. Por ejemplo: Dariemlock = true, Eliaseeg = true. Y así sucesivamente.
  2.  
  3. moderadores = {Dariemlock = true}
  4. ui.addTextArea(0, "", nil, 0, 334, 800, 60, 5395026, 5395026, 0.8);
  5.  
  6. -- Comandos
  7.  
  8. function eventChatCommand (player, cmd)
  9.  if moderadores[player] then
  10.                 if cmd:sub(0,1) == "m" then
  11.                 ui.addTextArea(0, "<b><J>[~Moderación] "..cmd:sub(3).."", nil, 0, 334, 800, 60, 5395026, 5395026, 0.8);
  12.         end
  13.     end
  14. end
  15.  
  16. -- Desaparecer el comando a la visibilidad del jugador.
  17. system.disableChatCommandDisplay("m", true)
  18.  
  19. -- Gracias Thetroz por los textAreas, lo único que hice fue modificarlo al gusto del pedido.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement