Jump to content

Simple0x47

Members
  • Posts

    1,518
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Simple0x47

  1. Intenta volver a descargar MTA:SA y comprueba que el hash sea correcto, por si acaso tienes un cliente modificado. Pero también puede succeder esto por un "virus" que tienes en tu PC. Intenta formatear las particiones y reinstala tu sistema operativo para ver si hay algun cambio.
  2. Tables are needed for performance, because setElementData takes a lot of CPU and RAM.
  3. I think that login is not a dx one, they used HTML/CSS to make it.
  4. Cuando este en la otra zona remueves el evento de la zona anterior con removeEventHandler y todos felices. Y si no sabes como llevarlo a cabo te puedo indicar unos caminos que puedas tomar como el uso de tablas.
  5. Simple0x47

    Help

    Yeah because the event is triggered when the Client starts the resource (when the resource is started in server or when the client enters into the server). You should remove the event and define a function with identifier.
  6. Simple0x47

    .

    There's any limit of points?
  7. Try this: GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0, 0, 312, 206, "Welcome to ...", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(31, 31, 239, 51, "Login", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF1BFB03") GUIEditor.button[2] = guiCreateButton(31, 110, 239, 51, "Register", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFDE801") addEventHandler("onClientGUIClick", GUIEditor.button[2], registerPanel, false) end ) function registerButton(button,state) if button == "left" and state == "up" then registerWindow = guiCreateWindow(0, 0, 239, 328, "Register if you dont have an account", false) guiWindowSetSizable(registerWindow, false) userLabel = guiCreateLabel(10, 27, 88, 45, "User", false, registerWindow) guiSetFont(userLabel, "sa-header") guiLabelSetColor(userLabel, 253, 232, 1) editUser = guiCreateEdit(105, 37, 124, 26, "", false, registerWindow) passLabel = guiCreateLabel(10, 82, 88, 45, "Pass", false, registerWindow) guiSetFont(passLabel, "sa-header") guiLabelSetColor(passLabel, 253, 232, 1) editPass = guiCreateEdit(105, 91, 124, 26, "", false, registerWindow) registerButton = guiCreateButton(21, 148, 198, 57, "Register", false, registerWindow) guiSetFont(registerButton, "sa-header") guiSetProperty(registerButton, "NormalTextColour", "FF36FC01") backButton = guiCreateButton(20, 235, 198, 57, "Back", false, registerWindow) guiSetFont(backButton, "sa-header") guiSetProperty(backButton, "NormalTextColour", "FFFD0000") addEventHandler("onClientGUIClick",registerButton,accountSave) end end local counter = 1 function accountSave(button,state) accountDataBase = xmlLoadFile("DataBases/accounts.xml") newUsername = tostring(guiGetText(editUser)) newPassword = tostring(guiGetText(editPass)) if accountDataBase then return else accountDataBase = xmlCreateFile("DataBases/accounts.xml","root") accountNode = xmlCreateChild(accountDataBase,"Account"..counter) xmlNodeSetAttribute(accountNode,"username",nil) xmlNodeSetAttribute(accountNode,"password",nil) end if button == "left" and state == "up" then if newPassword and newUsername then accountTable = xmlNodeGetChildren(accountDataBase) for i,node in pairs do otherNamers = xmlNodeGetAttribute(accountDataBase, "username") if newUsername == tostring(otherNamers) then break else accountNode = xmlCreateChild(accountDataBase,"Account"..counter) xmlNodeSetAttribute(accountNode,"username",newUsername) xmlNodeSetAttribute(accountNode,"password",newPassword) counter = counter + 1 break end end end end end
  8. Mal ahí, es un color crema, no blanco. Buah ni se logra ver el crema, este ¿qué tal? #ececec Tesing
  9. I hope these scripts are not stolen or downloded one's. There's no one which is going to host you that kind of scripts, just maybe the stolen ones to get them self a copy of them and leave you in a second when they've got it. So the best way to do it would be to buy a host by yourself.
  10. There are lots of ways you can choose. The one that I recommend you, would be to create a table named "vehicles" and save there as key the vehicle ID the vehicle element, then use some events to make the connections to access the right vehicle. That would be the best way to do it, but you could also use setElementData for it.
  11. That's why the function affects the player's vehicle in which if he's not in it the vehicle hasn't got that property. I would recommend the use of tables and events to get done this things.
  12. Simple0x47

    .

    Why just don't you use the cases. if var <= 25 then color = {0, 125, 0} elseif var <= 50 and var > 25 then color = {0, 150, 0} elseif var <= 75 and var > 50 then color = {0, 175, 0} end
  13. Me parece que ese es el blanco normal. #FFFFFF
  14. Simple0x47

    Duda

    Podrías remover todos los binds si el jugador se encuentra en la dimensión definida y emplea un reemplazo de addCommandHandler, que cuando se llame el comando identifique la dimensión del jugador se le permita llevar a cabo la función del comando o no hacer nada. Si necesitas información más detallada añademe a skype: killer.68x
  15. Yeah that's because the Item which you're throwing doesn't have a specified object. Which make's the throwing of the item invisible.
  16. setFPSLimit ¿Qué funcion se emplea para obtener un código único del PC de un jugador?
  17. engineGetModelTextureNames ¿Con que función se crea una animación entre dos coordenadas 2D o 3D?
  18. Igual tienes que registrarlo antes de iniciarlo. Si es uno propio, claro. Y no puse triggerEvent . engineReplaceModel @Tomas ¿Con qué función podemos retornar una tabla con los eventos 'latentes'? engineImportTXD @Tomas return @Blue ¿Qué funcion se emplea para modificar la distancia de dibujado de un objeto?
  19. Simple0x47

    Unire.

    [quote name=..&G:..]Bai omule, tu chiar nu realizezi ca aproape toti ownerii de server nu stiu scripting si vor donatii? Fiecare vrea sa fie mare boss la el acasa. Si sti doar ca romanul fura, daca toti se unesc, doar 1 sau 2 vor face treaba, restul stau, se uita si descarca frumos arhiva cu gamemod-ul si se duc sa isi deschida un server. Deci, eu te-asi sfatuii sa nu mai dezgropi mortii si sa lasi sectiunea romaneasca ingropata, nu ii mai fa vesnica pomerine ca nu are nevoie Trist dar adevarat.
  20. Simple0x47

    MTA on Mac

    There's a GTA SA version for Mac but there's no MTA. I thought about making a MTA Linux Client but it would be useless due to poor amount of Linux GTA SA Players.
  21. Simple0x47

    Duda

    Pues usa el método que has dicho, un cambio de dimension y la creación del mapa en dicha dimensión.
  22. Simple0x47

    Duda

    Vamos que quieres hacer un multigamemode o qué?
  23. You can insert the fake players into the table which gets all players from the server. I can help you just post the scoreboard.lua or add me on skype killer.68x
  24. You will need a triggerEvent in a JS script and a executeBrowserJavascript to insert the token of the player allows the use remember function.
  25. You could write a program which makes connection to your server using the source code of MTA. (This is the best way to do it and the hardest)
×
×
  • Create New...