Enginfener

Bot message TR Translate

Dec 15th, 2013
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.05 KB | None | 0 0
  1. -- Bot Messages v1.1
  2. -- Credits: Brenower
  3. -- turkish translation: Enginfener
  4. -- Tables
  5. nameofbot="~Kabile";
  6. cmm="TR";
  7. messages={
  8. ["merhaba"]="<J>Merhaba,Kabile Evine Hoş Geldin!";
  9. ["minioyun"]="MiniOyunlar: EDIT";
  10. ["kural"]="Kurallar: EDIT";
  11. }
  12. -- Script Başlangıç
  13. print("<VP>Bot mesaji<V> started!")
  14. ui.addTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nameofbot.."] ".. messages.merhaba.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
  15. -- New player in the room
  16. function eventNewPlayer(player)
  17. ui.addTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nameofbot.."] ".. messages.merhaba.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
  18. end
  19. -- Commands
  20. function eventChatCommand(player,cm)
  21. if cm == "minioyun" then
  22. ui.updateTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nameofbot.."] ".. messages.minioyun.."</font>",player)
  23. end
  24. if cm == "kural" then
  25. ui.updateTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nameofbot.."] ".. messages.kural.."</font>",player)
  26. end
  27. system.disableChatCommandDisplay(cm, true)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment