Jump to content

eldelahoz

Members
  • Posts

    209
  • Joined

  • Last visited

Everything posted by eldelahoz

  1. Pero como ago eso e.e
  2. eldelahoz

    Dimencion

    Hola lo que pasa es que quiero saber como puedo hacer para que en la dimencion o sea en el afk por ejemplo aparescan unos objetos que estan en la dimencion normal ¡Saludos!
  3. Gracias pero creo que no lo podre hacer no se ni un 5% de scriting T_T ¡Saludos!
  4. Lo que quiero editar es la función cuando oprime la tecla ejemplo: Oprime la tecla + y se agranda el cubo pero cada vez que lo quiera agrandar necesito oprimirlo lo que quiero hace es que cuando un da la tecla la función siga dando sin necesitar de estar hundiendo la misma tecla cada vez que quiera hacer lo agrandar por así decirlo ¡Saludos!
  5. Lo único que quiero que me digan o que me ayuden por favor es que tengo que cambiar exactamente !Saludos¡
  6. Que daria asi? -- -- -- -- -- -- -- -- -- -- --- -- Collision Editor by MuLTi. -- -- -- -- -- -- -- -- -- -- -- --- local Guivar = 0 local gMe = getLocalPlayer() local gCol local gColx, gColy, gColz, gColw, gColh, gCold, rot --[[ function move_o_rotate_2() if(isInColEdit() == false) then return end local x, y, z = getElementPosition(gCol) gColx, gColy, gColz, gColw, gColh, gCold, rot = x, y, z, gColw, gColh, gCold, rot-0.25 setCameraMatrix(x+2+gColw, y+7+gColw, z+2+(gColh/2), x+(gColw/2), y+(gColw/2), z) destroyElement(gCol) gCol = createColCuboid(gColx, gColy, gColz, gColw, gColh, gCold) setElementRotation(gCol, rot, rot, rot) end function move_o_rotate_1() if(isInColEdit() == false) then return end local x, y, z = getElementPosition(gCol) gColx, gColy, gColz, gColw, gColh, gCold, rot = x, y, z, gColw, gColh, gCold, rot+0.25 setCameraMatrix(x+2+gColw, y+7+gColw, z+2+(gColh/2), x+(gColw/2), y+(gColw/2), z) destroyElement(gCol) gCol = createColCuboid(gColx, gColy, gColz, gColw, gColh, gCold) setElementRotation(gCol, rot, rot, rot) end --]] function move_o_depth_raus() if(isInColEdit() == false) then return end local x, y, z = getElementPosition(gCol) if(gColh < 0.1) then return end gColx, gColy, gColz, gColw, gColh, gCold = x, y, z, gColw, gColh-0.25, gCold setCameraMatrix(x+2+gColw, y+7+gColw, z+2+(gColh/2), x+(gColw/2), y+(gColw/2), z) destroyElement(gCol) gCol = createColCuboid(gColx, gColy, gColz, gColw, gColh, gCold) end function move_o_depth_rein() if(isInColEdit() == false) then return end local x, y, z = getElementPosition(gCol) gColx, gColy, gColz, gColw, gColh, gCold = x, y, z, gColw, gColh+0.25, gCold setCameraMatrix(x+2+gColw, y+7+gColw, z+2+(gColh/2), x+(gColw/2), y+(gColw/2), z) destroyElement(gCol) gCol = createColCuboid(gColx, gColy, gColz, gColw, gColh, gCold) end function move_o_tiefe() if(isInColEdit() == false) then return end local x, y, z = getElementPosition(gCol) gColx, gColy, gColz, gColw, gColh, gCold = x, y, z, gColw, gColh, gCold-0.25 setCameraMatrix(x+2+gColw, y+7+gColw, z+2+(gColh/2), x+(gColw/2), y+(gColw/2), z) destroyElement(gCol) gCol = createColCuboid(gColx, gColy, gColz, gColw, gColh, gCold) end function move_o_hohe() if(isInColEdit() == false) then return end local x, y, z = getElementPosition(gCol) gColx, gColy, gColz, gColw, gColh, gCold = x, y, z, gColw, gColh, gCold+0.25 setCameraMatrix(x+2+gColw, y+7+gColw, z+2+(gColh/2), x+(gColw/2), y+(gColw/2), z) destroyElement(gCol) gCol = createColCuboid(gColx, gColy, gColz, gColw, gColh, gCold) end function move_o_zup() if(isInColEdit() == false) then return end local x, y, z = getElementPosition(gCol) gColx, gColy, gColz, gColw, gColh, gCold = x, y, z+0.25, gColw, gColh, gCold setCameraMatrix(x+2+gColw, y+7+gColw, z+2+(gColh/2), x+(gColw/2), y+(gColw/2), z) destroyElement(gCol) gCol = createColCuboid(gColx, gColy, gColz, gColw, gColh, gCold) end function move_o_zero() if(isInColEdit() == false) then return end local x, y, z = getElementPosition(gCol) gColx, gColy, gColz, gColw, gColh, gCold = x, y, z-0.25, gColw, gColh, gCold setCameraMatrix(x+2+gColw, y+7+gColw, z+2+(gColh/2), x+(gColw/2), y+(gColw/2), z) destroyElement(gCol) gCol = createColCuboid(gColx, gColy, gColz, gColw, gColh, gCold) end function move_o_right() if(isInColEdit() == false) then return end local x, y, z = getElementPosition(gCol) if(gColw < 0.1) then return end gColx, gColy, gColz, gColw, gColh, gCold = x, y, z, gColw-0.25, gColh, gCold setCameraMatrix(x+2+gColw, y+7+gColw, z+2+(gColh/2), x+(gColw/2), y+(gColw/2), z) destroyElement(gCol) gCol = createColCuboid(gColx, gColy, gColz, gColw, gColh, gCold) end function move_o_front() if(isInColEdit() == false) then return end local x, y, z = getElementPosition(gCol) gColx, gColy, gColz, gColw, gColh, gCold = x-0.25, y-0.5, z, gColw, gColh, gCold setCameraMatrix(x+2+gColw, y+7+gColw, z+2+(gColh/2), x+(gColw/2), y+(gColw/2), z) destroyElement(gCol) gCol = createColCuboid(gColx, gColy, gColz, gColw, gColh, gCold) end function move_o_back() if(isInColEdit() == false) then return end local x, y, z = getElementPosition(gCol) gColx, gColy, gColz, gColw, gColh, gCold = x+0.25, y+0.5, z, gColw, gColh, gCold setCameraMatrix(x+2+gColw, y+7+gColw, z+2+(gColh/2), x+(gColw/2), y+(gColw/2), z) destroyElement(gCol) gCol = createColCuboid(gColx, gColy, gColz, gColw, gColh, gCold) end function move_o_xright() if(isInColEdit() == false) then return end local x, y, z = getElementPosition(gCol) gColx, gColy, gColz, gColw, gColh, gCold = x+0.25, y-0.25, z, gColw, gColh, gCold setCameraMatrix(x+2+gColw, y+7+gColw, z+2+(gColh/2), x+(gColw/2), y+(gColw/2), z) destroyElement(gCol) gCol = createColCuboid(gColx, gColy, gColz, gColw, gColh, gCold) end function move_o_xleft() if(isInColEdit() == false) then return end local x, y, z = getElementPosition(gCol) gColx, gColy, gColz, gColw, gColh, gCold = x-0.25, y+0.25, z, gColw, gColh, gCold setCameraMatrix(x+2+gColw, y+7+gColw, z+2+(gColh/2), x+(gColw/2), y+(gColw/2), z) destroyElement(gCol) gCol = createColCuboid(gColx, gColy, gColz, gColw, gColh, gCold) end function move_o_left() if(isInColEdit() == false) then return end local x, y, z = getElementPosition(gCol) gColx, gColy, gColz, gColw, gColh, gCold = x, y, z, gColw+0.25, gColh, gCold setCameraMatrix(x+2+gColw, y+7+gColw, z+2+(gColh/2), x+(gColw/2), y+(gColw/2), z) destroyElement(gCol) gCol = createColCuboid(gColx, gColy, gColz, gColw, gColh, gCold) end function o_fertig_func() if(isInColEdit() == false) then return end setElementAlpha(gMe, 255) setCameraTarget(gMe) unbindBinds() destroyElement(gCol) gCol = nil setElementData(gMe, "coledit", false) outputChatBox("Informations: ", 200, 200, 200, false) outputChatBox("coordinates: "..gColx..", "..gColy..", "..gColz, 255, 255, 255) outputChatBox("Lenght: "..gColw..", depth: "..gColh..", height: "..gCold, 255, 255, 255) triggerServerEvent("onCollisionSpeichere", gMe, gColx, gColy, gColz, gColw, gColh, gCold) outputChatBox("Collision has been saved into collisions.txt!", 255, 255, 255) setElementFrozen(gMe, false) gColx, gColy, gColz, gColw, gColh, gCold, rot = nil, nil, nil, nil, nil, nil, nil end function o_abbrechen_func() if(isInColEdit() == false) then return end gColx, gColy, gColz, gColw, gColh, gCold = nil, nil, nil, nil, nil, nil setElementAlpha(gMe, 255) setCameraTarget(gMe) unbindBinds() destroyElement(gCol) gCol = nil setElementData(gMe, "coledit", false) outputChatBox("You canceled the operation.", 0, 200, 0, false) setElementFrozen(gMe, false) end function unbindBinds(id2) unbindKey("arrow_l", "down", move_o_left) unbindKey("arrow_r", "down", move_o_right) unbindKey("arrow_u", "down", move_o_depth_raus) unbindKey("arrow_d", "down", move_o_depth_rein) unbindKey("pgup", "down", move_o_zero) unbindKey("pgdn", "down", move_o_zup) unbindKey("num_add", "down", move_o_hohe) unbindKey("num_sub", "down", move_o_tiefe) --unbindKey("mouse_wheel_up", "down", move_o_rotate_1) --unbindKey("mouse_wheel_down", "down", move_o_rotate_2) unbindKey("num_2", "down", move_o_back) unbindKey("num_6", "down", move_o_xleft) unbindKey("num_4", "down", move_o_xright) unbindKey("num_8", "down", move_o_front) unbindKey("enter", "down", o_fertig_func) unbindKey("space", "down", o_abbrechen_func) end function setToBinds(id2) bindKey("arrow_l", "down", move_o_left) bindKey("arrow_r", "down", move_o_right) bindKey("arrow_u", "down", move_o_depth_raus) bindKey("arrow_d", "down", move_o_depth_rein) bindKey("pgup", "down", move_o_zero) bindKey("pgdn", "down", move_o_zup) bindKey("num_add", "down", move_o_hohe) bindKey("num_sub", "down", move_o_tiefe) bindKey("num_2", "down", move_o_back) bindKey("num_6", "down", move_o_xleft) bindKey("num_4", "down", move_o_xright) bindKey("num_8", "down", move_o_front) bindKey("enter", "down", o_fertig_func) bindKey("space", "down", o_abbrechen_func) --bindKey("mouse_wheel_up", "down", move_o_rotate_1) --bindKey("mouse_wheel_down", "down", move_o_rotate_2) end function setToCollisionEdit(id) local x, y, z = getElementPosition(gMe) setDevelopmentMode(true) outputChatBox("Use /showcol to see the collision shape!.", 0, 255, 0, false) outputChatBox("Use the arrow keys, to move the Collision!, Use 'Page up and Page down' to move it up or down.", 0, 255, 0, false) outputChatBox("Use 'Num 2, Num 4, Num6, Num8' to move the Collision !.", 0, 255, 0, false) outputChatBox("If you are finnished, press 'Enter' to save the Collision. Space to cancel.", 0, 255, 0, false) setToBinds(id) setElementFrozen(gMe, true) setElementAlpha(gMe, 0) move_o_zero() if(id == 1) then if(gCol) then destroyElement(gCol) end gCol = createColCuboid(x, y, z, 2, 2, 2) gColx, gColy, gColz, gColw, gColh, gCold, rot = x, y, z, 2, 2, 2, 0 else end end function createColMenue() if(Guivar == 1) then return end Guivar = 1 showCursor(true) local sWidth, sHeight = guiGetScreenSize() local Width,Height = 246,115 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) local COLFenster = {} local COLKnopf = {} COLFenster[1] = guiCreateWindow(X, Y, Width, Height, "Collision Editor(by [XP]MuLTi)",false) COLKnopf[1] = guiCreateButton(12,80,80,28,"Close",false,COLFenster[1]) COLKnopf[2] = guiCreateButton(12,30,109,45,"Col Cuboid",false,COLFenster[1]) COLKnopf[3] = guiCreateButton(125,30,109,45,"Col Sphere",false,COLFenster[1]) COLKnopf[4] = guiCreateButton(97,80,140,26,"Cancel edit",false,COLFenster[1]) if(isInColEdit() ~= true) then guiSetEnabled(COLKnopf[4], false) end
  7. Hola alguien me podria ayudar para que este scrip funciono cuando deje la tecla un dida ahora solamente funciona si un do la tecla y la tengo que un dir varias veces digan me por favor almenos que es lo que tengo que cambiar
  8. Hola quisiera saber como puedo hacer que este recurso funcione con el teclado pues ya funciona oprimiendo teclas pero uno le tiene que oprimir cadaves como ago para que la deje oprimida y funcione esto son los bin que tiene .lua
  9. eldelahoz

    Lo ay?

    Usare algo para que no de tanto lag pero tengo un problema es que ahora no me da el script no funciona le agrege para los del team y no funciona area = createColCuboid ( 755.50213623047, 836.47106933594, -0.3046875, 10, 10, 10 ) function hit(thePlayer) if getElementType( thePlayer ) == "player" then if getTeamName( getPlayerTeam( thePlayer ) ) ~= "Nombre del clan" then killPed( thePlayer ) else outputChatBox ( "No Heres Del Clan Muere por aver Entrado", thePlayer, 0, 255, 0 ) end end end end addEventHandler("onColShapeHit", area, hit)
  10. eldelahoz

    Lo ay?

    Lo puse asi y no me dio no ce si esta mal Te quiero hacer unas preguntas me das tu skype o msm
  11. eldelahoz

    Lo ay?

    Bueno segun lo tuyo hise esto pero no meda la explosión noce por que T_T aquí los .lua Defensa_C Defensa_S ¡Saludos!
  12. eldelahoz

    Lo ay?

    Bueno este fue el codigo que esta en ese recuerso pero no entiendo muy bien de las cordenas y como lo puedo hacer para los del team g_loc_pla = getLocalPlayer () g_loc_root = getRootElement () addEvent ( "destroyTrepassor", true ) addEventHandler ( "destroyTrepassor", g_loc_root, function () posX = 15.7054 posY = 1719.3632 posZ = 50.123 posX2 = 237.7176 posY2 = 1696.5727 posZ2 = 50.1087 posX3 = 354.6243 posY3 = 2028.3897 posZ3 = 50.1217 posX4 = 188.241 posY4 = 2081.3469 posZ4 = 50.1422 local isInResArea = getElementData ( g_loc_pla, "inRestrictedArea" ) rotZ = getPlayerRotation ( g_loc_pla ) if isInResArea == "true" then timer1 = setTimer ( createProjectile, 2000, 0, g_loc_pla, 20, posX, posY, posZ, 1.0, g_loc_pla, 0, 0, rotZ, 0.1, 0.1, 0.1 ) timer2 = setTimer ( createProjectile, 2000, 0, g_loc_pla, 20, posX2, posY2, posZ2, 1.0, g_loc_pla, 0, 0, rotZ, 0.1, 0.1, 0.1 ) timer3 = setTimer ( createProjectile, 2000, 0, g_loc_pla, 20, posX3, posY3, posZ3, 1.0, g_loc_pla, 0, 0, rotZ, 0.1, 0.1, 0.1 ) timer4 = setTimer ( createProjectile, 2000, 0, g_loc_pla, 20, posX4, posY4, posZ4, 1.0, g_loc_pla, 0, 0, rotZ, 0.1, 0.1, 0.1 ) end end ) addEvent ( "destroyTimers", true ) addEventHandler ( "destroyTimers", g_loc_root, function () local isInResArea = getElementData ( g_loc_pla, "inRestrictedArea" ) if isInResArea == "false" then killTimer ( timer1 ) killTimer ( timer2 ) killTimer ( timer3 ) killTimer ( timer4 ) end end )
  13. eldelahoz

    Lo ay?

    Hola hay un recuerso que pueda poner una zona que si entras y no heres del team te atacan con misiles o diferentes armas? ¡Saludos!
  14. Pero es que no aparece el mensaje y lo tengo como deveria estar ps creo yo
  15. Asi lo tengo y no meda objeto = createObject ( 980, 773.5, 836.79998779297, 7.6999998092651, 0, 0, -90 ) x,y,z = getElementPosition (objeto) Zona = createColSphere ( x, y, z, 7.5 ) function funcion (hitElement) if getElementType( hitElement ) == "player" then if getTeamName( getPlayerTeam( hitElement ) ) == "Nombre del Clan" then moveObject ( objeto, 5000, 773.5, 836.79998779297, -1.6999998092651 ) end else outputChatBox ( "No Heres Del Clan Largate", hitElement, 0, 255, 0 ) end end addEventHandler ( "onColShapeHit", Zona, funcion ) function funcion2 (hitElement) if getElementType( hitElement ) == "player" then if getTeamName( getPlayerTeam( hitElement ) ) == "Nombre del Clan" then moveObject ( objeto, 2000, 773.5, 836.79998779297, 7.6999998092651 ) end end end addEventHandler ( "onColShapeLeave", Zona, funcion2 )
  16. Ya lo hice gracias alguien ya me ayudo pero tu sabes como poner un mensaje a la gente que no es del clan y intenten entrar en la puerta automatica?
  17. Hola quisiera saber como puedo hacer para que una puerta se suba y se baje con un solo comando ¡Saludos! P.D: Decirme el codigo ya e intentando 2 codigos pero no me funcionaron
  18. Hola me podrian ayudar por favor lo que quiero saber es que como puedo hacer para que la puerta se baje automaticamente pero solamente a los que esten en un team yo ya tengo las fucniones del team pero no ce como hacer lo de la puerta automatica Funcion Team local Nombre del team = getTeamFromName ( "Nombre del team" ) local Team = getPlayerTeam ( source ) if (Team) == Nombre del team then quiero saber si esta bien y como puedo hacer lo de la puerta ¡Saludos!
  19. Ya lo cambia a client y ya me sirvio gracias
  20. Hola lo que pasa es que segui este tuto de como bajar la puerta con un solo comando pero no se por que no meda y tengo el scrip al pie de la letra object = createObject ( 980, 773.5, 836.79998779297, 7.6999998092651, 0, 0, -90 ) addCommandHandler ("puerta", function (source) if getElementData ( source, "Puerta" ) == "ON" then moveObject ( object, 5000, 773.5, 836.79998779297, 0 ) setElementData ( source, "Puerta", "OFF" ) elseif getElementData ( source, "Puerta" ) == "OFF" then moveObject ( object, 5000, 773.5, 836.79998779297, 7.6999998092651 ) setElementData ( source, "Puerta", "ON" ) end end )
×
×
  • Create New...