Jump to content

Anyelberth

Members
  • Posts

    120
  • Joined

  • Last visited

Everything posted by Anyelberth

  1. Oye men, Terminado El Script, Todo Bien, Presiono Un botón y Reemplaza El Auto, Pero Cuando Presiono Cualquier parte de El Panel y Tab Panel, Todos Los Reemplazos Se Activan Automáticamente... Que Seria lo que causa esto? Panel = guiCreateWindow(172, 0, 450, 600, "~|Skins|~", false) guiWindowSetSizable(Panel, false) guiSetAlpha(Panel, 0.98) guiSetProperty(Panel, "CaptionColour", "FF000BFE") Pestana1 = guiCreateTabPanel(20, 21, 407, 532, false, Panel) PestanaAutos = guiCreateTab("~|Autos|~", Pestana1) Infernus1 = guiCreateButton(126, 31, 163, 36, "~|Infernus|~", false, PestanaAutos) guiSetFont(Infernus1, "sa-header") guiSetProperty(Infernus1, "NormalTextColour", "FF000BFE") Infernuss = guiCreateLabel(4, 10, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Infernus|~~~~~~~~~~~~~~~~~~~~", false, PestanaAutos) guiSetFont(Infernuss, "default-bold-small") guiLabelSetColor(Infernuss, 0, 11, 254) Buffalos = guiCreateLabel(4, 81, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Buffalo|~~~~~~~~~~~~~~~~~~~~", false, PestanaAutos) guiSetFont(Buffalos, "default-bold-small") guiLabelSetColor(Buffalos, 0, 11, 254) Buffalo = guiCreateButton(126, 101, 163, 36, "~|Buffalo|~", false, PestanaAutos) guiSetFont(Buffalo, "sa-header") guiSetProperty(Buffalo, "NormalTextColour", "FF000BFE") Elegys = guiCreateLabel(4, 151, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Elegy|~~~~~~~~~~~~~~~~~~~~", false, PestanaAutos) guiSetFont(Elegys, "default-bold-small") guiLabelSetColor(Elegys, 0, 11, 254) Elegy = guiCreateButton(126, 172, 163, 36, "~|Elegy|~", false, PestanaAutos) guiSetFont(Elegy, "sa-header") guiSetProperty(Elegy, "NormalTextColour", "FF000BFE") Cheetahs = guiCreateLabel(4, 222, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Cheetah|~~~~~~~~~~~~~~~~~~~~", false, PestanaAutos) guiSetFont(Cheetahs, "default-bold-small") guiLabelSetColor(Cheetahs, 0, 11, 254) Cheetah = guiCreateButton(126, 243, 163, 36, "~|Cheetah|~", false, PestanaAutos) guiSetFont(Cheetah, "sa-header") guiSetProperty(Cheetah, "NormalTextColour", "FF000BFE") Bullets = guiCreateLabel(4, 293, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Bullet|~~~~~~~~~~~~~~~~~~~~", false, PestanaAutos) guiSetFont(Bullets, "default-bold-small") guiLabelSetColor(Bullets, 0, 11, 254) Bullet = guiCreateButton(126, 314, 163, 36, "~|Bullet|~", false, PestanaAutos) guiSetFont(Bullet, "sa-header") guiSetProperty(Bullet, "NormalTextColour", "FF000BFE") Turismos = guiCreateLabel(4, 364, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Turismo|~~~~~~~~~~~~~~~~~~~~", false, PestanaAutos) guiSetFont(Turismos, "default-bold-small") guiLabelSetColor(Turismos, 0, 11, 254) Turismo = guiCreateButton(126, 384, 163, 36, "~|Turismo|~", false, PestanaAutos) guiSetFont(Turismo, "sa-header") guiSetProperty(Turismo, "NormalTextColour", "FF000BFE") Comets = guiCreateLabel(2, 434, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Comet|~~~~~~~~~~~~~~~~~~~~", false, PestanaAutos) guiSetFont(Comets, "default-bold-small") guiLabelSetColor(Comets, 0, 11, 254) Comet = guiCreateButton(126, 455, 163, 36, "~|Comet|~", false, PestanaAutos) guiSetFont(Comet, "sa-header") guiSetProperty(Comet, "NormalTextColour", "FF000BFE") PestanaMotos = guiCreateTab("~|Motos|~", Pestana1) Nrg500S = guiCreateLabel(4, 10, 408, 15, "~~~~~~~~~~~~~~~~~~~|NRG-500|~~~~~~~~~~~~~~~~~~~~~", false, PestanaMotos) guiSetFont(Nrg500S, "default-bold-small") guiLabelSetColor(Nrg500S, 0, 11, 254) Nrg500 = guiCreateButton(116, 35, 183, 37, "~|NRG-500|~", false, PestanaMotos) guiSetFont(Nrg500, "sa-header") guiSetProperty(Nrg500, "NormalTextColour", "FF000BFE") Cierre = guiCreateButton(166, 561, 115, 24, "Cerrar", false, Panel) guiSetFont(Cierre, "sa-header") guiSetProperty(Cierre, "NormalTextColour", "FF000BFE") By = guiCreateLabel(329, 575, 116, 15, "by: ~|For~Speed|~", false, Panel) guiLabelSetColor(By, 0, 11, 254) guiSetVisible(Panel, false) ------Abrir-Cerrar---- bindKey('F5','down', function() guiSetVisible(Panel, not guiGetVisible(Panel)) showCursor(not isCursorShowing()) end) --------------------------- --- ---------------------------Infernus---------------------------- function Infernus () TXD = engineLoadTXD( "infernus.txd" ) engineImportTXD( TXD, 411 ) DFF = engineLoadDFF( "infernus.dff", 411 ) engineReplaceModel ( DFF, 411 ) end addEventHandler ( "onClientGUIClick", Infernus1, Infernus ) ----------------------------------------------------------------- --- ---------------------------Buffalo---------------------------- function Buffalo1 () TXD = engineLoadTXD( "Buffalo.txd" ) engineImportTXD( TXD, 402 ) DFF = engineLoadDFF( "Buffalo.dff", 402 ) engineReplaceModel ( DFF, 402 ) end addEventHandler ( "onClientGUIClick", Buffalo, Buffalo1 ) ----------------------------------------------------------------- --- ---------------------------elegy---------------------------- function elegy1 () TXD = engineLoadTXD( "elegy.txd" ) engineImportTXD( TXD, 562 ) DFF = engineLoadDFF( "elegy.dff", 0 ) engineReplaceModel ( DFF, 562 ) end addEventHandler ( "onClientGUIClick", Elegy, elegy1 ) ----------------------------------------------------------------- --- ---------------------------cheetah---------------------------- function cheetah1 () TXD = engineLoadTXD( "cheetah.txd" ) engineImportTXD( TXD, 415 ) DFF = engineLoadDFF( "cheetah.dff", 415 ) engineReplaceModel ( DFF, 415 ) end addEventHandler ( "onClientGUIClick", Cheetah, cheetah1 ) ----------------------------------------------------------------- --- ---------------------------bullet1---------------------------- function bullet1 () TXD = engineLoadTXD( "bullet.txd" ) engineImportTXD( TXD, 415 ) DFF = engineLoadDFF( "bullet.dff", 415 ) engineReplaceModel ( DFF, 415 ) end addEventHandler ( "onClientGUIClick", Bullet, bullet1 ) -------------------------------------------------------------------- ---------------------------bullet1---------------------------- function turismo1 () TXD = engineLoadTXD( "turismo.txd" ) engineImportTXD( TXD, 451 ) DFF = engineLoadDFF( "turismo.dff", 451 ) engineReplaceModel ( DFF, 451 ) end addEventHandler ( "onClientGUIClick", Turismo, turismo1 ) ----------------------------------------------------------------- --- ---------------------------comet---------------------------- function comet1 () TXD = engineLoadTXD( "comet.txd" ) engineImportTXD( TXD, 480 ) DFF = engineLoadDFF( "comet.dff", 480 ) engineReplaceModel ( DFF, 480 ) end addEventHandler ( "onClientGUIClick", Comet, comet1 ) ----------------------------------------------------------------- --- ---------------------------Nrg---------------------------- addEventHandler ( "onClientGUIClick", Nrg500, function() TXD = engineLoadTXD( "nrg500.txd" ) engineImportTXD( TXD, 522 ) DFF = engineLoadDFF( "nrg500.dff", 522 ) engineReplaceModel ( DFF, 522 ) end ) ----------------------------------------------------------------- --- ---------------------------Cerrar---------------------------- addEventHandler ( "onClientGUIClick", Cierre, function() guiSetVisible(Panel, false) showCursor(false) end ) -----------------------------------------------------------------
  2. Uhmmm... Nunca Avia Trabajado Con La Letra Ñ Para Paneles, Jaja Gracias...
  3. Hola Chicos... Necesito Su Ayuda, Es que al startear el script, me tira Error. Me Dice: ERROR: Loading script failed: autos/client.lua:6: "=" expected near · Pero No Se Como Solucionarlo... Panels = guiCreateWindow(172, 0, 450, 600, "~|Skins|~", false) guiWindowSetSizable(Panels, false) guiSetAlpha(Panels, 0.98) guiSetProperty(Panels, "CaptionColour", "FF000BFE") Pestaña = guiCreateTabPanel(20, 21, 407, 532, false, Panels) PestañaAutos = guiCreateTab("~|Autos|~", Pestaña) Infernus1 = guiCreateButton(126, 31, 163, 36, "~|Infernus|~", false, PestañaAutos) guiSetFont(Infernus1, "sa-header") guiSetProperty(Infernus1, "NormalTextColour", "FF000BFE") GUIEditor.label[1] = guiCreateLabel(4, 10, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Infernus|~~~~~~~~~~~~~~~~~~~~", false, PestañaAutos) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 0, 11, 254) Buffalos = guiCreateLabel(4, 81, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Buffalo|~~~~~~~~~~~~~~~~~~~~", false, PestañaAutos) guiSetFont(Buffalos, "default-bold-small") guiLabelSetColor(Buffalos, 0, 11, 254) Buffalo = guiCreateButton(126, 101, 163, 36, "~|Buffalo|~", false, PestañaAutos) guiSetFont(Buffalo, "sa-header") guiSetProperty(Buffalo, "NormalTextColour", "FF000BFE") Elegys = guiCreateLabel(4, 151, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Elegy|~~~~~~~~~~~~~~~~~~~~", false, PestañaAutos) guiSetFont(Elegys, "default-bold-small") guiLabelSetColor(Elegys, 0, 11, 254) Elegy = guiCreateButton(126, 172, 163, 36, "~|Elegy|~", false, PestañaAutos) guiSetFont(Elegy, "sa-header") guiSetProperty(Elegy, "NormalTextColour", "FF000BFE") Cheetahs = guiCreateLabel(4, 222, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Cheetah|~~~~~~~~~~~~~~~~~~~~", false, PestañaAutos) guiSetFont(Cheetahs, "default-bold-small") guiLabelSetColor(Cheetahs, 0, 11, 254) Cheetah = guiCreateButton(126, 243, 163, 36, "~|Cheetah|~", false, PestañaAutos) guiSetFont(Cheetah, "sa-header") guiSetProperty(Cheetah, "NormalTextColour", "FF000BFE") Bullets = guiCreateLabel(4, 293, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Bullet|~~~~~~~~~~~~~~~~~~~~", false, PestañaAutos) guiSetFont(Bullets, "default-bold-small") guiLabelSetColor(Bullets, 0, 11, 254) Bullet = guiCreateButton(126, 314, 163, 36, "~|Bullet|~", false, PestañaAutos) guiSetFont(Bullet, "sa-header") guiSetProperty(Bullet, "NormalTextColour", "FF000BFE") Turismos = guiCreateLabel(4, 364, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Turismo|~~~~~~~~~~~~~~~~~~~~", false, PestañaAutos) guiSetFont(Turismos, "default-bold-small") guiLabelSetColor(Turismos, 0, 11, 254) Turismo = guiCreateButton(126, 384, 163, 36, "~|Turismo|~", false, PestañaAutos) guiSetFont(Turismo, "sa-header") guiSetProperty(Turismo, "NormalTextColour", "FF000BFE") Comets = guiCreateLabel(2, 434, 408, 15, "~~~~~~~~~~~~~~~~~~~~|Comet|~~~~~~~~~~~~~~~~~~~~", false, PestañaAutos) guiSetFont(Comets, "default-bold-small") guiLabelSetColor(Comets, 0, 11, 254) Comet = guiCreateButton(126, 455, 163, 36, "~|Comet|~", false, PestañaAutos) guiSetFont(Comet, "sa-header") guiSetProperty(Comet, "NormalTextColour", "FF000BFE") PestañaMotos = guiCreateTab("~|Motos|~", Pestaña) Nrg-500S = guiCreateLabel(4, 10, 408, 15, "~~~~~~~~~~~~~~~~~~~|NRG-500|~~~~~~~~~~~~~~~~~~~~~", false, PestañaMotos) guiSetFont(Nrg-500S, "default-bold-small") guiLabelSetColor(Nrg-500S, 0, 11, 254) Nrg-500 = guiCreateButton(116, 35, 183, 37, "~|NRG-500|~", false, PestañaMotos) guiSetFont(Nrg-500, "sa-header") guiSetProperty(Nrg-500, "NormalTextColour", "FF000BFE") GUIEditor.tab[1] = guiCreateTab("~|Info|~", Pestaña) Cierre = guiCreateButton(166, 561, 115, 24, "Cerrar", false, Panels) guiSetFont(Cierre, "sa-header") guiSetProperty(Cierre, "NormalTextColour", "FF000BFE") By = guiCreateLabel(329, 575, 116, 15, "by: ~|For~Speed|~", false, Panels) guiLabelSetColor(By, 0, 11, 254) guiSetVisible(Panels, false) bindKey('F2','down', function() guiSetVisible(Panels, not guiGetVisible(Panels)) showCursor(not isCursorShowing()) end )
  4. Anyelberth

    Funcion

    Hola Chicos, Tengo Una Duda, Existe Alguna Funcion Que No Detecte El Arma, Sino Que Detecte Los Disparos De Esa Arma, Como Por Ejemplo Los Disparos De La M4?
  5. Hola function() local Timer = setTimer (ZoneTime, 900000, 0) end) ArmaCol = createColCuboid (XxxxX, XxxX, XxxX, xXXXx, XXXX, 6.25) function ZoneTime () local allPlayersInCol = getElementsWithinColShape (ArmaCol, "player") for i,thePlayer in ipairs (allPlayersInCol) do giveWeapon( v, 31, 30) end end Como Aria para que le de la arma solo a el primer user que entre? osea que un user entre y espere lo que tenga que esperar, y solo a ese se le dara la arma...
  6. Anyelberth

    [Ayuda]

    Chicos Que No Ven Que Ya Lo Soluciono?
  7. Cierren El Tema.. Ya Lo Resolví...
  8. Me Da Lo Mismo... Mira.. Cuando Por Ejemplo Coloco Esto: setCameraMatrix(thePlayer, 97.400001525879, 1940.6999511719, 27.700000762939, 2226.000457, 0, -800) En Panel/Resources y le ejecuto.. sale la ubicación. Pero Cuando Lo Ejecuto Con Esto: addEventHandler("onClientGUIClick", Vista1, Camara1, false) function Camara1(source) setCameraMatrix(source, 97.400001525879, 1940.6999511719, 27.700000762939, 2226.000457, 0, -800) La Cámara Spawea En Otro Lugar Cerquita De La Zona 0. Por Ejemplo Cuando Ejecute el script (me llevo a serca de la zona 0) y luego Coloque lo que me mando Alex: crun local x, y, z, lx, ly, lz = getCameraMatrix() setClipboard( x..", "..y..", "..z..", "..lx..", "..ly..", "..lz ) Obtuve Esta Ubicación: "0, 97.400001525879, 1940.6999511719, 27.700000762939, 2226.0004882813, 0"...
  9. Algun Programa o Script Para Sacar Coordenadas para el setCameraMatrix?
  10. Que Error Tengo Aca Que La Camara toma otra uvicacion que no es la que coloque? setCameraMatrix(thePlayer, 97.400001525879, 1940.6999511719, 27.700000762939, 2226.000457, 0, -800) ?
  11. El Trata De Hablar De lo Siguiente: El Quiere Que Al Frenar, No Frenen Los 4 Cauchos Como Lo Ase Por Defaul, Quiere Que Frene Cierto Caucho o Rueda, Frene al Precionar Space Ejemplo: Preciono "Space" y se activa el Freno En La Rueda Trasera Izquierda.
  12. Anyelberth

    Skin

    Exacto, Me sirvio De Muy Buen Ejemplo, Pero Siempre Cuando Se Pone el skin, a los segundos se vuelve a cambiar a el skin que se tenia antes. . .
  13. Anyelberth

    Skin

    Siiii, Pence En Algo Como Esto function New(player) if getElementData(player, "humanity") then if current == 179 or current == 287 then setElementModel(player, 2) end end end Pero No Supe Donde Colocar Para Que de el skin a los 200 de humanity
  14. Anyelberth

    Skin

    Hola Chicos Como Podria Hacer Para Que Cuando En DayZ Tengas Por Ejemplo 200 De Humanity, te Coloque Por Ejemplo El Skin Numero 210?
  15. Ten Cuidado, Que Así Como Ay Un "Server Backup", Tambien ay un "Rollback" Para Retroceder El Tiempo.
  16. Anyelberth

    Armas

    Me Sale bad Argument @ toggleControl EDIT: Lo tenia en Client Side, Aora lo tengo en Server Side y si funciona gracias
  17. Anyelberth

    Armas

    Si lo dije, Lo que paso fue que entendiste mal, lo que queria decir era que si yo coloco el comando, se me balla el fire a mi y a todos...
  18. Anyelberth

    Armas

    Seria Algo Como Esto: function fire() toggleControl ( source, "fire", true ) end addCommandHandler( "fire", fire) Pero Como aria para que cuando Ejecute /fire automaticamente se ejecute para todos tambien?
  19. Anyelberth

    Armas

    Hola, Cuales Serian Las Funciones Para Hacer Que Las Armas Que tengas a Mano, No Funcionen Cuando Colocas un comando por ejemplo /stoppoder
  20. Regularmente Este Problema Me Pasa... As Lo Que Dice Ciber, Cierra Los programas que usan Internet, pero No Reinicies MTA Porque no te lo solucionara, Ya cuando cierres los programas que te jalan internet, y Simplemente dale denuevo a Server Browser y si no te salen los servers, Prueba Denuevo y denuevo asta que te salga...
  21. Solo me guie en una de sus partes... Si Estudias Bien El Script Se Te Ara un Poco Mas Facil.
  22. Es Mi Script y Mi Server --setTimer --outputChatBox --math.random --tablas --onPlayerChat --giveWeapon -- cancelEvent y comparadores.
  23. Te Faltaron Las Comas. . . El Mio Funciono ... EDIT: Pero Tengo Un Error o Algo, Es Que Cuando Da El Dinero, Luego de dar el dinero, se tarda 1 Minuto y buelve a dar el dinero, Este Problema Esta Desde antes y despues De El Random... Entonces Para Eso Creo que Pense removeEventHandler y addEventHandler Denuevo, Creo yo... Algo Como... times = { { 80000, 1 }, { 455555, 1 }, { 4545455, 1 }, } addEventHandler ("onResourceStart", getRootElement(), function tims() local azar = math.random ( #times ) setTimer (ZoneTime, unpack ( times [ azar ] )) removeEventHandler("onResourceStart", getRootElement(), tims) addEventHandler ("onResourceStart", getRootElement(), tims) end) Creo que estoy Equivocado...
  24. hey, y Como Aria Para Que El setTime Sea Alazar? Pense En Esto: local Times = { { 80000, 0 }, { 455555, 0 }, { 4545455, 0 }, } addEventHandler ("onResourceStart", getRootElement(), function() local azar = math.random ( #Times ) setTimer (ZoneTime, unpack ( Times [ azar ]) end) DineroCol = createColCuboid ( 1874.13 , 1322.1 , 22,73 , 55 , 55 , 55 ) función ZoneTime ( ) locales allPlayersInCol = getElementsWithinColShape ( DineroCol, "player" ) para i, v en ipairs ( allPlayersInCol ) hacer givePlayerMoney ( v, 300 ) final final función onHit ( hitElement, matchingDimension ) outputChatBox ( "Bienvenido a la zona de Dinero" .. GetPlayerName ( hitElement ) .. "" , getRootElement ( ) , 255 , 0 , 0 , cierto ) final AddEventHandler ( "onColShapeHit" , DineroCol, onHit ) función OnLeave ( leaveElement, matchingDimension ) outputChatBox ( "El Juegador" .. GetPlayerName ( leaveElement ) .. "Deja lo zona de Dinero" , getRootElement ( ) , 255 , 0 , 0 , cierto ) final AddEventHandler ( "onColShapeLeave" , DineroCol, OnLeave ) Seria Así?
×
×
  • Create New...