Jump to content

MisterQuestions

Members
  • Posts

    460
  • Joined

  • Last visited

Everything posted by MisterQuestions

  1. No entinedo aveces funciona aveces no les paso el codigo.... Client-Side ---Trigger Register addEventHandler("onClientClick", getRootElement(), function( button, state, px, py ) if ( button == "left" and state == "down" ) then if ( px > 266 and px < 359 and py > 634 and py < 674 ) then local username = guiGetText( user_edit ) local password = guiGetText( pass_edit ) if ( user ~= "" and pass ~= "" ) then -- outputChatBox("El boton de register funciona!", 255, 255, 255, true) triggerServerEvent("player:register", getLocalPlayer(), username, password) end end end end ) Server-Side function serverRegister( username, password ) local account = getAccount ( username, password ) if (account == false) then addAccount(tostring(username),tostring(password)) outputChatBox("Te has registrado exitosamente! #ff9e00(#ffffff"..username..", "..password.."#ff9e00)#ffffff.", source, 255, 255, 255, true) outputChatBox("Ahora puedes logearte!", source, 255, 255, 255, true) else outputChatBox("Failed to register!", source, 255, 0, 0, true) end end addEvent("player:register", true) addEventHandler("player:register", getRootElement(), serverRegister)
  2. No entinedo aveces funciona aveces no les paso el codigo.... Client-Side ---Trigger Register addEventHandler("onClientClick", getRootElement(), function( button, state, px, py ) if ( button == "left" and state == "down" ) then if ( px > 266 and px < 359 and py > 634 and py < 674 ) then local username = guiGetText( user_edit ) local password = guiGetText( pass_edit ) if ( user ~= "" and pass ~= "" ) then -- outputChatBox("El boton de register funciona!", 255, 255, 255, true) triggerServerEvent("player:register", getLocalPlayer(), username, password) end end end end ) Server-Side function serverRegister( username, password ) local account = getAccount ( username, password ) if (account == false) then addAccount(tostring(username),tostring(password)) outputChatBox("Te has registrado exitosamente! #ff9e00(#ffffff"..username..", "..password.."#ff9e00)#ffffff.", source, 255, 255, 255, true) outputChatBox("Ahora puedes logearte!", source, 255, 255, 255, true) else outputChatBox("Failed to register!", source, 255, 0, 0, true) end end addEvent("player:register", true) addEventHandler("player:register", getRootElement(), serverRegister)
  3. No entinedo aveces funciona aveces no les paso el codigo.... Client-Side ---Trigger Register addEventHandler("onClientClick", getRootElement(), function( button, state, px, py ) if ( button == "left" and state == "down" ) then if ( px > 266 and px < 359 and py > 634 and py < 674 ) then local username = guiGetText( user_edit ) local password = guiGetText( pass_edit ) if ( user ~= "" and pass ~= "" ) then -- outputChatBox("El boton de register funciona!", 255, 255, 255, true) triggerServerEvent("player:register", getLocalPlayer(), username, password) end end end end ) Server-Side function serverRegister( username, password ) local account = getAccount ( username, password ) if (account == false) then addAccount(tostring(username),tostring(password)) outputChatBox("Te has registrado exitosamente! #ff9e00(#ffffff"..username..", "..password.."#ff9e00)#ffffff.", source, 255, 255, 255, true) outputChatBox("Ahora puedes logearte!", source, 255, 255, 255, true) else outputChatBox("Failed to register!", source, 255, 0, 0, true) end end addEvent("player:register", true) addEventHandler("player:register", getRootElement(), serverRegister)
  4. And how to make with arrow_l to return camera modes? I should chance - instead of + ? ?
  5. Whats wrong on that code? Should change camera with the arrow_r
  6. Whats wrong with this code? Server-Side function lookDMSelection( source ) setCameraMatrix(source, 2296.2890625, -1395.0576171875, 694.02215576172, 2308.0771484375, -1410.1640625, 688.58026123047) end function lookDDSelection( source ) setCameraMatrix(source, 2262.130859375, -1402.4462890625, 699.66162109375, 2271.5087890625, -1421.4033203125, 691.99346923828) end function lookHTSelection( source ) setCameraMatrix(source, 2248.107421875, -1400.54296875, 695.64147949219, 2232.736328125, -1411.4306640625, 696.97576904297) end bindKey(source, "arrow_r", "down", function() if lookDMSelection() then lookDDSelection() elseif lookDDSelection() then lookHTSelection() elseif lookHTSelection() then lookDMSelection() end end )
  7. Hey, can somebody say me if its possible to make chat just visible for players in a dimension, if is on dimension 0 when he chat just be visible for players on dimension 0. and make a global chat to show to all players. doesn't care their dimension.
  8. No se .-. Reinicie el servidor y ya registraba y todo
  9. Listo, ya no tengo mas errores, gracias.
  10. Si, tiene permisos de admin & todo pero no se que falla...
  11. Hola a todos, tengo un problema, he creado un pequeño login, pero pues tengo el problema de que no me registra la cuenta, o almenos eso parece por que aparece como si la registrara pero al intentar logear con esta, da error. Aqui el codigo. Server-Side function serverLogin( username, password ) if not (username == "") then if not (password == "") then local account = getAccount ( username, password ) if ( account ~= false ) then logIn(source, account, password) outputChatBox("You successfully logged in", source, 0, 255, 0, true) else outputChatBox("Failed to login!", source, 255, 0, 0, true) end end end end addEvent("player:login", true) addEventHandler("player:login", getRootElement(), serverLogin) function serverRegister( username, password ) local account = getAccount ( username, password ) if (account == false) then addAccount(tostring(username),tostring(password)) outputChatBox("Te has registrado exitosamente! #ff9e00(#ffffff"..username..", "..password.."#ff9e00)#ffffff.", source, 255, 255, 255, true) else outputChatBox("Failed to register!", source, 255, 0, 0, true) end end addEvent("player:register", true) addEventHandler("player:register", getRootElement(), serverRegister)
  12. Gracias Gracias Gracias!!!!!!!! Funciona enserio gracias.
  13. Funcionan los botones, Estoy creando un script de anuncio con el text-speech que ya existe. Se usa el traductor de google como voz. & puse en idioma EN & ES para los textos. Funciona todo bien, pero ahora quiero hacer que no solo se me ponga un sonido ami si no a todos los jugadores.
  14. Mmm linux he visto algo, tu y yo cruzamos lo del rectangulo, pero si te das cuenta tambien tiene un texto, usa los valores del texto y funciona, pero los del rectangulo no (no tengo explicación pero funciona)
  15. Funciona pero me podrias dar algun ejemplo más para comprender por completo el uso de este? Yo he intentado hacer lo mismo que tu linux, no veo resultados.
  16. Editado, Me puedes decir si esta bien, debe poner el lenguage al dar click al rectangle. Porfavor Si esta mal, me podrias decir en que, o corregirlo porfavor.
  17. Lamento revivir este tema viejo, pero enserio necesito ayuda Un ejemplo porfavor
×
×
  • Create New...