error403 ツ Posted April 14, 2018 Share Posted April 14, 2018 (edited) Hola necesito ayuda estoy creando un mini panel donde los admin puedan iniciar aparte los mapas. Esto es todo lo que tengo en parte del cliente. Quote function iniciarMap() Ventana = guiCreateWindow((sW - 350) / 2, (sH - 199) / 2, 350, 199, "Lista de mapas", false) guiWindowSetSizable(Ventana , false) guiSetVisible(Ventana , false) Tab = guiCreateTabPanel(10, 25, 340, 164, false, Ventana ) Mapas = guiCreateTab("Mapas", Tab) MapListSearch = guiCreateEdit ( 3,3,132,20, "", false, Mapas ) guiCreateStaticImage ( 135,5,17,17,"img/lupa.png", false, Mapas ) MapList = guiCreateGridList ( 5,26,139,363, false, Mapas ) guiGridListAddColumn( MapList, "Mapas",0.8) CurMap = guiCreateLabel ( 167,101,186,15, "Mapa: N/A", false, Mapas ) CurGamemode = guiCreateLabel ( 167,116,193,33, "Gamemode: N/A", false, Mapas ) guiCreateLabel(161,6,70,17,"Informacion:",false,Mapas ) Start = guiCreateButton ( 363,6,74,27, "Iniciar", false, Mapas ) NextMap = guiCreateButton ( 363,33,74,27, "Next Map", false, Mapas ) RefreshList = guiCreateButton ( 363,60,74,27, "Refrescar", false, Mapas ) end addEventHandler("onClientResourceStart", resourceRoot, iniciarMap) bindKey("F2", "down",iniciarMap) Espero que me ayuden. Edited April 14, 2018 by MedicenMarcos Link to comment
LLCoolJ Posted April 14, 2018 Share Posted April 14, 2018 bindKey("F2", "down", function() showCursor(guiSetVisible(Ventana,not guiGetVisible(Ventana)) and guiGetVisible(Ventana)) end) Link to comment
Sticmy Posted April 14, 2018 Share Posted April 14, 2018 function bind( ) if guiGetVisible(Ventana) == true then guiSetVisible(Ventana, false) showCursor(false) else guiSetVisible(Ventana, true) showCursor(true) end end bindKey("F2", "down", bind) Link to comment
error403 ツ Posted April 14, 2018 Author Share Posted April 14, 2018 [Español] Gracias! Pero quiero que me carge todos los mapas en la MapList = guiCreateGridList ( 5,26,139,363, false, Mapas ) guiGridListAddColumn( MapList, "Mapas",0.8) y se pueda iniciar con el boton de Start = guiCreateButton ( 363,6,74,27, "Iniciar", false, Mapas ) Cambiar de mapa NextMap = guiCreateButton ( 363,33,74,27, "Next Map", false, Mapas ) y refresque la lista de mapas con RefreshList = guiCreateButton ( 363,60,74,27, "Refrescar", false, Mapas ) [Inglés] Thank you!But I want you to upload all the maps in the MapList = guiCreateGridList ( 5,26,139,363, false, Mapas ) guiGridListAddColumn( MapList, "Mapas",0.8)and can be started with the Start = guiCreateButton button (363,6,74,27, "Start", false, Maps)Change map NextMap = guiCreateButton (363,33,74,27, "Next Map", false, Maps)and refresh the map list with RefreshList = guiCreateButton (363,60,74,27, "Refresh", false, Maps) Link to comment
error403 ツ Posted April 15, 2018 Author Share Posted April 15, 2018 (edited) function iniciarMap() Ventana = guiCreateWindow((sW - 350) / 2, (sH - 199) / 2, 350, 199, "Lista de mapas", false) guiWindowSetSizable(Ventana , false) guiSetVisible(Ventana , false) Tab = guiCreateTabPanel(10, 25, 340, 164, false, Ventana ) Mapas = guiCreateTab("Mapas", Tab) MapListSearch = guiCreateEdit ( 3,3,132,20, "", false, Mapas ) guiCreateStaticImage ( 135,5,17,17,"img/lupa.png", false, Mapas ) MapList = guiCreateGridList ( 5,26,139,363, false, Mapas ) guiGridListAddColumn( MapList, "Mapas",0.8) CurMap = guiCreateLabel ( 167,101,186,15, "Mapa: N/A", false, Mapas ) CurGamemode = guiCreateLabel ( 167,116,193,33, "Gamemode: N/A", false, Mapas ) guiCreateLabel(161,6,70,17,"Informacion:",false,Mapas ) Start = guiCreateButton ( 363,6,74,27, "Iniciar", false, Mapas ) NextMap = guiCreateButton ( 363,33,74,27, "Next Map", false, Mapas ) RefreshList = guiCreateButton ( 363,60,74,27, "Refrescar", false, Mapas ) end addEventHandler("onClientResourceStart", resourceRoot, iniciarMap) Quiero que los botones hagan sus funciones! y que en el guiCreateGridList solo muestre los mapas! Edited April 15, 2018 by MedicenMarcos Link to comment
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