Jump to content

Alexs

Members
  • Posts

    2,869
  • Joined

  • Last visited

Everything posted by Alexs

  1. setWeaponProperty Sirve para ambas.
  2. Alexs

    Tables

    Tienes muchisimos errores mas allá de las tablas. tablePlayers = {} changePlayer = 0 function addPoint(thePlayer) setElementData (thePlayer,"n",1) --Esto sera siempre uno, por consiguiente el de abajo siempre sera 2. table.insert (tablePlayers, #changePlayer + 1, getPlayerName(thePlayer), getElementData (thePlayer,"n") + 1) --Pones un argumento de mas, tambien siempre lo pondrá primero por que changePlayer es 0 y en caso de que eso busques, # esta de mas. end addCommandHandler ("plus", addPoint) function stop () outputChatBox ("The winner player is "..(#changePlayer,getPlayerName(thePlayer)).."!", getRootElement(), 0, 255, 0) --Ese concanate no tiene sentido y changePlayer ya es un numero, no hay un tamaño (lenght) que conseguir, aparte de que esto no consigue al jugador con mas 'plus' y 'thePlayer' no esta definido. end setTimer (stop,60000,1)
  3. Alexs

    Tables

    Si entiendes ingles, yo aprendí desde este tutorial: http://lua-users.org/wiki/TablesTutorial Pero seria un poco difícil explicártelo desde un post por que es bastante información.
  4. En mi nuevo Host me pasaba algo mas o menos igual y lo resolví poniendo una IP. http://www.cualesmiip.com/ Revisala acá y agrégala en la linea 11.
  5. Por lo que veo hay funciones que no publicaste, se te hace mas fácil volver a hacer uno tu.
  6. Si, pero no específicamente en estas partes.
  7. Por que no es para que funcione igual en distintas resoluciones, en algunas (mas pequeñas) aparecerá mas a la izquierda.
  8. Alexs

    Achicar texto

    Se me ocurre que en:
  9. Por que solo lo usas en la posición, pero no en el tamaño.
  10. Estas mezclando los lados, las de ACL son server, las del GUI son client.
  11. function resetAllBalance () for k, i in ipairs(getAccounts()) do setBankAccountBalance( getAccountName(i), 0, SQLdata ) --Si lo pondrás en otro recurso, recuerda el 'call'. end end Con esa función puedes volver a poner las cuentas en 0, el problema es que no se que significa SQLdata.
  12. A ti no, a ellos si, pero si la empresa esta abierta el problema ya fue resuelto.
  13. En USA (EUA) siempre es mas rápido
  14. Yo antes usaba OG-Servers y era completamente seguro, jamas tuve algún problema, aunque si no confías en ese hosting te recomiendo FirezHost que conozco bien y es por completo seguro. Pero lo normal es que no hayan problemas y si te dice que es online directamente es por que así es, muchas empresas ofrecen activación automática y es bastante sencillo de hacer.
  15. Yo lo veo por completo ordenado: function consoleCreateMarker ( thePlayer, commandName ) if hasObjectPermissionTo ( thePlayer, "command.mute" ) then local x, y, z = getElementPosition ( thePlayer ) if ( theMarker ) then if isElement(theMarker) then destroyElement(theMarker) theMarker = nil end if isElement(blip) then destroyElement(blip) blip = nil end outputChatBox ( "event disabled", thePlayer ) else theMarker = createMarker ( x + 2, y + 2, z - 1, "cylinder", 1.5, 255, 255, 0, 170 ) blip = createBlipAttachedTo ( theMarker, 49, 1 ) dim = getElementDimension ( thePlayer ) int = getElementInterior(thePlayer) setElementDimension ( theMarker, dim ) setElementInterior ( theMarker, int) outputChatBox ( "#00FF00An event has just been created use #FF0000/eventwarp #00FF00now!", getRootElement(), 255, 255, 255, true ) end end end addCommandHandler ( "evento", consoleCreateMarker )
  16. Alexs

    Os regalo el CS:GO

    aahahahahahahahahahahaahahahahahahahaaaa
  17. adminTeam = createTeam("Admin",255,0,0) auto1 = createVehicle(455,0,0,0) --Coordenadas x,y,z en pos 0. function vehicle(thePlayer) if getElementType(thePlayer) == "player" then --acá te falto un 'if' if ( getPlayerTeam ( thePlayer) ~= getTeamFromName ( "Admin" ) ) then cancelEvent() outputChatBox("Este no es tu vehiculo.",thePlayer,255,255,255) --aca tenias 'source' y no puedes mostrarle un mensaje a un vehiculo, tambien lo tenias debajo de un else, es decir, aparecería si era su vehículo. end end addEventHandler("onVehicleStartEnter",auto1,vehicle) Jamas escribas localPlayer en server side, tampoco hiciste que funcionara para 'auto1'.
  18. https://wiki.multitheftauto.com/wiki/OnClientPedDamage y lee los argumentos de setPedAnimation: 7º Argumento: interruptable: if set to 'false' other tasks wont be able to interupt the animation. Setting this to 'false' also gives this function more power to override other animations that are running. For example, squatting after a jump can be terminated.
  19. Lee los argumentos, estas poniendo algo que seria para escribir en un atributo, yo uso fileWrite por que me parece mejor, pero las funciones XML son las funciones XML.
×
×
  • Create New...