-Rex- Posted May 16, 2017 Posted May 16, 2017 Esta función lo que hace es crear un rectangulo con bordes ( Tal como lo hace el guieditor al marcar la opcion outlined ) function dxDrawOutlinedRectangle( posX, posY, WidX, WidY, cLine, cRectangle, postGui ) local AX1 = posX - 1 local AY1 = posY - 1 local WX1 = posX + WidX local HY1 = posY + WidY dxDrawLine(AX1, AY1, AX1, HY1, ( cLine or tocolor(0, 0, 0, 255) ), 1, ( postGui or false ) ) dxDrawLine(WX1, AY1, AX1, AY1, ( cLine or tocolor(0, 0, 0, 255) ), 1, ( postGui or false ) ) dxDrawLine(AX1, HY1, WX1, HY1, ( cLine or tocolor(0, 0, 0, 255) ), 1, ( postGui or false ) ) dxDrawLine(WX1, HY1, WX1, AY1, ( cLine or tocolor(0, 0, 0, 255) ), 1, ( postGui or false ) ) dxDrawRectangle(posX, posY, WidX, WidY, ( cRectangle or tocolor(0, 0, 0, 255) ), ( postGui or false ) ) end --cLine este seria el color que tendria los bordes --cRectangle y este el color que tendria el rectangulo --Ejemplo dxDrawOutlinedRectangle( 20, 100, 50, 50, tocolor(0, 0, 0, 255), tocolor(99, 99, 99, 255) ) Espero te sirva. Leal es quien te ama y respeta tus sentimientos Paid Scripter, Contact me: https://www.facebook.com/rexscripting/ Estoy retirado.
MTA Team 0xCiBeR Posted May 18, 2017 MTA Team Posted May 18, 2017 Genial, podrías agregarla a la wiki en el apartado de funciones útiles. DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp
-Rex- Posted May 18, 2017 Author Posted May 18, 2017 2 hours ago, .:CiBeR:. said: Genial, podrías agregarla a la wiki en el apartado de funciones útiles. No tengo cuenta, Lo harias por mi? Leal es quien te ama y respeta tus sentimientos Paid Scripter, Contact me: https://www.facebook.com/rexscripting/ Estoy retirado.
Rose Posted May 18, 2017 Posted May 18, 2017 En la wiki que yo recuerde hay una función para dibujar rectángulos con bordes, no sea si sea la misma ya que no he probado ninguna de las dos SCRIPTS: https://zombie-server-mta.blogspot.com/
MTA Team 0xCiBeR Posted May 18, 2017 MTA Team Posted May 18, 2017 Si la hay ahora que veo, habría que ver cual rinde mas y dejar esa. https://wiki.multitheftauto.com/wiki/DxDrawBorderedRectangle DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp
Simple0x47 Posted May 19, 2017 Posted May 19, 2017 El GUIEDITOR de por si ya trae esta función que es igual vamos... Pero igual, gracias por aportar tus conocimientos a la comunidad. "Keep making it simplex."
-Rex- Posted May 19, 2017 Author Posted May 19, 2017 (edited) 1 hour ago, Simple01 said: El GUIEDITOR de por si ya trae esta función que es igual vamos... Pero igual, gracias por aportar tus conocimientos a la comunidad. Mi función, funciona igual pero se entiende mejor que la de la wiki. Edited May 19, 2017 by -Rex- Leal es quien te ama y respeta tus sentimientos Paid Scripter, Contact me: https://www.facebook.com/rexscripting/ Estoy retirado.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now