Plate Posted June 16, 2012 Posted June 16, 2012 Hola miren yo uso el recurso tienda_de_armas quise poner 2 les cambio las imagenes las pongo en diferentes posiciones pero las 2 se mesclan Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
iFoReX Posted June 16, 2012 Posted June 16, 2012 postea tu codigo. elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Plate Posted June 16, 2012 Author Posted June 16, 2012 creo que no es necesario mostrar mas que el marker Server : function mostrarTienda(hitPlayer) marcadorTienda = createMarker(2505.6000976563,-1711.5,13,"cylinder",1.5,0,125,250,153) triggerClientEvent(hitPlayer,"mostrarTienda2",getRootElement(),hitPlayer) end addEventHandler("onMarkerHit",marcadorTienda,mostrarTienda2) client tiendaDeArmas3 = guiCreateWindow(181,168,456,318,"Tienda de armas para expertos",false) botonComprarDeagle = guiCreateButton(15,106,99,26,"Comprar($2000)",false,tiendaDeArmas3) botonComprarShotg = guiCreateButton(121,106,99,26,"Comprar($3000)",false,tiendaDeArmas3) botonComprarMp5 = guiCreateButton(226,106,99,26,"Comprar($4000)",false,tiendaDeArmas3) botonComprarM4 = guiCreateButton(330,106,98,26,"Comprar($5000)",false,tiendaDeArmas3) botonComprarMunicDeagle = guiCreateButton(11,234,105,26,"Munic.x50($200)",false,tiendaDeArmas3) botonComprarMunicM4 = guiCreateButton(336,234,105,26,"Munic.x120($300)",false,tiendaDeArmas3) botonComprarMunicMp5 = guiCreateButton(228,234,105,26,"Munic.x90($300)",false,tiendaDeArmas3) botonComprarMunicShotg = guiCreateButton(120,234,105,26,"Munic.x30($100)",false,tiendaDeArmas3) municMp5Img = guiCreateStaticImage(248,154,68,73,"images/53.png",false,tiendaDeArmas3) municM4Img = guiCreateStaticImage(356,155,62,70,"images/55.png",false,tiendaDeArmas3) municDeagleImg = guiCreateStaticImage(35,157,64,71,"images/51.png",false,tiendaDeArmas3) municShotgImg = guiCreateStaticImage(141,154,66,72,"images/52.png",false,tiendaDeArmas3) imageDeagle = guiCreateStaticImage(35,38,63,61,"images/24.png",false,tiendaDeArmas3) imageM4 = guiCreateStaticImage(342,36,64,62,"images/31.png",false,tiendaDeArmas3) imageMp5 = guiCreateStaticImage(242,34,65,65,"images/29.png",false,tiendaDeArmas3) imageEscopeta = guiCreateStaticImage(138,37,65,62,"images/25.png",false,tiendaDeArmas3) Salir = guiCreateButton(362,279,70,25,"Salir",false,tiendaDeArmas3) guiWindowSetMovable(tiendaDeArmas3,false) guiWindowSetSizable(tiendaDeArmas3,false) guiSetVisible(tiendaDeArmas3,false) function mostrarTienda2() guiSetVisible (tiendaDeArmas3,true) showCursor(true) end addEvent("mostrarTienda2",true) addEventHandler("mostrarTienda2",getRootElement(),mostrarTienda2) server tienda2 cylinder1 = createMarker(2505.6000976563,-1711.5,13,"cylinder",1.5,0,125,250,153) function mostrarTienda(hitPlayer) triggerClientEvent(hitPlayer,"mostrarTienda",getRootElement(),hitPlayer) end addEventHandler("onMarkerHit",cylinder1,mostrarTienda) client GUIEditor_Image = {} TiendaDeArmas2 = guiCreateWindow(181,168,456,318,"Tienda de armas para expertos",false) botonComprarColt = guiCreateButton(15,106,99,26,"Comprar($0)",false,TiendaDeArmas2) botonComprarTec = guiCreateButton(121,106,99,26,"Comprar($3000)",false,TiendaDeArmas2) botonComprarUzi = guiCreateButton(226,106,99,26,"Comprar($4000)",false,TiendaDeArmas2) botonComprarAk = guiCreateButton(330,106,98,26,"Comprar($5000)",false,TiendaDeArmas2) botonComprarMunicColt = guiCreateButton(11,234,105,26,"Munic.x50($0)",false,TiendaDeArmas2) botonComprarMunicAk = guiCreateButton(336,234,105,26,"Munic.x120($300)",false,TiendaDeArmas2) botonComprarMunicUzi = guiCreateButton(228,234,105,26,"Munic.x90($300)",false,TiendaDeArmas2) botonComprarMunicTec = guiCreateButton(120,234,105,26,"Munic.x30($100)",false,TiendaDeArmas2) municUziImg = guiCreateStaticImage(248,154,68,73,"images/53.png",false,TiendaDeArmas2) municM4Img = guiCreateStaticImage(356,155,62,70,"images/55.png",false,TiendaDeArmas2) municColtImg = guiCreateStaticImage(35,157,64,71,"images/51.png",false,TiendaDeArmas2) municTecImg = guiCreateStaticImage(141,154,66,72,"images/52.png",false,TiendaDeArmas2) imageColt = guiCreateStaticImage(35,38,63,61,"images/24.png",false,TiendaDeArmas2) imageAk = guiCreateStaticImage(342,36,64,62,"images/31.png",false,TiendaDeArmas2) imageUzi = guiCreateStaticImage(242,34,65,65,"images/29.png",false,TiendaDeArmas2) imageTec = guiCreateStaticImage(138,37,65,62,"images/25.png",false,TiendaDeArmas2) Salir = guiCreateButton(362,279,70,25,"Salir",false,TiendaDeArmas2) guiWindowSetMovable(TiendaDeArmas2,false) guiWindowSetSizable(TiendaDeArmas2,false) guiSetVisible(TiendaDeArmas2,false) function mostrarTienda() playSound ( "sounds/shop/bien.mp3", false ) guiSetVisible (TiendaDeArmas2,true) showCursor(true) end addEvent("mostrarTienda",true) addEventHandler("mostrarTienda",getRootElement(),mostrarTienda) Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
iFoReX Posted June 16, 2012 Posted June 16, 2012 lol pero dime que es lo que quieres hacer elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Plate Posted June 16, 2012 Author Posted June 16, 2012 dije que quise poner 2 tiendas pero se mesclan y aparesen las 2 en 1 -.- Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Alexs Posted June 16, 2012 Posted June 16, 2012 Con crear 1 Gui basta, no debes crear 1 por cada tienda Developer @ MYVAL
Plate Posted June 16, 2012 Author Posted June 16, 2012 si pero soy malo creando guis me salen todos chuecos jajjaa jaja por eso creo 2 tienda_de_armas pero se mesclan me dirian como hacer para que no se mesclen Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Alexs Posted June 16, 2012 Posted June 16, 2012 No comprendo eso de "mezclarse" publica una foto. Pero prueba asi: marcadorTienda = createMarker(2505.6000976563,-1711.5,13,"cylinder",1.5,0,125,250,153) cylinder1 = createMarker(2505.6000976563,-1711.5,13,"cylinder",1.5,0,125,250,153) tiendaDeArmas3 = guiCreateWindow(181,168,456,318,"Tienda de armas para expertos",false) botonComprarDeagle = guiCreateButton(15,106,99,26,"Comprar($2000)",false,tiendaDeArmas3) botonComprarShotg = guiCreateButton(121,106,99,26,"Comprar($3000)",false,tiendaDeArmas3) botonComprarMp5 = guiCreateButton(226,106,99,26,"Comprar($4000)",false,tiendaDeArmas3) botonComprarM4 = guiCreateButton(330,106,98,26,"Comprar($5000)",false,tiendaDeArmas3) botonComprarMunicDeagle = guiCreateButton(11,234,105,26,"Munic.x50($200)",false,tiendaDeArmas3) botonComprarMunicM4 = guiCreateButton(336,234,105,26,"Munic.x120($300)",false,tiendaDeArmas3) botonComprarMunicMp5 = guiCreateButton(228,234,105,26,"Munic.x90($300)",false,tiendaDeArmas3) botonComprarMunicShotg = guiCreateButton(120,234,105,26,"Munic.x30($100)",false,tiendaDeArmas3) municMp5Img = guiCreateStaticImage(248,154,68,73,"images/53.png",false,tiendaDeArmas3) municM4Img = guiCreateStaticImage(356,155,62,70,"images/55.png",false,tiendaDeArmas3) municDeagleImg = guiCreateStaticImage(35,157,64,71,"images/51.png",false,tiendaDeArmas3) municShotgImg = guiCreateStaticImage(141,154,66,72,"images/52.png",false,tiendaDeArmas3) imageDeagle = guiCreateStaticImage(35,38,63,61,"images/24.png",false,tiendaDeArmas3) imageM4 = guiCreateStaticImage(342,36,64,62,"images/31.png",false,tiendaDeArmas3) imageMp5 = guiCreateStaticImage(242,34,65,65,"images/29.png",false,tiendaDeArmas3) imageEscopeta = guiCreateStaticImage(138,37,65,62,"images/25.png",false,tiendaDeArmas3) Salir = guiCreateButton(362,279,70,25,"Salir",false,tiendaDeArmas3) guiWindowSetMovable(tiendaDeArmas3,false) guiWindowSetSizable(tiendaDeArmas3,false) guiSetVisible(tiendaDeArmas3,false) function mostrarTienda() if source == cylinder1 or source == marcadorTienda then guiSetVisible (tiendaDeArmas3,true) showCursor(true) end end addEventHandler("onClientMarkerHit",root,mostrarTienda) Solo ClientSide Developer @ MYVAL
Plate Posted June 16, 2012 Author Posted June 16, 2012 no no funciona se siguen mesclando ( se ponen una sobre la otra vos das un click y si no tenes el level o el dinero te aparece dos veces no tienes dinero) Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Alexs Posted June 16, 2012 Posted June 16, 2012 Postea el codigo completo, el error no esta en el marcador Developer @ MYVAL
Plate Posted June 16, 2012 Author Posted June 16, 2012 te lo paso por pm Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Recommended Posts