Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Utilitario
- -- Créditos:Stooucommedo
- -- Tables
- nomedobot="Stooucommedo"
- cmm="BR";
- mensagens={
- ["boasvindas"]="Bem Vindo(a) , ao cafofo da tribo!";
- ["recrute"]="Recrute bastante!";
- ["minigames"]="Temos alguns minigames como : Deathmatch , prophunt e Muito Mais !";
- ["regras"]="As regras são:Sem flood , sem Spam , sem xingamentos e sem tentar comandar o cafofo.";
- };
- msg={
- ["atv"]=false;
- };
- -- Inicio do script
- print("<VP>Bot messagens<V> inciado!")
- ui.addTextArea(0,"<#EB1D51='#F0A78E'>> [".. cmm.."] [<#EB1D51='#E88F4F'><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='#F0A78E'>> [".. cmm.."] [<#EB1D51='#E88F4F'><a href='event:fechar'>".. nomedobot.."</a></font>] ".. mensagens.boasvindas.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
- end
- -- Comandos
- function eventChatCommand(player,cm)
- if 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.."] [<r='#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