Advertisement
Breno-Alves

[ES][Brenower][TFM]Bot mensagens

Dec 15th, 2013
880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.28 KB | None | 0 0
  1. -- Bot messagens v1.1
  2. -- Créditos:Brenower y Danilowtf
  3. -- Tables
  4. nomedobot="~Tribu";
  5. cmm="ES";
  6. mensagens={
  7. ["boasvindas"]="Hola, bienvenido a la casa de tribu!";
  8. ["minijuegos"]="Todos ls minigames: EDITAR";
  9. ["reglas"]="Las reglas son: Editar";
  10. ["novedades"]="La tribu ahora tiene un bot #";
  11. }
  12. -- Inicio del script
  13. print("<VP>[Bot messagens]:<V> inciado!")
  14. ui.addTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.boasvindas.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
  15. -- Nuevo jugador entra en casa de tribu
  16. function eventNewPlayer(player)
  17. ui.addTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.boasvindas.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
  18. end
  19. -- Comandos
  20. function eventChatCommand(player,cm)
  21. if cm == "minijuegos" then
  22. ui.updateTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.minijuegos.."</font>",player)
  23. end
  24. if cm == "reglas" then
  25. ui.updateTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.reglas.."</font>",player)
  26. end
  27. if cm == "novedades" then
  28. ui.updateTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.novedades.."</font>",player)
  29. end
  30. system.disableChatCommandDisplay(cm, true)
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement