SHOW:
|
|
- or go back to the newest paste.
1 | -- Bot Messages v1.2 | |
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 Mesaj<V> Aktif!") | |
14 | - | 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) |
14 | + | |
15 | -- Yeni oyuncular için | |
16 | function eventNewPlayer(player) | |
17 | 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) | |
18 | end | |
19 | -- komutlar | |
20 | function eventChatCommand(player,cm) | |
21 | if mensagens[cm] then | |
22 | textarea(player,mensagens[cm]) | |
23 | end | |
24 | system.disableChatCommandDisplay(cm, true) | |
25 | end | |
26 | -- Text Area | |
27 | function textarea(player,msg) | |
28 | 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) | |
29 | end | |
30 | -- Links of Text Area | |
31 | ||
32 | function eventTextAreaCallback(id,player,link) | |
33 | if link == "close" then | |
34 | ui.removeTextArea(0,player) | |
35 | end | |
36 | end |