Advertisement
Eshkation-

Untitled

May 13th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. nomedobot="~Tribo";
  2. cmm="BR";
  3. mensagens={
  4. ["boasvindas"]="Criar";
  5. };
  6. msg={
  7. ["atv"]=false;
  8. };
  9. -- Inicio do script
  10. print("<VP>Bot messagens<V> inciado!")
  11. ui.addTextArea(0,"<font color='#ED67EA'>> [".. cmm.."] [<font color='#ED67EA'><a href='event:fechar'>".. nomedobot.."</a></font>] ".. mensagens.boasvindas.."</font>",nil,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
  12. -- Novo jogador entra na sala
  13. function eventNewPlayer(player)
  14. ui.addTextArea(0,"<font color='#ED67EA'>> [".. cmm.."] [<font color='#ED67EA'><a href='event:fechar'>".. nomedobot.."</a></font>] ".. mensagens.boasvindas.."</font>",player,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
  15. end
  16. -- Comandos
  17. function eventChatCommand(player,cm)
  18. if cm == mensagens[cm] then
  19. textarea(player,mensagens[cm])
  20. end
  21. system.disableChatCommandDisplay(cm, true)
  22. end
  23. -- Text ara
  24. function textarea(player,msg)
  25. ui.addTextArea(0,"<font color='#F0A78E'>> [".. cmm.."] [<font color='#E88F4F'><a href='event:fechar'>".. nomedobot.."</a></font>] ".. msg.."</font</font>",player,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
  26. end
  27. -- Links de uma textarea
  28.  
  29. function eventTextAreaCallback(id,player,link)
  30. if link == "fechar" then
  31. ui.removeTextArea(0,player)
  32. end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement