rssDXAutomaticMessages (mensajes para tu servidor atutomaticos)
Category: | script |
---|---|
Author(s): | sebastin77 |
Downloads: | 50 |
Rate: | You need to be logged in to vote |
Rating: | None (0) |
Description:
hola aqui te paos otro recurso talves sirva para tu servidor.
esto ase que aparesca en tu servidor como mensajes actomaticos.
por ejemplo que podras modificar.
texto = "David Alcalá(Drex) les presenta... (DX Mensajes automáticos)" ------Mensaje de inicio, si quieres lo puedes borrar... y dejarlo así ""
rc, gc, bc = 0, 255, 0 ------Colores de inicio
posicion = "abajo" ---------Posición de los mensajes puede ser "arriba" o "abajo"
barra = "true" ---- (Ésto es broma e.e) te amo zorro <3
local screenW, screenH = guiGetScreenSize()
textos = { ---------------------------------------tabla para tus textos---------------------------------------
--------------------- "texto", r, g, b ---------------------
{"Bienbenidos, Al servidor MTA Anime YT. espero que la pases super bien y leer f9 para tener imfo", 0, 255, 0},
{"Nuestro grupos de discord https://discord.gg/HR9PUz facebook https://www.facebook.com/groups/2297177430340197/", 0, 0, 255},
{"estee servidor es divertido y no podras hablar mal del servidor o seras ignorado", 0, 0, 255},
}
------------función que cambia los textos cada segundo------------
function cambiartexto()
texto, rc, gc, bc = unpack(textos[math.random(#textos)])
end
setTimer(cambiartexto,1000,0) ----------tiempo en el que cambiará los mensajes, segundo multiplicado x 1000
---------------------------------EL DX QUE MOSTRARÁ LOS MENSAJES AUTOMÁTICOS---------------------------------
addEventHandler("onClientRender", root,
function()
if posicion == "abajo" then
if barra == "true" then
dxDrawLine((screenW * 0.0000) - 1, (screenH * 0.9661) - 1, (screenW * 0.0000) - 1, screenH * 1.0000, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(screenW * 1.0000, (screenH * 0.9661) - 1, (screenW * 0.0000) - 1, (screenH * 0.9661) - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine((screenW * 0.0000) - 1, screenH * 1.0000, screenW * 1.0000, screenH * 1.0000, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(screenW * 1.0000, screenH * 1.0000, screenW * 1.0000, (screenH * 0.9661) - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawRectangle(screenW * 0.0000, screenH * 0.9661, screenW * 1.0000, screenH * 0.0339, tocolor(0, 0, 0, 155), false)
end
dxDrawText(texto, (screenW * 0.0007) - 1, (screenH * 0.9635) - 1, (screenW * 0.9971) - 1, (screenH * 1.0000) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, (screenW * 0.0007) + 1, (screenH * 0.9635) - 1, (screenW * 0.9971) + 1, (screenH * 1.0000) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, (screenW * 0.0007) - 1, (screenH * 0.9635) + 1, (screenW * 0.9971) - 1, (screenH * 1.0000) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, (screenW * 0.0007) + 1, (screenH * 0.9635) + 1, (screenW * 0.9971) + 1, (screenH * 1.0000) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, screenW * 0.0007, screenH * 0.9635, screenW * 0.9971, screenH * 1.0000, tocolor(rc, gc, bc, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
elseif posicion == "arriba" then
if barra == "true" then
dxDrawLine((screenW * 0.0007) - 1, (screenH * 0.0000) - 1, (screenW * 0.0007) - 1, screenH * 0.0339, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(screenW * 1.0007, (screenH * 0.0000) - 1, (screenW * 0.0007) - 1, (screenH * 0.0000) - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine((screenW * 0.0007) - 1, screenH * 0.0339, screenW * 1.0007, screenH * 0.0339, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(screenW * 1.0007, screenH * 0.0339, screenW * 1.0007, (screenH * 0.0000) - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawRectangle(screenW * 0.0007, screenH * 0.0000, screenW * 1.0000, screenH * 0.0339, tocolor(0, 0, 0, 155), false)
end
dxDrawText(texto, (screenW * 0.0007) - 1, (screenH * 0.0000) - 1, (screenW * 0.9971) - 1, (screenH * 0.0365) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, (screenW * 0.0007) + 1, (screenH * 0.0000) - 1, (screenW * 0.9971) + 1, (screenH * 0.0365) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, (screenW * 0.0007) - 1, (screenH * 0.0000) + 1, (screenW * 0.9971) - 1, (screenH * 0.0365) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, (screenW * 0.0007) + 1, (screenH * 0.0000) + 1, (screenW * 0.9971) + 1, (screenH * 0.0365) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, screenW * 0.0007, screenH * -0.0013, screenW * 0.9971, screenH * 0.0352, tocolor(rc, gc, bc, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
end
end
esto ase que aparesca en tu servidor como mensajes actomaticos.
por ejemplo que podras modificar.
texto = "David Alcalá(Drex) les presenta... (DX Mensajes automáticos)" ------Mensaje de inicio, si quieres lo puedes borrar... y dejarlo así ""
rc, gc, bc = 0, 255, 0 ------Colores de inicio
posicion = "abajo" ---------Posición de los mensajes puede ser "arriba" o "abajo"
barra = "true" ---- (Ésto es broma e.e) te amo zorro <3
local screenW, screenH = guiGetScreenSize()
textos = { ---------------------------------------tabla para tus textos---------------------------------------
--------------------- "texto", r, g, b ---------------------
{"Bienbenidos, Al servidor MTA Anime YT. espero que la pases super bien y leer f9 para tener imfo", 0, 255, 0},
{"Nuestro grupos de discord https://discord.gg/HR9PUz facebook https://www.facebook.com/groups/2297177430340197/", 0, 0, 255},
{"estee servidor es divertido y no podras hablar mal del servidor o seras ignorado", 0, 0, 255},
}
------------función que cambia los textos cada segundo------------
function cambiartexto()
texto, rc, gc, bc = unpack(textos[math.random(#textos)])
end
setTimer(cambiartexto,1000,0) ----------tiempo en el que cambiará los mensajes, segundo multiplicado x 1000
---------------------------------EL DX QUE MOSTRARÁ LOS MENSAJES AUTOMÁTICOS---------------------------------
addEventHandler("onClientRender", root,
function()
if posicion == "abajo" then
if barra == "true" then
dxDrawLine((screenW * 0.0000) - 1, (screenH * 0.9661) - 1, (screenW * 0.0000) - 1, screenH * 1.0000, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(screenW * 1.0000, (screenH * 0.9661) - 1, (screenW * 0.0000) - 1, (screenH * 0.9661) - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine((screenW * 0.0000) - 1, screenH * 1.0000, screenW * 1.0000, screenH * 1.0000, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(screenW * 1.0000, screenH * 1.0000, screenW * 1.0000, (screenH * 0.9661) - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawRectangle(screenW * 0.0000, screenH * 0.9661, screenW * 1.0000, screenH * 0.0339, tocolor(0, 0, 0, 155), false)
end
dxDrawText(texto, (screenW * 0.0007) - 1, (screenH * 0.9635) - 1, (screenW * 0.9971) - 1, (screenH * 1.0000) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, (screenW * 0.0007) + 1, (screenH * 0.9635) - 1, (screenW * 0.9971) + 1, (screenH * 1.0000) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, (screenW * 0.0007) - 1, (screenH * 0.9635) + 1, (screenW * 0.9971) - 1, (screenH * 1.0000) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, (screenW * 0.0007) + 1, (screenH * 0.9635) + 1, (screenW * 0.9971) + 1, (screenH * 1.0000) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, screenW * 0.0007, screenH * 0.9635, screenW * 0.9971, screenH * 1.0000, tocolor(rc, gc, bc, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
elseif posicion == "arriba" then
if barra == "true" then
dxDrawLine((screenW * 0.0007) - 1, (screenH * 0.0000) - 1, (screenW * 0.0007) - 1, screenH * 0.0339, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(screenW * 1.0007, (screenH * 0.0000) - 1, (screenW * 0.0007) - 1, (screenH * 0.0000) - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine((screenW * 0.0007) - 1, screenH * 0.0339, screenW * 1.0007, screenH * 0.0339, tocolor(0, 0, 0, 255), 1, false)
dxDrawLine(screenW * 1.0007, screenH * 0.0339, screenW * 1.0007, (screenH * 0.0000) - 1, tocolor(0, 0, 0, 255), 1, false)
dxDrawRectangle(screenW * 0.0007, screenH * 0.0000, screenW * 1.0000, screenH * 0.0339, tocolor(0, 0, 0, 155), false)
end
dxDrawText(texto, (screenW * 0.0007) - 1, (screenH * 0.0000) - 1, (screenW * 0.9971) - 1, (screenH * 0.0365) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, (screenW * 0.0007) + 1, (screenH * 0.0000) - 1, (screenW * 0.9971) + 1, (screenH * 0.0365) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, (screenW * 0.0007) - 1, (screenH * 0.0000) + 1, (screenW * 0.9971) - 1, (screenH * 0.0365) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, (screenW * 0.0007) + 1, (screenH * 0.0000) + 1, (screenW * 0.9971) + 1, (screenH * 0.0365) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
dxDrawText(texto, screenW * 0.0007, screenH * -0.0013, screenW * 0.9971, screenH * 0.0352, tocolor(rc, gc, bc, 255), 1.00, "default-bold", "center", "center", true, true, false, true, false)
end
end
Version history
Version | Publish Date | Changes | |
---|---|---|---|
1.0.0 | 2019-06-03 00:11:22 | First public release | Download |