Jump to content

#Silvery'

Members
  • Posts

    56
  • Joined

  • Last visited

Everything posted by #Silvery'

  1. tomas lo hice asi mira : addEventHandler("onClientRender", root, function() local window = dxDrawRectangle(308, 226, 714, 352, tocolor(0, 0, 0, 194), false) local titulo = dxDrawRectangle(308, 200, 714, 26, tocolor(6, 120, 200, 179), false) local titulotext = dxDrawText("LOGIN PANEL BETA 1.0", 539, 175, 799, 250, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) local dxline = dxDrawLine(660, 226, 660, 577, tocolor(6, 120, 200, 255), 1, false) local dxtext = dxDrawText("LOGIN", 318, 236, 646, 260, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) local dxtext2 = dxDrawText("REGISTER", 683, 236, 1012, 259, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) local dxtext3 = dxDrawText("USER", 326, 281, 636, 308, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) local dxtext4 = dxDrawText("USER", 1050, 281, 636, 308, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) local dxtext5 = dxDrawText("USER", 326, 281, 636, 308, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) local dxtext6 = dxDrawText("USER", 1050, 281, 636, 308, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) end ) lo que pasa ahora es que los dx no desaparecen cuando toco login , play as guest o otros botones...
  2. Codigo lua: este es el client-side GUIEditor = { button = {}, edit = {}, } ------ gui buttonguest = guiCreateButton(313, 515, 108, 61, "Play as guest", false) buttonlog = guiCreateButton(399, 428, 168, 61, "Login", false) buttonreg = guiCreateButton(756, 430, 168, 61, "Register", false) loginuser = guiCreateEdit(315, 306, 336, 35, "", false) reguser = guiCreateEdit(675, 306, 336, 35, "", false) logpass = guiCreateEdit(315, 380, 336, 35, "", false) regpass = guiCreateEdit(675, 380, 336, 35, "", false) ------ dx window = dxDrawRectangle(308, 226, 714, 352, tocolor(0, 0, 0, 194), false) titulo = dxDrawRectangle(308, 200, 714, 26, tocolor(6, 120, 200, 179), false) titulotext = dxDrawText("LOGIN PANEL BETA 1.0", 539, 175, 799, 250, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) dxline = dxDrawLine(660, 226, 660, 577, tocolor(6, 120, 200, 255), 1, false) dxtext = dxDrawText("LOGIN", 318, 236, 646, 260, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) dxtext2 = dxDrawText("REGISTER", 683, 236, 1012, 259, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) dxtext3 = dxDrawText("USER", 326, 281, 636, 308, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) dxtext4 = dxDrawText("USER", 1050, 281, 636, 308, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) showCursor(true) function Guest ( ) guiSetVisible(window,false) guiSetVisible(buttonguest,false) guiSetVisible(buttonlog,false) guiSetVisible(buttonreg,false) guiSetVisible(loginuser,false) guiSetVisible(reguser,false) guiSetVisible(logpass,false) guiSetVisible(regpass,false) guiSetVisible(titulo,false) guiSetVisible(titulotext,false) guiSetVisible(dxline,false) guiSetVisible(dxtext,false) guiSetVisible(dxtext2,false) guiSetVisible(dxtext3,false) guiSetVisible(dxtext4,false) showCursor(false) end addEventHandler("onClientGUIClick",buttonguest,Guest,false) function cerrarPanel () guiSetVisible(window,false) guiSetVisible(buttonguest,false) guiSetVisible(buttonlog,false) guiSetVisible(buttonreg,false) guiSetVisible(loginuser,false) guiSetVisible(reguser,false) guiSetVisible(logpass,false) guiSetVisible(regpass,false) guiSetVisible(titulo,false) guiSetVisible(titulotext,false) guiSetVisible(dxline,false) guiSetVisible(dxtext,false) guiSetVisible(dxtext2,false) guiSetVisible(dxtext3,false) guiSetVisible(dxtext4,false) showCursor(false) end addEvent("cerrarPanel",true) addEventHandler("cerrarPanel",getRootElement(),cerrarPanel) function onRegister () local username = guiGetText(loginuser) local password = guiGetText(regpass) if username ~= "" and password ~= "" then triggerServerEvent("register",getLocalPlayer(),getLocalPlayer(),username,password) end end addEventHandler("onClientGUIClick",buttonreg,onRegister,false) function onLogin () local username = guiGetText(loginuser) local password = guiGetText(logpass) if username ~= "" and password ~= "" then triggerServerEvent("login",getLocalPlayer(),getLocalPlayer(),username,password) end end addEventHandler("onClientGUIClick",buttonlog,onLogin,false) un poco largo no bueno el problema es que los dxdraw no aparecen y en el server-side me dice que no esta en UTF-8 y qué lo esta cargando en ANSI ¿Alguna solución? gracias por leer esto.
  3. el codigo lo hice "client-side" bool createExplosion ( float x, float y, float z, int theType [, bool makeSound = true, float camShake = -1.0, bool damaging = true ] ) con esto que me habias dado no afecta el script ?.
  4. addCommandHandler('comando', function ( pSource) local acc = getPlayerAccount( pSource ) if not isGuestAccount( acc ) then if isObjectInACLGroup( 'user.'..getAccountName(acc), aclGetGroup ( 'Admin' ) ) then local x, y, z = getElementPosition ( pSource ) createExplosion( x, y, z, 2, pSource, true, -1.0, false ) outputChatBox("[uSS]#ff0000**Bombas explotadas**",pSource,255,255,255,true) else outputChatBox("[uSS]#ff0000**Acceso Denegado**",pSource,255,255,255,true) end else outputChatBox("[uSS]#FF0000**Acceso Denegado**",pSource,255,255,255,true) end end ) simpre digo la misma mierda y termino teniendo errores,
  5. mhhh.. gracias axel ( solo fastidio. alexs ) y gracias a los demas por la ayuda.
  6. listo alexs , el outputchatbox ya esta , ahora lo que vi es qué me hace daño como hago para qué no me haga daño o ¿ no es posible ?
  7. **PERDON NO SOLUCIONADO** ----by alexs_steel addCommandHandler('pb', function ( pSource) local acc = getPlayerAccount( pSource ) if not isGuestAccount( acc ) then outputChatBox("#ffbb00[ELITE]#FF0000No puedes usar esto.",pSource,255,255,255,true) if isObjectInACLGroup( 'user.'..getAccountName(acc), aclGetGroup ( 'Admin' ) ) then createExplosion ( x, y, z, 6, pSource ) outputChatBox("#ffbb00[ELITE]#ff0000**Bombas explotadas**",pSource,255,255,255,true) end end end ) queria saber si asi anda todo bien. PD:Luego pondre x, y, z en una entrada de una base.
  8. Bueno todos nos equivocamos D: , la proxima no me equivoco perdoneme.
  9. axel gracias por la ayuda , y igual gracias a todos , solucionado.
  10. Y como podria editarlo para que sea solo para un grupo de ACL y a los otros le diga que no puede usar ese comando ? PD: ya se que es con aclGetGroup pero necesitaria ayuda con como seria , PD:Gracias a los que me ayudaron.
  11. function bomb(source) x= y= z= createExplosion , 100, 1, x, y, z, 2 ) createExplosion , 100, 1, x, y, z, 2 ) createExplosion , 100, 1, x, y, z, 2 ) outputChatBox ("#FF0000Bombas explotadas!", getRootElement(), 255, 0, 0, true ) end addCommandHandler("bombaelite", bomb) asi se podria definir ? PD: el outputchatbox nose si esta bien quiero que sea para el jugador local
  12. no lose ando loco Offtopic nivel idiot:
  13. una pregunta algo asi estara bien PD:Si me equivoco corrijeme function bomb(source) setTimer (createExplosion , 100, 1, x, y, z, 2 ) setTimer (createExplosion , 100, 1, x, y, z, 2 ) setTimer (createExplosion , 100, 1, x, y, z, 2 ) end addCommandHandler("bombaelite", bomb)
  14. a no pos que facil gracias por la ayuda
  15. Hola gente del foro tengo una nueva duda la cual es como crear una exploción atravez de comandos, si alguien sabe porfavor que me ayude.
  16. #Silvery'

    [Ayuda]

    mhhhh @Flaky gracias por la ayuda.
  17. #Silvery'

    [Ayuda]

    Estoy haciendo un gui con dentro una lista y quiero hacer como un TOP-10 de los que tienen mas kills y necesito alguna ayudita para hacerlo unas funciones o algo
  18. #Silvery'

    [Ayuda]

    ¿que cosas podria usar para realizar un TOP-10 kills? PD : sera con un DirectX que todabia no hice
  19. Debe leer la wiki te lo dejo aquí. 'onClientRender': Se requiere para las funciones de dibujo DirectX, y también es útil para otras operaciones client-side que tienen que ser aplicado repetidamente con diferencias muy corto de tiempo entre ellos.
  20. Ami me recomendarón unir el MapNames con el radar que hice que era un poco igual al tuyo y si no sabes a que resource me refiero solo toca Aquí
  21. Gracias por la ayuda borderline.
  22. Hola gente del foro !. estaba revisando la wiki y encontre la siguiente function: 'setGlitchEnabled' y vi qué estaba la siguiente cosa: setGlitchEnabled ( "quickreload", true ) eso significa qué el arma recarga automaticamente o le debo hacer un server-side y un client-side para que se recarge automaticamente ? , ayuda porfavor , muchas gracias.
  23. lo se y gracias ciber saludos.
×
×
  • Create New...