-
Posts
21 -
Joined
-
Last visited
Everything posted by #Humber*
-
Gracias por responder, acabo de fijarme y no, nada de eso.
-
Hola a todos, estoy intentando hacer un gamemode de zombies vs. humanos, tuve unos problemas pero pude solucionarlos. Pero ahora me encuentro con otro problema, y es que al golpear a otro jugador con mis puños o un arma blanca como una pala, este no se mueve, ni hace la animacion cuando lo golpeo, ni le quita vida. Cualquier ayuda se acepta, muchas gracias.
-
Hi all, I'm trying to make a gamemode for my server, but I have a problem. meta.xml: <meta> <info author="Humber" version="1.0" name="ZombieWar" type="gamemode" edf:definition="edf/ZombieWar.edf" /> </meta> ZombieWar.edf: <def name="Zombie War"> <element name="spawnpoint" friendlyname="Spawnpoint"> <data name="position" type="coord3d" default="0,0,0" /> </element> </def> Debugscript: ERROR: [editor]/edf/edf.lua:220: zombiewar: couldn't load edf file Help please
-
Hola, queria hacer que el resource 'Zombies' se iniciara por la noche, y se parara por el día, pero no funciona. setTimer( function() local hour, minutes = getTime() if hour >= 21 and hour < 4 then if getResourceState(getResourceFromName("Zombies")) == "loaded" then startResource(getResourceFromName("Zombies")) end else if getResourceState(getResourceFromName("Zombies")) == "running" then stopResource(getResourceFromName("Zombies")) end end end, 5000, 0 ) Funciona bien la parte de stop, pero el resource nunca se inicia.
-
I think you can use string.gsub
-
Hi all, I am doing something like this. function getServerMoney() local moneyS = {} for k,v in ipairs(getElementsByType("player")) do local moneyP = getPlayerMoney(v) table.insert(moneyS, moneyP) end end I want to + all de values in the table, can you help me please?
-
You're welcome.
-
setAmbientSoundEnabled( "gunfire", false)
-
Okay, thank you so much.
-
Good idea. I will try. But, can I use this? client function setWL() theTimer = setTimer(setWaterLevel, 100, 0, getWaterLevel()+0.1) end addEvent("setWaterL") addEventHandler("setWaterL", root, setWL) server addCommandHandler("tsunami", function(source) local sourceAccount = getPlayerAccount(source) if isObjectInACLGroup("user."..getAccountName(sourceAccount), aclGetGroup("Admin")) then triggerClientEvent(source, "setWaterL") end end )
-
Oh wait, I have an idea
-
I know how to use triggerClientEvent() but not for this. Can you give me an example, please?
-
Yes, I tried it, but I must use: isObjectInACLGroup()
-
Hi all, well, I want something like this... theTimer = setTimer(setWaterLevel, 100, 0, getWaterLevel()+0.1) But I can't use getWaterLevel() on server-side. I know how to use triggerClientEvent() but not for this. Help please.
-
function outputMTAAccount2(sourcePlayer) local objetos = getAttachedElements(sourcePlayer) if objetos then for k,v in ipairs(objetos) do if getElementType (v) == "object" then local x, y, z = getElementPosition(v) local rx, ry, rz = getElementRotation(v) detachElements(v, source) setElementPosition(v, x, y, z) setElementRotation(v, rx, ry, rz) end end end end addCommandHandler ( "dejar", outputMTAAccount2 ) No lo he probado, pero debería funcionar.
-
Hola, hace rato hice un panel y todo funciona perfecto menos el bindKey. El bindKey funciona bien, pero el panel también se abre cuando se inicia el resource o cuando un jugador se conecta. local screenW, screenH = guiGetScreenSize() ventana = guiCreateWindow((screenW - 456) / 2, (screenH - 307) / 2, 456, 307, ".-Tienda Zenbeit-.", false) guiWindowSetSizable(ventana, false) botonvida = guiCreateButton(9, 22, 97, 21, "Vida [100]", false, ventana) botonarmadura = guiCreateButton(9, 53, 97, 21, "Armadura [100]", false, ventana) botonminigun = guiCreateButton(349, 25, 97, 18, "Minigun [100]", false, ventana) botonbazooka = guiCreateButton(349, 56, 97, 18, "Bazooka [10]", false, ventana) guiLabelSetVerticalAlign(preciovida, "center") precioarmadura = guiCreateLabel(106, 53, 37, 21, "$400", false, ventana) guiLabelSetHorizontalAlign(precioarmadura, "center", false) guiLabelSetVerticalAlign(precioarmadura, "center") preciominigun = guiCreateLabel(297, 25, 47, 21, "$50.000", false, ventana) guiLabelSetVerticalAlign(preciominigun, "center") preciobazooka = guiCreateLabel(297, 56, 47, 18, "$50.000", false, ventana) guiLabelSetHorizontalAlign(preciobazooka, "center", false) guiLabelSetVerticalAlign(preciobazooka, "center") botonhunter = guiCreateButton(9, 237, 97, 21, "Hunter", false, ventana) botonhydra = guiCreateButton(9, 268, 97, 21, "Hydra", false, ventana) preciohunter = guiCreateLabel(106, 237, 56, 21, "$100.000", false, ventana) guiLabelSetVerticalAlign(preciohunter, "center") preciohydra = guiCreateLabel(106, 268, 56, 21, "$100.000", false, ventana) guiLabelSetVerticalAlign(preciohydra, "center") preciorhino = guiCreateLabel(292, 268, 57, 21, "$100.000", false, ventana) guiLabelSetVerticalAlign(preciorhino, "center") precioseas = guiCreateLabel(287, 240, 62, 18, "$100.000", false, ventana) guiLabelSetHorizontalAlign(precioseas, "center", false) guiLabelSetVerticalAlign(precioseas, "center") botonrhino = guiCreateButton(349, 271, 97, 18, "Rhino", false, ventana) botonseas = guiCreateButton(349, 240, 97, 18, "Seasparrow", false, ventana) imagen = guiCreateStaticImage(143, 98, 172, 99, ":Zombies/edf/zombiespawn.png", false, ventana) guiSetAlpha(imagen, 0.43) function OpenWin() if guiGetVisible(ventana) then guiSetVisible(ventana, false) showCursor(false) else guiSetVisible(ventana, true) showCursor(true) end end bindKey("F7", "down", OpenWin)
-
Hola a todos, tengo un error con este script, nada en debug function extrah( source ) if (source == "zombie") then if getElementModel ( source ) == 162 then exports.extrahealth:setElementExtraHealt(source, 500) end end end addEventHandler("onZombieSpawn", getRootElement(), extrah)