Tectoon

[TFM] Construçãooooo

Jul 6th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.38 KB | None | 0 0
  1. nameofbot="EDIT"
  2. cmm="PL";
  3. messages={
  4. ["witaj"]="Cześć, witaj w Chatce Plemiennej Odkrywców! Baw się DOBRZE ;D Pamiętaj przestrzegaj regulaminu! Jeżeli chcesz zamknać tabelkę kliknij EDIT. ";
  5. ["minigry"]="Minigry: EDIT or DELETE";
  6. ["zasady"]="Zasady: EDIT or DELETE";
  7. ["EDIT"]="EDIT";
  8. };
  9. msg={
  10. ["atv"]=false;
  11. };
  12. -- Włączenie skryptu
  13. print("<VP>Bot Messages<V> włączony!")
  14. ui.addTextArea(0,"<font color='#FFCB00'>> [".. cmm.."] [<font color='#E88F4F'><a href='event:close'>".. nameofbot.."</a></font>] ".. messages.witaj.."</font>",NIL,6,368,478,30,0x78583A,0x78583A,0.9,true)
  15. -- Nowy gracz
  16. function eventNewPlayer(player)
  17. ui.addTextArea(0,"<font color='#FFCB00'>> [".. cmm.."] [<font color='#E88F4F'><a href='event:close'>".. nameofbot.."</a></font>] ".. messages.witaj.."</font>",NIL,6,368,478,30,0x78583A,0x78583A,0.9,true)
  18. end
  19. -- Komendy
  20. function eventChatCommand(player,cm)
  21. if messages[cm] then
  22. textarea(player,messages[cm])
  23. end
  24. system.disableChatCommandDisplay(cm, true)
  25. end
  26. -- Text Area
  27. function textarea(player,msg)
  28. ui.addTextArea(0,"<font color='#FFCB00'>> [".. cmm.."] [<font color='#E88F4F'><a href='event:close'>".. nameofbot.."</a></font>] ".. msg.."</font</font>",player,6,368,478,30,0x78583A,0x78583A,0.9,true)
  29. end
  30. -- Powiązania Text Area
  31.  
  32. function eventTextAreaCallback(id,player,link)
  33. if link == "close" then
  34. ui.removeTextArea(0,player)
  35. end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment