Jump to content

Alexs

Members
  • Posts

    2,869
  • Joined

  • Last visited

Everything posted by Alexs

  1. Try this: addEventHandler("onClientGUIDoubleClick",TypeClothes_Grid,function() local Selected = guiGridListGetItemText ( TypeClothes_Grid, guiGridListGetSelectedItem ( TypeClothes_Grid ), 1 ) if ( tostring(Selected) ) then for i=1, 67 do clothe = getClothesByTypeIndex ( 0, i ) crow = guiGridListAddRow ( NameClothes_Grid ) guiGridListSetItemText ( NameClothes_Grid, crow, colname, tostring ( clothe ), false, false ) guiGridListSetItemText ( NameClothes_Grid, crow, colID, tonumber ( i ), false, false ) end end end) addEventHandler("onClientGUIClick",root, function (b) if b == "left" then if source == CloseClothesWindow then guiSetVisible(Clothes_Window,false) showCursor(false) end elseif source == BuyClothes then local Selected = guiGridListGetItemText ( NameClothes_Grid, guiGridListGetSelectedItem ( NameClothes_Grid ), 1 ) local Selected2 = guiGridListGetItemText ( NameClothes_Grid, guiGridListGetSelectedItem ( NameClothes_Grid ), 2 ) addPedClothes ( source, tostring(Selected2), "vest", Selected ) guiSetVisible(Clothes_Window,false) showCursor(false) end end)
  2. No me refería a eso, según he comprobado, esta clase de servidores son los que mas usuarios tienen, pero son los que mas tardan en conseguir jugadores activos.
  3. Some message in the debug?
  4. You can use 'getPedWeapon'.
  5. Alexs

    ¡Duda!

    Puedes utilizar 'loadstring' para ejecutar un código desde un 'string' o pasar el texto del archivo a un recurso y ejecutarlo para ciertos jugadores en especifico.
  6. Alexs

    ¡Duda!

    Es posible que sea un error del mapa.
  7. Eso no tiene ningún sentido, el argumento 'relative' de las funciones GUI utiliza coordenadas entre 0 y 1, tus números son mucho mayores a eso. *Por favor eliminar este post, @TomasitoCaram ya corrigió su grave error.
  8. Aunque 'guiGetScreenSize' es el método mas utilizado, es en realidad poco útil para cosas como textos o imágenes, ya que las resoluciones de las pantallas poseen escalas diferentes. http://es.wikipedia.org/wiki/Resolucion_de_pantalla
  9. Aunque el post tenga como tema a Insane Hosting, esto sigue siendo el foro de MTA, existe un foro sobre CS:GO en la web de Steam que podrías utilizar para promocionar tu empresa.
  10. Utiliza 'interpolateBetween' (y/o 'guiSetSize' de ser necesario).
  11. No se si entendí mal, pero ¿como esperas que algo se mueva sin cambiar de posición? De todas formas puedes utilizar 'interpolateBetween'.
  12. Nadie te esta tratando mal, solo hacemos criticas constructivas y corregimos tus errores.
  13. Ya corregí la ortografía, gramática y traducciones faltantes. Si alguien ve un error por favor corrijalo: 'createExplosion'.
  14. Utiliza 'guiMoveToBack'.
  15. Creo que nunca vi ese truco, ¿podrías decirnos como se activa en Singleplayer? Así podremos ayudarte de mejor manera.
  16. ¿Ya probaste pedir ayuda en el foro de soporte para servidores?
  17. Es en realidad sencillo, algo así: function drawWindows() local window = dxDrawRectangle(308, 226, 714, 352, tocolor(0, 0, 0, 194), false) local titulo = dxDrawRectangle(308, 200, 714, 26, tocolor(6, 120, 200, 179), false) local titulotext = dxDrawText("LOGIN PANEL BETA 1.0", 539, 175, 799, 250, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) local dxline = dxDrawLine(660, 226, 660, 577, tocolor(6, 120, 200, 255), 1, false) local dxtext = dxDrawText("LOGIN", 318, 236, 646, 260, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) local dxtext2 = dxDrawText("REGISTER", 683, 236, 1012, 259, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) local dxtext3 = dxDrawText("USER", 326, 281, 636, 308, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) local dxtext4 = dxDrawText("USER", 1050, 281, 636, 308, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) local dxtext5 = dxDrawText("USER", 326, 281, 636, 308, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) local dxtext6 = dxDrawText("USER", 1050, 281, 636, 308, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) end addEventHandler("onClientRender", root, drawWindows ) function cerrarPanel () guiSetVisible(window,false) showCursor(false) removeEventHandler( 'onClientRender', root, drawWindows ) --los mismos argumentos que en 'addEventHandler'. end
  18. Alexs

    TABLE?

    cars[1][1] = 579 cars[2][1] = 400 http://lua-users.org/wiki/TablesTutorial http://www.lua.org/pil/11.2.html
  19. Compare the value with -1.
  20. Cuando dices 'todos los días se apaga', ¿Hay alguna hora especifica?, ¿Algo especial en el momento que el servidor se apaga?
  21. Lose, lo hice dormido y apurado además el Inglés no es mi fuerte Si el ingles 'no es tu fuerte' y no tenias tiempo ni animo, ¿para que traducirlo? Algunas partes no están traducidas y otras no tienen ningún sentido.
×
×
  • Create New...