Jump to content

Z_ReC

Members
  • Posts

    15
  • Joined

  • Last visited

About Z_ReC

  • Birthday 22/08/1996

Details

  • Gang
    left

Z_ReC's Achievements

Square

Square (6/54)

0

Reputation

  1. Gracias! Respecto a tu pregunta.. getSoundFFTData ( ͡° ͜ʖ ͡°)
  2. JAJA, si, quizá fui un poco eufórico, Gracias
  3. Buenas foro en español de MTA:SA. Les dejo una demostración de un script que hice hace un tiempo, la verdad ya lo había presentado en el foro en ingles, pero ahora vengo aquí, con mi lengua natal, a expresarme sin traductor! Se trata de un sistema de logueo, basado en las funciones "dx", con animación de cámara, vehículos en movimiento y peds. Uno de los detalles a destacar es la interfaz grafica, la cual esta montada directamente en el mundo de San Andreas y no en el Screen ( dxDrawMaterialLine3D confirmed? ). El sistema de registro/logeo esta conectado a una base de datos del lado del servidor (SQLite para el caso, aunque facilmente se podria adaptar a MySQL). En el siguiente enlace se ve el sistema, como funciona y sus características visuales. (v1.2, la 1.0 no fue mostrada al publico, solo con mis amigos.) NOTA: Para los curiosos el tema es "Purity" de Jumper Opinen y comenten sus dudas! Si veo que tienen interés, dedicaré tiempo a una serie de tutoriales escribiendo código LUA con fines destructivos educativos I <3 Lua!
  4. Thanks ! And yes, that is.
  5. Everything in life has its explanation..
  6. Hi MTA Forum!!! Welcome to the first trailer of the system login I'm scripting! Version 1.2 Video: Thanks! Give me your opinion!
  7. Thank you!!! The problem has been solved!!
  8. Hi MTA forum! When entering a server (any) automatically gives me a blue screen.. This did not happen in 1.4!! Screenshots album: (Blue screen in spanish, say spanish ) dxDiag: NOTE: GTA Single and other games work without problem, MTA is the only one that throws me error. Thanks!!!
  9. Hello , sorry for bothering with this topic, but it started a few days ago a report in the bugtracker this -> http://bugs.mtasa.com/view.php?id=8933 & they closed it, without being able to answer some things.. I recreated the function devised by "qaisjp" in the report. (or at least I think so ) local mouseSpeed = 0 local timerMouseSpeedUpdt = 0 local last = {["x"] = 0, ["y"] = 0} addEventHandler("onClientPreRender", root, function(deltaT) local current = {} current.x, current.y = getCursorPosition() if not current.x then return end mouseSpeed = math.sqrt(math.pow((last.x - current.x) / deltaT, 2)+math.pow((last.y - current.y) / deltaT, 2)) last.x = current.x last.y = current.y dxDrawText(string.format("%.2f", timerMouseSpeedUpdt*180), 828, 182, 948, 217, tocolor(157, 3, 0, 255), 2.00, "pricedown", "left") -- increase the number to 180 because the number is too small! end ) setTimer(function() timerMouseSpeedUpdt = mouseSpeed end, 150, 0) Run Client-Side and press F8 to show mouse (It does not work by pressing " T " key) Although if it works, has various problems. 1. It does not work if the cursor is hidden (obvious since "getCursorPosition" does not return the position of the cursor being hidden) 2. if you reach the edge of the screen to stop the speed of the mouse (can not be calculated because it does not change the cursor position ) My initial idea was to take the same mouse speed, natively, so (being the hidden cursor, or at the edge of the screen) work. Really sorry for taking away their time, and I hope your answers.
  10. A solution (less than optimal) would be inserted into "onClientRender" the following code: Server: addEventHandler("onResourceStart", getRootElement(), function() theCar = createVehicle(411, 0, 0, 3) addEventHandler("onVehicleEnter", root, function(thePlayer) triggerClientEvent(thePlayer, "pedAttCar", source) end) end) Client: addEvent("pedAttCar", true) addEventHandler("pedAttCar", root, function() local ped = createPed(299, 0,0,4) local misil = createObject(3790, 0, 0, 0) setElementCollisionsEnabled(ped,false) attachElements(ped, source, 0, 0, 1.6) attachElements(misil, source, 0, 0, 3, 0, 0, 270) local theCar = source addEventHandler("onClientRender", root, function() local _,_,rZ = getElementRotation(theCar) setElementRotation(ped, 0, 0, rZ) end ) end ) Though it works, it would be better to do with the "attach" What do you think?
  11. Hi, I'm Z_ReC and have a problem. Look at this Code : Server Code: addEventHandler("onResourceStart", getRootElement(), function() theCar = createVehicle(411, 0, 0, 3) ped = createPed(299, 0,0,0) misil = createObject(3790, 0, 0, 0) attachElements(ped, theCar, 0, 0, 1.7) attachElements(misil, theCar, 0, 0, 3, 0, 0, 270) end) Get in the car, and drive. As can be seen when running these lines, the PED created does not attached to the Z axis of rotation of the VEHICLE! I wonder if there is a solution, or is it a bug of MTA! Very VERY thanks for your time! I hope your answers (Sorry for my basic English, I'm say Spanish ) EDIT: View GIF demostration:
  12. Hi, I'm Z_ReC and have a problem. Look at this Code : Server Code: addEventHandler("onResourceStart", getRootElement(), function() theCar = createVehicle(411, 0, 0, 3) ped = createPed(299, 0,0,0) misil = createObject(3790, 0, 0, 0) attachElements(ped, theCar, 0, 0, 1.7) attachElements(misil, theCar, 0, 0, 3, 0, 0, 270) end) Get in the car, and drive. As can be seen when running these lines, the PED created does not attached to the Z axis of rotation of the VEHICLE! I wonder if there is a solution, or is it a bug of MTA! Very VERY thanks for your time! I hope your answers (Sorry for my basic English, I'm say Spanish )
  13. MTA excellent team work !! Your mod is awesome compared to others. My respects to you and go for more! Greetings from Argentina !!
×
×
  • Create New...