Jump to content

Alexs

Members
  • Posts

    2,869
  • Joined

  • Last visited

Everything posted by Alexs

  1. Alexs

    Desactivar Mapa

    unbindKey ( Elemento, "F11" )
  2. function visible ( ) if ( guiGetVisible ( ventana ) == true ) then --Si la Ventana es Visible guiSetVisible ( ventana, false ) --Se oculta else --Si no guiSetVisible ( ventana, true ) --Aparece end --1 por el if-then-else end --Otro por las funciones addCommandHandler ("v", visible)
  3. ahh Ok, y respecto al HUD, sigo intentadolo en Server y Client y sigue igual Edit: checke la consola y dice: [2012-06-04 15:59:26] WARNING: ZC-HUD\hud_s.lua:5: Bad argument @ 'showPlayerHudComponent' [Expected element at argument 1, got number '2294.6958007813'] Linea 5: showPlayerHudComponent ( source, "clock", false ) Evento: onPlayerSpawn
  4. Probe asi: function ocultact ( source ) showPlayerHudComponent ( source, "health", false ) showPlayerHudComponent ( source, "armor", false ) showPlayerHudComponent ( source, "money", false ) showPlayerHudComponent ( source, "clock", false ) showPlayerHudComponent ( source, "breath", false ) end addEventHandler ( "onPlayerJoin", getRootElement(), ocultact ) y sigue igual, ademas alguien sabe hacer que una variable que consiga con getElementHealth Tenga maximo 3 Digitos?? PD: Perdonen el Bump
  5. Si, y me mate un par de veces y todo, antes lo habia echo con "onClientResourceStart" y se ocultaba cuando empezaba otro recurso y no este
  6. Hola a Todos, ya acabe (casi, me faltan las armas) mi nuevo HUD y al aparecer no funciona el quitar el antiguo HUD, que esta mal? PD: El Debugscript esta vacio y esto esta en el client side function mostrar ( ) guiSetVisible (vidadata, true ) guiSetVisible (armordata, true ) guiSetVisible (dinerodata, true ) guiSetVisible (imgvida, true ) guiSetVisible (imgarmor, true ) showPlayerHudComponent ( "armour", false ) showPlayerHudComponent ( "breath", false ) showPlayerHudComponent ( "clock", false ) showPlayerHudComponent ( "health", false ) showPlayerHudComponent ( "money", false ) end addEventHandler ( "onClientPlayerSpawn", getLocalPlayer(), mostrar ) esta junto al guisetVisible, pero esa es toda la linea.
  7. Este Evento crea algo de lag verdad?
  8. setElementData(localPlayer, "SkinsSO", skinsSO) en la variable de skinsSO debe ir el parentesis? skinsSO = {161} PD: Lindo Avatar
  9. Maybe i edit this and make a Settimer to delete the ramps
  10. Alexs

    help with country

    Scoreboard can't use flags because don't accept images
  11. Alexs

    help with country

    You edit thw scoreboard to use images?
  12. Hi Everyone, SolidSnake14 Help me with this but i dont know how to finish it. addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "L", "down", crear ) end ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) ramps = { } for index, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "L", "down", crear ) end end ) function crear ( player, key, keyState ) local mx, my, mz = getElementPosition ( player ) local accame = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user.".. accame, aclGetGroup ( "Admin" ) ) then ramps [ player ] = createObject ( 1634, mx + 5, my, mz ) setTimer ( function ( theRamp ) if ( theRamp ) then destroyElement ( theRamp ) end end ,3000, 1, ramps [ player ] ) end end The Problem is on coordinates, if i am going to west the ramp spawn in my side and no in my front, how i can fix it?
  13. Alexs

    Funcionaria asi?

    Wow, me llego a marear, esto devuelve la direction del punto A al punto B? como uso eso? ahh ya entendi, esto me serviria para que su rotacion sea igual a la mia, pero el problema es que la rampa aparece a mi lado, no frente a mi, eso quiero corregir Edit: Era para un amigo que me lo pidio, pero me acompleje mucho, Pueden cerrar el tema, no acabare el script
  14. Alexs

    Funcionaria asi?

    Tengo un problema, como hago que siempre aparezca frente a mi sin importar mi rotacion? mi idea seria usar getElementRotation y si la rotacion X es 90 se crea con mx + 10 y asi... pero no estoy seguro.. Edit: algo asi intentare: if isObjectInACLGroup ( "user.".. accame, aclGetGroup ( "Admin" ) ) and rmx == 90 then ramps [ player ] = createObject ( 1634, mx, my + 10, mz ) else if isObjectInACLGroup ( "user.".. accame, aclGetGroup ( "Admin" ) ) and rmy == 90 then ramps [ player ] = createObject ( 1634, mx + 90, my, mz )
  15. Alexs

    Funcionaria asi?

    Gracias funciono perfecto y descubri que X es el lado e Y el frente Edit: Tengo un problema, como hago que siempre aparezca frente a mi sin importar mi rotacion?
  16. Hola a Todos, queria saber si esto funcionaria o como hacerlo funcionar: borrar ( ) destroyElement ( ramp ) end end function crear ( player, key, keyState ) local mx,my,mz = getElementPosition( player ) local accame = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accame, aclGetGroup ( "Admin" ) ) then ramp = createObject ( 1634, mx + 5,my,mz ) --Aca me crea la duda sobre la variable.... setTimer ( borrar, 3000, 1 ) end end bindKey ( player, "l", "down", crear ) Esto deberia funcionar, verdad? Edit: lo intente asi y no funciona
  17. No conozco el uso de ese evento...
  18. Hola a Todos, hare un HUD para la vida, pero recorde que SolidSnake14 una vez dijo que por poner Timer's muy cortos sobreocupo RAM de su hosting, aproximadamente cuanto es lo mas bajo que se puede antes de crear Lag o exigir mucho al PC?
  19. Gracias, eso funciono perfecto! :B
  20. Intente asi: function nopedfs ( source ) local es = getElementID ( source ) if es == "pedfs" then cancelEvent() end end addEventHandler ( "onClientPedDamage", getRootElement(), nopedfs ) y asi: function nopedfs ( source ) local es = getElementModel ( source ) if es == 49 then cancelEvent() end end addEventHandler ( "onClientPedDamage", getRootElement(), nopedfs ) y el ped sigue muriendo! PD: El Ped = pedfs = createPed ( 49, -1043.95996, -1056.78002, 129.211929 )
  21. Gracias, Buena Idea, pero para evitar conflictos con otros peds usare getElementID
  22. Alexs

    me ayudarian

    Paren el Forobardo, y Plate, Edikosh tiene razon, no le ponen ganas, para scriptear hay que tener ganas o si no, no funcionara y te recuerdo que no es nuestro deber ayudarte... y respecto al script, que evento usas?
  23. es un resource que une objetos a las distintas partes de un Player o Ped: y creo que seria lo mismo
×
×
  • Create New...