Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Bot Messages v1.2
- -- Tables
- nameofbot="~Ghost of Soupbot";
- cmm="EN";
- messages={
- ["welcome"]="Put your message here :D";
- ["minigames"]="All minigames: Edit";
- ["rules"]="Rules: Edit";
- };
- 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 messages[cm] then
- textarea(player,messages[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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement