Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nameofbot="EDIT"
- cmm="PL";
- messages={
- ["witaj"]="Cześć, witaj w Chatce Plemiennej Odkrywców! Baw się DOBRZE ;D Pamiętaj przestrzegaj regulaminu! Jeżeli chcesz zamknać tabelkę kliknij EDIT. ";
- ["minigry"]="Minigry: EDIT or DELETE";
- ["zasady"]="Zasady: EDIT or DELETE";
- ["EDIT"]="EDIT";
- };
- msg={
- ["atv"]=false;
- };
- -- Włączenie skryptu
- print("<VP>Bot Messages<V> włączony!")
- 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)
- -- Nowy gracz
- function eventNewPlayer(player)
- 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)
- end
- -- Komendy
- function eventChatCommand(player,cm)
- if messages[cm] then
- textarea(player,messages[cm])
- end
- system.disableChatCommandDisplay(cm, true)
- end
- -- Text Area
- function textarea(player,msg)
- 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)
- end
- -- Powiązania 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