Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nameofbot="~Qtbot";
- cmm="EN";
- messages={
- ["hello"]="Hello qt!";
- ["hi"]="Hi qt!";
- ["Hello"]="Hello qt!";
- ["Hi"]="Hi qt!";
- ["bye"]="Don't leave me ;-;";
- ["Bye"]="Don't leave me ;-;";
- ["me"]="Very qt!";
- ["Me"]="Very qt!";
- ["Fluffyshyl"]="Amazingly qt *-*";
- };
- msg={
- ["atv"]=false;
- };
- -- Start of script
- print("<VP>Bot Messages<V> started!")
- ui.addTextArea(0,"<font color='#F0A78E'>> [".. cmm.."] [<font color='#E88F4F'><a href='event:close'>".. nameofbot.."</a></font>] ".. messages.welcome.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
- -- New player
- function eventNewPlayer(player)
- ui.addTextArea(0,"<font color='#F0A78E'>> [".. cmm.."] [<font color='#E88F4F'><a href='event:close'>".. nameofbot.."</a></font>] ".. messages.welcome.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
- end
- -- Commands
- 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
Advertisement