educolo

Untitled

May 25th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.49 KB | None | 0 0
  1. -- Bot messagens v1.2
  2. -- Créditos:Educolo
  3. -- Tables
  4. nomedobot="Educolo"
  5. cmm="BR";
  6. mensagens={
  7.  
  8. ["boasvindas"]="Bem Vindo(a) , ao cafofo da tribo!";
  9. ["recrute"]="Recrute bastante!";
  10. ["bixlix"]="Bixlix lindo!";
  11. ["minigames"]="Temos alguns minigames como : Deathmatch , prophunt e Muito Mais !";
  12. ["regras"]="As regras são:Sem flood , sem Spam , sem xingamentos e sem tentar comandar o cafofo.";
  13. };
  14. msg={
  15. ["atv"]=false;
  16. };
  17. -- Inicio do script
  18. print("<VP>Bot messagens<V> inciado!")
  19. ui.addTextArea(0,"<#EB1D51='#F0A78E'>> [".. cmm.."] [<#EB1D51='#E88F4F'><a href='event:fechar'>".. nomedobot.."</a></font>] ".. mensagens.boasvindas.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
  20. -- Novo jogador entra na sala
  21. function eventNewPlayer(player)
  22. ui.addTextArea(0,"<font color='#F0A78E'>> [".. cmm.."] [<#EB1D51='#E88F4F'><a href='event:fechar'>".. nomedobot.."</a></font>] ".. mensagens.boasvindas.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
  23. end
  24. -- Comandos
  25. function eventChatCommand(player,cm)
  26. if mensagens[cm] then
  27. textarea(player,mensagens[cm])
  28. end
  29. system.disableChatCommandDisplay(cm, true)
  30. end
  31. -- Text ara
  32. function textarea(player,msg)
  33. ui.addTextArea(0,"<font color='#F0A78E'>> [".. cmm.."] [<r='#E88F4F'><a href='event:fechar'>".. nomedobot.."</a></font>] ".. msg.."</font</font>",player,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
  34. end
  35. -- Links de uma textarea
  36.  
  37. function eventTextAreaCallback(id,player,link)
  38. if link == "fechar" then
  39. ui.removeTextArea(0,player)
  40. end
  41. end
Advertisement
Add Comment
Please, Sign In to add comment