Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nomedobot="~Tribo";
- cmm="BR";
- mensagens={
- ["boasvindas"]="Criar";
- };
- msg={
- ["atv"]=false;
- };
- -- Inicio do script
- print("<VP>Bot messagens<V> inciado!")
- ui.addTextArea(0,"<font color='#ED67EA'>> [".. cmm.."] [<font color='#ED67EA'><a href='event:fechar'>".. nomedobot.."</a></font>] ".. mensagens.boasvindas.."</font>",nil,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
- -- Novo jogador entra na sala
- function eventNewPlayer(player)
- ui.addTextArea(0,"<font color='#ED67EA'>> [".. cmm.."] [<font color='#ED67EA'><a href='event:fechar'>".. nomedobot.."</a></font>] ".. mensagens.boasvindas.."</font>",player,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
- end
- -- Comandos
- function eventChatCommand(player,cm)
- if cm == mensagens[cm] then
- textarea(player,mensagens[cm])
- end
- system.disableChatCommandDisplay(cm, true)
- end
- -- Text ara
- function textarea(player,msg)
- ui.addTextArea(0,"<font color='#F0A78E'>> [".. cmm.."] [<font color='#E88F4F'><a href='event:fechar'>".. nomedobot.."</a></font>] ".. msg.."</font</font>",player,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
- end
- -- Links de uma textarea
- function eventTextAreaCallback(id,player,link)
- if link == "fechar" then
- ui.removeTextArea(0,player)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement