Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Bot messagens v1.1
- -- Créditos:Brenower y Danilowtf
- -- Tables
- nomedobot="~Tribu";
- cmm="ES";
- mensagens={
- ["boasvindas"]="Hola, bienvenido a la casa de tribu!";
- ["minijuegos"]="Todos ls minigames: EDITAR";
- ["reglas"]="Las reglas son: Editar";
- ["novedades"]="La tribu ahora tiene un bot #";
- }
- -- Inicio del script
- print("<VP>[Bot messagens]:<V> inciado!")
- ui.addTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.boasvindas.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
- -- Nuevo jugador entra en casa de tribu
- function eventNewPlayer(player)
- ui.addTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.boasvindas.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
- end
- -- Comandos
- function eventChatCommand(player,cm)
- if cm == "minijuegos" then
- ui.updateTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.minijuegos.."</font>",player)
- end
- if cm == "reglas" then
- ui.updateTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.reglas.."</font>",player)
- end
- if cm == "novedades" then
- ui.updateTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.novedades.."</font>",player)
- end
- system.disableChatCommandDisplay(cm, true)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement