Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Bot Messages v1.1
- -- Credits: Brenower
- -- turkish translation: Enginfener
- -- Tables
- nameofbot="~Kabile";
- cmm="TR";
- messages={
- ["merhaba"]="<J>Merhaba,Kabile Evine Hoş Geldin!";
- ["minioyun"]="MiniOyunlar: EDIT";
- ["kural"]="Kurallar: EDIT";
- }
- -- Script Başlangıç
- print("<VP>Bot mesaji<V> started!")
- ui.addTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nameofbot.."] ".. messages.merhaba.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
- -- New player in the room
- function eventNewPlayer(player)
- ui.addTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nameofbot.."] ".. messages.merhaba.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
- end
- -- Commands
- function eventChatCommand(player,cm)
- if cm == "minioyun" then
- ui.updateTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nameofbot.."] ".. messages.minioyun.."</font>",player)
- end
- if cm == "kural" then
- ui.updateTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nameofbot.."] ".. messages.kural.."</font>",player)
- end
- system.disableChatCommandDisplay(cm, true)
- end
Advertisement
Add Comment
Please, Sign In to add comment