Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Bot Messages v1.2
- -- 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 Mesaj<V> Aktif!")
- ui.addTextArea(0,"<font color='#F0A78E'>> [".. cmm.."] [<font color='#E88F4F'><a href='event:close'>".. nameofbot.."</a></font>] ".. messagesmerhaba.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
- -- Yeni oyuncular için
- function eventNewPlayer(player)
- ui.addTextArea(0,"<font color='#F0A78E'>> [".. cmm.."] [<font color='#E88F4F'><a href='event:close'>".. nameofbot.."</a></font>] ".. messages.merhaba.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
- end
- -- komutlar
- function eventChatCommand(player,cm)
- if mensagens[cm] then
- textarea(player,mensagens[cm])
- end
- system.disableChatCommandDisplay(cm, true)
- end
- -- Text Area
- function textarea(player,msg)
- ui.addTextArea(0,"<font color='#F0A78E'>> [".. cmm.."] [<font color='#E88F4F'><a href='event:close'>".. nameofbot.."</a></font>] ".. msg.."</font</font>",player,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
- end
- -- Links of Text Area
- function eventTextAreaCallback(id,player,link)
- if link == "close" then
- ui.removeTextArea(0,player)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment