Jump to content

Como Hacer?(Menu De Reglas)


maauroo

Recommended Posts

Posted

Hola.. Como Estan? Hace Unas Semanas Atras E Echo Un Tema Que Queria Saber Como Hacer Un Menu De Regla Y La Solucion No La Entendia Bien, Quisiera Que Me Digan Un Mini Tutorial Como Hacer Una Ventana Usando El "GuiEditor" De Todas Las Reglas Del Servidor Y Que Tenga Boton "Aceptar" ¿Se Entiende?"Se Los Agradesco."

Posted

Simplemente lo diseñas y listo.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Hace click derecho y pone en "Create Window".

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Haces click derecho sobre la ventana.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Vos me estas tomando el pelo o que? es que no sabes a que le dicen probar?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Ne Mentira.. Ya Esta: Aqui El Codigo:

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
  
GUIEditor_Window[1] = guiCreateWindow(604,304,264,228,"Reglas:",false) 
GUIEditor_Label[1] = guiCreateLabel(8,27,162,19,"*No Pedir Ser Administrador.",false,GUIEditor_Window[1]) 
guiSetAlpha(GUIEditor_Label[1],1) 
GUIEditor_Label[2] = guiCreateLabel(7,46,218,18,"*No Hacer Spam O Tendras Problemas.",false,GUIEditor_Window[1]) 
GUIEditor_Label[3] = guiCreateLabel(7,65,239,22,"*Respetar A Los User Y Administradores.",false,GUIEditor_Window[1]) 
GUIEditor_Label[4] = guiCreateLabel(7,85,235,20,"*No Insultar A Los User Y Administradores.",false,GUIEditor_Window[1]) 
GUIEditor_Label[5] = guiCreateLabel(14,131,196,16,"Estas Son Las Reglas Del Servidor...",false,GUIEditor_Window[1]) 
GUIEditor_Label[6] = guiCreateLabel(15,147,168,16,"Respeta Las Reglas O Tendras Problemas!",false,GUIEditor_Window[1]) 
GUIEditor_Label[7] = guiCreateLabel(141,193,122,21,"By:[XTE][M]aauroo",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(14,190,115,24,">> Aceptar <<",false,GUIEditor_Window[1]) 
  
  
  
  
--- --- --- --- --- 

Ahora Quiero Ponerlo Cada Ves Que Entran Las Persona Y Cuando Le Dan Aceptar Puedan Jugar. Como Lo Hago?

Posted

Simplemente lo pones en un script y creas el meta.xml.

Para lo del boton usa el evento: onClientGUIClick.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
Algo Entendi Como Se Usa Pero Como Hago La Funcion Para Que Se Cierre La Ventana Del Menu De Regla?
addEventHandler("onClientGUIClick",getRootElement(), 
function (player) 
            if (source == GUIEditor_Button[1]) then 
                guiSetVisible (GUIEditor_Window[1],false) 
                showCursor (false) 
            end 
end 

Ah.. y te recomiendo usar variables, es mas ordenado.

Hi, this is a signature.

Posted

Mira Lo Puse Asi.. Lo Probe Pero No Funca. Algo Esta Mal:

function menuReglas()  
GUIEditor_Window[1] = guiCreateWindow(604,304,264,228,"Reglas:",false) 
GUIEditor_Label[1] = guiCreateLabel(8,27,162,19,"*No Pedir Ser Administrador.",false,GUIEditor_Window[1]) 
guiSetAlpha(GUIEditor_Label[1],1) 
GUIEditor_Label[2] = guiCreateLabel(7,46,218,18,"*No Hacer Spam O Tendras Problemas.",false,GUIEditor_Window[1]) 
GUIEditor_Label[3] = guiCreateLabel(7,65,239,22,"*Respetar A Los User Y Administradores.",false,GUIEditor_Window[1]) 
GUIEditor_Label[4] = guiCreateLabel(7,85,235,20,"*No Insultar A Los User Y Administradores.",false,GUIEditor_Window[1]) 
GUIEditor_Label[5] = guiCreateLabel(14,131,196,16,"Estas Son Las Reglas Del Servidor...",false,GUIEditor_Window[1]) 
GUIEditor_Label[6] = guiCreateLabel(15,147,168,16,"Respeta Las Reglas O Tendras Problemas!",false,GUIEditor_Window[1]) 
GUIEditor_Label[7] = guiCreateLabel(141,193,122,21,"By:[XTE][M]aauroo",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(14,190,115,24,">> Aceptar <<",false,GUIEditor_Window[1]) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), menuReglas) 
  
addEventHandler("onClientGUIClick",getRootElement(), 
function (player) 
            if (source == GUIEditor_Button[1]) then 
                guiSetVisible (GUIEditor_Window[1],false) 
                showCursor (false) 
            end 
end 

Supuestamente Use "addEventHandler" A Los Gui Para Que Al Entrar Funcione Pero No Anda. Como Lo Arreglo?

Posted
function menuReglas()  
ventana = guiCreateWindow(604,304,264,228,"Reglas:",false) 
label = guiCreateLabel(8,27,162,19,"*No Pedir Ser Administrador.",false,ventana) 
label2 = guiCreateLabel(7,46,218,18,"*No Hacer Spam O Tendras Problemas.",false,ventana) 
label3 = guiCreateLabel(7,65,239,22,"*Respetar A Los User Y Administradores.",false,ventana) 
label4 = guiCreateLabel(7,85,235,20,"*No Insultar A Los User Y Administradores.",false,ventana) 
label5 = guiCreateLabel(14,131,196,16,"Estas Son Las Reglas Del Servidor...",false,ventana) 
label6 = guiCreateLabel(15,147,168,16,"Respeta Las Reglas O Tendras Problemas!",false,ventana) 
label7 = guiCreateLabel(141,193,122,21,"By:[XTE][M]aauroo",false,ventana) 
boton = guiCreateButton(14,190,115,24,">> Aceptar <<",false,ventana) 
showCursor (true) 
end 
addEventHandler("onClientResourceStart", getRootElement(), menuReglas) 
  
addEventHandler("onClientGUIClick",getRootElement(), 
function (player) 
            if (source == boton) then 
                guiSetVisible (ventana,false) 
                showCursor (false) 
            end 
end) 

Proba asi.

EDIT: Si queres hacer un renglon abajo no es necesario que hagas otro label :/ podes crear una tabla o directamente usar \n (eso hara que el texto pase a la siguiente linea)

Hi, this is a signature.

Posted

Funciona Bien.. Eso Es Todo. Gracias "AraaFTW,Solid" Se Los Agradesco. Pueden Cerrar.

EDIT: Ultima Cosa.. Como Hago Para Que Nadie Pueda Agrandar La Ventana?? Se Entiende Lo Que Digo?

Posted
function menuReglas()  
ventana = guiCreateWindow(604,304,264,228,"Reglas:",false) 
label = guiCreateLabel(8,27,162,19,"*No Pedir Ser Administrador.",false,ventana) 
label2 = guiCreateLabel(7,46,218,18,"*No Hacer Spam O Tendras Problemas.",false,ventana) 
label3 = guiCreateLabel(7,65,239,22,"*Respetar A Los User Y Administradores.",false,ventana) 
label4 = guiCreateLabel(7,85,235,20,"*No Insultar A Los User Y Administradores.",false,ventana) 
label5 = guiCreateLabel(14,131,196,16,"Estas Son Las Reglas Del Servidor...",false,ventana) 
label6 = guiCreateLabel(15,147,168,16,"Respeta Las Reglas O Tendras Problemas!",false,ventana) 
label7 = guiCreateLabel(141,193,122,21,"By:[XTE][M]aauroo",false,ventana) 
boton = guiCreateButton(14,190,115,24,">> Aceptar <<",false,ventana) 
showCursor (true) 
    guiWindowSetSizable ( ventana, false ) 
end 
addEventHandler("onClientResourceStart", getRootElement(), menuReglas) 
  
addEventHandler("onClientGUIClick",getRootElement(), 
function (player) 
            if (source == boton) then 
                guiSetVisible (ventana,false) 
                showCursor (false) 
            end 
end) 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...