Jump to content

Simple0x47

Members
  • Posts

    1,518
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Simple0x47

  1. Lasa ca o data o să vină un server diferit...
  2. You can't get a map that easy. I have LC already made in less than 1 day with a IDE/IPL importer and converted DFF's and TXD's.
  3. Simple0x47

    Salutare

    Salut, nu iți recomendez sa folosești un gamemode leaked ca OWL Gaming care deja îi folosit aproape peste tot după ce-a fost uploadat cu UPC cu tot (Nar fi trebuit să-l fi suit dar...). Iți recomendez MTA Paradise un bun gamemode bază ca sa faci tu scripturile tale
  4. I would like to colaborate, it will improve my C++ level
  5. Simple0x47

    gta 5 skin

    GTA 5 doesn't use RenderWare so it means you have to convert the GTA 5 models and textures files to DFF's and TXD's. There are lots of convertors which do such thing just google it
  6. Why don't you ask in the Romanian Section ? The creation of a new city with GTA SA defaults objects it's a hard job, there's gonna be too much useless parts of the objects which are going to load anyways. So a recommendation would be to create a custom map with custom objects.
  7. You could get the content of a .txt file with the io library. But I just don't get why you're trying to do it like that when there are more simplified ways to do it.
  8. Pe cine sa ajuți? Dacă aproape nimeni nu cere ajutor. Eu aș dedica câtva timp zilnic pentru a rezolva probleme și chestiuni despre scripting, MTA, Lua, etc.
  9. Ai pus acelaș tip de muniție pentru armele care ai adaugat, ar trebui să schimbi tipul de muniție.
  10. Me gustaría poder echar una mano de vez en cuando al proyecto
  11. isPlayerMapForced Cierren está wea ya :v
  12. Ese sistema está muy mal. Como mencione anteriormente la mejor manera de hacerlo es con una tabla de los objetos, un loop y un createObject. Todo ello en la parte servidor.
  13. ¿Qué método empleas para crear los objetos?
  14. Depende de que objeto es, lo recomendable para edificios son 300 como máximo. Para los cuerpos de los edificios con texturas no muy detalladas 1000 - 3000. Objetos de decoración (Farolas, Plantas) 50 - 150.
  15. ¿Has comprobado el return del createObject?
  16. Lo mejor es el uso de tablas y eventos. Optimización 100%.
  17. Transforma los .map ya que son archivos con una estructura XML lo que significa falta de optimización a createObjects en la parte servidor para evitar cargas inecesarias en el cliente. Esto aumenta la optimización considerablemente.
  18. Modificas la propiedad "AlwaysOnTop" usando guiSetProperty. guiSetProperty(elemento, "AlwaysOnTop", true)
  19. Take a look at the bandwith consummation.
  20. Maybe he created the wheels with createObject, then it is attached to the vehicle with attachElement. Some event handlers for the acceleration, etc... and finally setObjectScale for the change of the wheel size.
  21. Está formula se podría optimizar más para Lua
  22. Hi I have a very good resource f Zombie Roleplay, but I'm actually working at one. Add me on skype: killer.68x
  23. Simple0x47

    Pregunta

    Si para entrar a un INT se necesita emplear un Bind puedes crear tu propio evento con addEvent, añadirle una función con addEventHandlery llamar ese evento con triggerEvent.
  24. Necesitas una reestructuración, ya que COLS es un elemento no una tabla que almacene varios elementos, lo que lleva a su cambio continuo en el loop de esa manera provocando que la función solo se ejecute cuando el elemento cumpla el evento definido en el addEventHandler. Una manera "sucia" de hacerlo sería así. COLSHAPES = { { -2882.6452636719, 1897.1723632813, 0, 1000, 1000, 1000 }, { -363.17227172852, -416.40063476563, 0, 1000, 700, 500 }, { -3034.3217773438, -2238.9357910156, 1, 1150, 1300, 900 } } function AREAS( player, matchingDimension ) local DIMENSION = getElementDimension( player ) if getElementType( player ) and DIMENSION == 1 then killPed( player ) outputChatBox( "**FUISTE ASESINADO POR ABANDONAR LA ZONA INFECTADA**", player, 255, 0, 0 ) end end for k, data in ipairs( COLSHAPES ) do COLS = createColCuboid( data[1], data[2], data[3], data[4], data[5], data[6] ) addEventHandler( "onColShapeLeave", COLS, AREAS ) end Pero si quieres algo más optimizado puedes usar lo siguiente. C = { COL1 = { -2882.6452636719, 1897.1723632813, 0, 1000, 1000, 1000 }, COL2 = { -363.17227172852, -416.40063476563, 0, 1000, 700, 500 }, COL3 = { -3034.3217773438, -2238.9357910156, 1, 1150, 1300, 900 } } CS = { } for I = 1, #C do CS[I] = createColCuboid( unpack( C[I] ) ) addEventHandler( "onColShapeLeave", CS[I], AREAS ) end function AREAS( player, matchingDimension ) local DIMENSION = getElementDimension( player ) if getElementType( player ) and DIMENSION == 1 then killPed( player ) outputChatBox( "**FUISTE ASESINADO POR ABANDONAR LA ZONA INFECTADA**", player, 255, 0, 0 ) end end
  25. Then it's a complex dxDrawRectangle shit, making rotations to where's the cursor and all that. It would take time to make something like that
×
×
  • Create New...