Jump to content

Edikosh998

Members
  • Posts

    569
  • Joined

  • Last visited

Everything posted by Edikosh998

  1. Edikosh998

    Problemas

    Y si lo pones en MTA San Andreas/server/mods/deathmatch/resources/[gameplay]
  2. Oh i got it Thanks you very much Castillo
  3. Si lees en la descripcion, te dice lo que se puede hacer... Podes usar su archivo text.xml, para agregar 3d text... o usar exported function (create3DText)
  4. Usa este programa : https://community.multitheftauto.com/ind ... ls&id=3090
  5. I read wiki, but i didn't get it at all... The intention is to load a xml File, but what is the realtion with .map (I know that a map file is like a xml file).
  6. Hello, I don't understand what does "loadMapData" do : 1) The first argument that says an xmlnode, it's a node from a map file, or a node from a xml file? 2) Then I don't get the idea of this function. This, makes appear an object from a map/xml file?
  7. Just a really stupid mistake My intention was to put it into getElementSpeed. Sorry
  8. You ignored what Castillo said. Use getElementSpeed, it returns one value that is the elementSpeed. function getElementSpeed(thePlayer) local car = getPedOccupiedVehicle(thePlayer,"kph") local km = getElementSpeed(car) -- U can't use progress bar. Use a label instead, with clientRender. end
  9. Tenes que usar el relative en ese caso Fijate que si ves en la wiki, el ejemplo de guiCreateButton (https://wiki.multitheftauto.com/wiki/GuiCreateButton) El tipo usa el relative en true Osea guiCreateButton ( float x, float y, float width, float height, string text, bool relative, [ element parent = nil ] ) Fijate que vos en ese relative pusiste "false" porque usaste pixeles reales. Si queres que se adapte tendras que cambiar a "true", pero buscar las coordenadas en relative ( usa el GUI Editor para ello). De esa forma, se adapta a todas las resoluciones.
  10. Me gusta que quieras aprender de 0 cero para conocer bien los conceptos. Yo te recomiendo que aprendas esta guia de C++ , que es casi lo mismo que Lua. Es mas, C++ es un poco mas dificil, pero esta guia, tiene muchos ejemplos y hace las cosas paso por paso. Ademas, si lo entendes bien, despues la wiki lo lees al toque. Fijate esto > http://www.nachocabanes.com/c/ --- Aca hay varias guias, pero te recomiendo la segunda que dice en PDF. Ahi hay varios capitulos, podes empezar por el segundo o tercero que ya va concretamente con C. Vos segui bien esa introduccion, a mi me sirvio demasiado. Despues vas a Lua, a la referencia 5.1 en espaniol : http://www.lua.org/manual/5.1/es/ -- No te recomiendo que vayas aca de una, porque vas a entender menos de la mitad de las cosas, porque es mas una referencia que una guia. Ojala que te sirva.
  11. Edikosh998

    unas cosas

    "Jamm" type="script" version="1.0.0" /> Despues lo empezas el resource con el admin Panel o usando el mtaconfig para que empieze el "server.exe". Es raro la verdad
  12. Edikosh998

    unas cosas

    Es el que probe yo y puse una imagen de que funciona? Si es asi, NO TE FUNCIONA a vos, no es que no sirve lo que te pasaron
  13. Edikosh998

    unas cosas

    Como seria lo de bloquear autos? Que segun el level el tipo pueda entrar o no?
  14. triggerClientEvent(source,"onPlaySoundNearElement",source,theVehicle) -- Te pide un argumento que es el vehiculo Fijate de leer despues en la wiki como usar el triggerClientEvent. Supuestamente lo tenes que pegar el evento en el comando de lock o unlock.
  15. Me parece pero creo que el error es muy boludo ( a primera vista) : addEventHandler ( "onResourceStart", resourceRoot, function ( ) vehicles = { } for index = 1, 15 do vehicles [ getElementByID ( "autos"..tostring( index )) ] = true -- El ID tiene que ser string, y el index es number end end )
  16. Yo creo que habria que hacer un tutorial de scripting GENERAL, no solo para explicar lo de basico del MTA, sino tambien de la programacion en si. Porque a la larga los lenguajes comparten muchas caracteristicas, solo cambian las funciones y usos, y alguna regla en particular.
  17. Great, and my last question : An array data, resets ( or delete/elimina ) when you quit or refresh your server?
  18. So instead of saving data using the userdata player, I can table = {} getAccountName(account) table[accountName] = true Right?
  19. Hi everyone, I wanna know if... table = {} table[player] = true -- for example if that data is going to be removed when the player quits or it will be saved.
  20. "Don't care what people say".... Just keep on with your work.
  21. function spawnBike (lol) local id = getElementModel(thevehicle) if id == 509 or id == 510 or id == 481 then local x, y, z = getElementPosition ( source ) local xr, yr, zr = getElementRotation ( source ) createVehicle = createVehicle (id, x, y, z + 0.5, xr, yr, zr ) warpPedIntoVehicle(source, createVehicle) end end addEvent( "spawnBike", true) addEventHandler("spawnBike",root,spawnBike)
  22. local gname2 = executeSQLQuery("SELECT groupName FROM Groups_members WHERE name = ?",getAccountName(getPlayerAccount(player))) if #gname2 >= 1 then -- This means , if there is one or more rows That's one way
  23. Edikosh998

    Traffic

    lol Its a resource...You must paste it at server/mods/deathmatch/resources/gameplay...
×
×
  • Create New...