-
Posts
1,004 -
Joined
-
Last visited
Everything posted by Narutimmy
-
No puedo postearlo es un GM entero modificado por mi... por eso pregunto que podria causarlo para yo buscar.
-
Hola... bueno vengo con una duda... tengo 1VPS de gb ram y 1GHZ, lo contrate ase como 1semana, cargue todo lo de mi server dayz y me consumia 400mb ram con 30users online y un 30 a 40% de CPU. Todo bien los primeros 5 dias, pero apartir del 6... todo mal, por alguna razon 1 resource el de dayz, aumento su consumo en el IPB me sale 70% CPU, y en la web de mi VPS llega hasta 90% lageando todo... que podria estar causando esto? un bucle?
-
Listo, al final compre ne NFO Servers
-
Si eso es lo que vi, sera que al enviarlos y me validen ya salen metodos de pago¿?, sabes que metodos de pago tienen, y pues conoces alguno otro¿ no dispongo de mucho pero entre 10 a 15 usd... por eso busco uno en francia,,,
-
Parece que no puedo contratar con OVH nose si sea cosa mia o de ellos pero me sale que no ahi metodo de pago...
-
Mira si cuenta con VPS Pero que S.O me recomiendas¿ y 32 o 4 bits?
-
De echo es el que tengo pensado, pero como no se si es bueno andaba buscando recomendaciones. entonces es bueno en cuanto a estabilidad¿? Tenia planeado 2ghz y 2gb de ram , para un dayz de 60users. Otra cosa depende del host o del PC¿? del user. que e usado unos host y con mas de 40 users comienza el lag, no de fps, sino de que los mensajes en el chat tardan en salir o en entrar a un auto.
-
hola mucho gusto... bueno vengo en busqueda de conocimiento y experiencias... estoy buscando algun buen host... ya que es el tercer host que uso y cierra ._., primero uno que no recuerdo le name, luego insane host... y ahora caoshost (el ultimo muy malo) Estoy buscando algun VPS que sea estable osea que no se caiga cada rato, una proteccion desente anti ddos... y a un precio economico... He visto que los VPS en y host game, en francia son baratos pero nose cual usar, podrian recomendarme algunos? Otra duda, con mas de 20 users o 30 , cuando apago o reeinicio un resource da network trouble a todos los users online por un par de segundos unos 15... asi que mas o menos que tipo de vps ocuparia para evitar eso¿? y para mas users que debo agregar procesadores o ram? Gracias.
-
Por eso el segundo qu publique es otro EDIT: Todo funciona menos el contador, el setear PVP en false 30 seg despues funca, el que salga en el chat que puedes desconectar si sale, pero el contador los setea en 30, 29... y ahi se queda no baja mas function playerGetDamageDayZ ( attacker, weapon, bodypart, loss ) if getElementData ( localPlayer, "PVP" ) or false == false then if weapon and weapon > 1 and attacker and getElementType(attacker) == "player" then setTimer (outputChatBox, 30000, 1, "Ya puedes desconectarte",255,5,0) newSource = localPlayer setTimer ( setElementData, 30000, 1, newSource, "PVP", false ) setTimer ( setElementData, 30000, 1, newSource, "Contador", 0 ) setElementData ( localPlayer, "PVP", true ) setElementData ( localPlayer, "Contador", 30 ) outputChatBox ( "Recibiste daño, no puedes desconectare hasta que pasen 30 segundos!", 255, 5, 0 ) Tiimer = getElementData(localPlayer,"Contador") setTimer ( setElementData, 1000, 60, newSource, "Contador", Tiimer-1 ) -- <== setTimer ( setElementData, 30000, 1, newSource, "Contador", 0 ) end end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer (), playerGetDamageDayZ )
-
No ententi mucho, pero eso es para Sv, pero y para cliente? es igual? probare... --------------------------------------------------------------- function playerGetDamageDayZ ( attacker, weapon, bodypart, loss ) if getElementData ( localPlayer, "PVP" ) or false == false then if weapon and weapon > 1 and attacker and getElementType(attacker) == "player" then setTimer (outputChatBox, 30000, 1, "Ya puedes desconectarte",255,5,0) setTimer ( setElementData, 30000, 1, localPlayer, "PVP", false ) setTimer ( setElementData, 30000, 1, localPlayer, "Contador", 0 ) setElementData ( localPlayer, "PVP", true ) setElementData ( localPlayer, "Contador", 30 ) setTimer ( setElementData, 1000, 60, localPlayer, "Contador", getElementData(localPlayer,"Contador")-1 ) outputChatBox ( "Recibiste daño, no puedes desconectare hasta que pasen 30 segundos!", 255, 5, 0 ) setTimer ( function (localPlayer) Dano = getElementData(localPlayer,"Contador") setElementData(localPlayer,"Contador",Dano-1) end , 1000, 60 ) end end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer (), playerGetDamageDayZ )
-
Gracias me pareque quedo bien De nada. Segun yo ya estaba arreglado pero tengo el log lleno de esto [2014-11-10 21:02:55] WARNING: 2075: Bad argument @ 'getElementData' [Expected element at argument 1, got boolean] [2014-11-10 21:03:05] WARNING: 2075: Bad argument @ 'getElementData' [Expected element at argument 1, got boolean] [2014-11-10 21:03:15] WARNING: 2075: Bad argument @ 'getElementData' [Expected element at argument 1, got boolean] [2014-11-10 21:03:25] WARNING: 2075: Bad argument @ 'getElementData' [Expected element at argument 1, got boolean] [2014-11-10 21:03:35] WARNING: 2075: Bad argument @ 'getElementData' [Expected element at argument 1, got boolean]
-
Hola intento hacer un anti Quiteros... pero nose porque no funciona el timmer Marcado, se queda en 59 y no baja function outputChange(dataName,oldValue) local Danado = getElementData(source,"Danado") or false if getElementType(source) == "player" and dataName == "blood" then local newValue = getElementData(source,dataName) if newValue-oldValue < 0 then if Danado == false then local time = getRealTime() setElementData ( source, "attacked", time.timestamp ) setElementData ( source, "Contador", 60 ) triggerClientEvent(source, "displayClientInfo", source, "Info", "Has Recibido Daño, espera 1 Minuto.", 200, 200, 22) setTimer ( triggerClientEvent, 60000, 1, source, "displayClientInfo", source, "Info", "Ya Puedes Desconectar.", 200, 200, 22 ) setTimer ( setElementData, 60000, 1, source, "Danado", false) setElementData(source,"Danado",true) Tiimer = getElementData(source,"Contador") setTimer ( setElementData, 1000, 60, source, "Contador", Tiimer-1 ) -- <== setTimer ( setElementData, 60000, 1, source, "Contador", 0 ) end end end end addEventHandler("onElementDataChange",getRootElement(),outputChange) Cuando deberia llegar a 0 , Gracias por la ayuda.
-
Gracias me pareque quedo bien
-
Hola necesito ayuda tengo un par de errores que me tienen la consola llena function setVehiclesFuelPerMinute() for i, veh in ipairs(getElementsByType("vehicle")) do if getVehicleEngineState(veh) == true then if getElementData(getElementData(veh, "parent"), "fuel") >= 0 then ---Linea 2075 setElementData(getElementData(veh, "parent"), "fuel", getElementData(getElementData(veh, "parent"), "fuel") - getVehicleFuelRemove(getElementModel(veh), getElementData(veh, "parent"))) else setVehicleEngineState(veh, false) end end end end setTimer(setVehiclesFuelPerMinute, 10000, 0)
-
Tiene 2 problemas... 1.- Al matar a alguien en lugar de aumentar baja si estaba nose -4 pasa a -5. ademas se supone nose matas 10 mueres 200 veces = 0,05 ... en teoria el kdr no deberia de bajar de 0 2.- Ademas si te suicidas o mueres solo te toma como el kille y te da una muerte y un asesinato. EDIT: Arreglado pasa que setElementData(source,"TD",(getElementData(source,"TD") - 1)) en realidad era setElementData(source,"TD",(getElementData(source,"TD") + 1)) jeje Gracias.
-
Hola vengo por ayuda jeje ya le busque y nose porque pasa eso que el KDR queda en negativo como en la foto.. el codigo es este... setElementData(source,"TD",(getElementData(source,"TD") - 1)) valor = getElementData(source,"TK")/getElementData(source,"TD") setElementData(source,"KDR",math.round(valor,2,'ceil')) triggerClientEvent(source, "hideInventoryManual", source) if getElementData(source, "alivetime") > 10 and not isElementInWater(source) then local x, y, z = getElementPosition(source) if getDistanceBetweenPoints3D(x, y, z, 6000, 6000, 0) > 200 then local x, y, z = getElementPosition(source) local rotX, rotY, rotZ = getElementRotation(source) local skin = getElementModel(source) local ped = createPed(skin, x, y, z, rotZ) pedCol = createColSphere(x, y, z, 1.5) killPed(ped) setTimer(destroyDeadPlayer, 2700000, 1, ped, pedCol) attachElements(pedCol, ped, 0, 0, 0) setElementData(pedCol, "parent", ped) setElementData(pedCol, "playername", getPlayerName(source)) setElementData(pedCol, "deadman", true) setElementData(pedCol, "MAX_Slots", getElementData(source, "MAX_Slots")) local time = getRealTime() local hours = time.hour local minutes = time.minute setElementData(pedCol, "deadreason", getPlayerName(source) .. " is dead. Cause of death: " .. (weapon or "Unknown") .. ". Time of death: " .. hours .. ":" .. minutes .. " o'clock.") end end if killer then if not getElementData(source, "bandit") then addPlayerStats(killer, "humanity", math.random(-2500, -1000)) else addPlayerStats(killer, "humanity", math.random(1000, 2500)) end setElementData(killer, "murders", getElementData(killer, "murders") + 1) setElementData(killer, "Reputacion", getElementData(killer, "Reputacion")+10) setElementData(killer,"TK",(getElementData(killer,"TK"))+ 1) valor = getElementData(killer,"TK")/getElementData(killer,"TD") setElementData(killer,"KDR",math.round(valor,2,'ceil')) triggerClientEvent(killer, "displayClientInfo", killer, "Info", "Reputacion +10", 200, 200, 22) if 0 > getElementData(killer, "humanity") then setElementData(killer, "bandit", true) end if getElementData(source, "bandit") == true then setElementData(killer, "banditskilled", getElementData(killer, "banditskilled") + 1) setElementData(killer, "Reputacion", getElementData(killer, "Reputacion")+20) triggerClientEvent(killer, "displayClientInfo", killer, "Info", "Reputacion +20", 200, 200, 22) end if headshot == true then setElementData(killer, "headshots", getElementData(killer, "headshots") + 1) setElementData(killer, "Reputacion", getElementData(killer, "Reputacion")+50) triggerClientEvent(killer, "displayClientInfo", killer, "Info", "Reputacion +50", 200, 200, 22) end end Gracias
-
Yo lo puse asi y no me funciono : ---2 Decimales function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end --- function kilLDayZPlayer(killer, headshot, weapon) pedCol = false local account = getPlayerAccount(source) if not account then return end killPed(source) setElementData(source, "Reputacion", getElementData(source, "Reputacion")-100) setElementData(source,"TD",(getElementData(source,"TD") or 0) - 1) setElementData(source,"KDR",math.round(getElementData(source,"TK") or 0 / getElementData(source,"TD") or 0,2 ))
-
Me parece excelente que hayas podido resolverlo, seria útil para personas con un problema semejante que pudieses publicar el código en su forma final. No habia tenido el tiempo de reiniciar el servidor pero creo que no funciono.
-
De echo no sabia pero como nadie me respondia .. prueba y error busque ejemplos en algunos reurces que tenia y funciono
-
Hola hoy vengo con algo que creo es facil ... pero no me sale y vengo por ayuda >.< pasa que yo lo tengo de 1 forma y funciona pero terminas con KDR de nose... 1.5566998877 y yo quiero que solo sea... 1.55 estube buscando aqui y segun es con una funciona que no es de MTA intnte usarla y nosupe como ._., tambien intente con otra que vi me da errores Funciona: setElementData(source,"KDR",getElementData(source,"TK") / getElementData(source,"TD") ) No Funciona : setElementData(source,"KDR",tonumber(string.sub(tostring(getElementData(source,"TK") / getElementData(source,"TD") ), 1, 3))) Funcion que se debe usar: ---2 Decimales function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end --- como seria :3?
-
Fue una manera muy sucia y probe a prueba y error... pero... Funciono Gracias por ayudarme weapons = {} weapons[1] = {"BM16 Pellet",".50 Barret Mag","Sig550 Mag","Gauss Rifle Mag","M-14 Camouflage Grid Mag", "Thompson 1928 Mag","Type 99 Mag","AK Mag","14mm Ammo","LR300 Mag","GAU-19 Mag","TOS 34 Pellet", "SPSA 14 Pellet","SVDm 2 Mag", "Ballesta Mag","M136 Rocket","M136 Rocket"} weapons[2] = {"Nails","Taser Battery","PB1s Mag","Berta Mag","Desert Eagle","PDW Mag","Viper 5"} weapons[3] = {"Parachute","Grenade","Tear Gas"} wpn = {} wpn[1] = {"BM16",".50 Barret","Sig550","Gauss Rifle","M-14 Camouflage Grid","Thompson 1928","Type 99", "Ak74","Hammerhead 47","LR300","GAU-19","TOS 34","SPSA 14","SVDm 2","Ballesta","Heat-Seeking RPG", "M136 Rocket Launcher"} wpn[2] = {"Nailgun","Taser","PB1s","Berta","Desert Eagle","PDW","Viper 5"} wpn[3] = {"Parachute","Grenade","Tear Gas"} function weaponSwitch(weapon) if source == getLocalPlayer() then for i = 1, 3 do for j = 1, #weapons[i] do local ID = 0 if weapon == 25 then ID = 1 elseif weapon == 26 then ID = 1 elseif weapon == 27 then ID = 1 elseif weapon == 29 then ID = 1 elseif weapon == 30 then ID = 1 elseif weapon == 31 then ID = 1 elseif weapon == 33 then ID = 1 elseif weapon == 33 then ID = 1 elseif weapon == 35 then ID = 1 elseif weapon == 36 then ID = 1 elseif weapon == 37 then ID = 1 elseif weapon == 38 then ID = 1 elseif weapon == 1 then ID = 2 elseif weapon == 2 then ID = 2 elseif weapon == 3 then ID = 2 elseif weapon == 4 then ID = 2 elseif weapon == 5 then ID = 2 elseif weapon == 6 then ID = 2 elseif weapon == 7 then ID = 2 elseif weapon == 8 then ID = 2 elseif weapon == 22 then ID = 2 elseif weapon == 24 then ID = 2 elseif weapon == 28 then ID = 2 elseif weapon == 29 then ID = 2 elseif weapon == 32 then ID = 2 elseif weapon == 16 then ID = 3 elseif weapon == 17 then ID = 3 elseif weapon == 18 then ID = 3 elseif weapon == 39 then ID = 3 elseif weapon == 46 then ID = 3 end local wpnID = getElementData(getLocalPlayer(), "currentweapon_"..ID) if wpnID == wpn[i][j] then if getElementData(getLocalPlayer(), weapons[i][j]) > 0 then setElementData(getLocalPlayer(), weapons[i][j], getElementData(getLocalPlayer(), weapons[i][j]) - 1) break end end end end end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), weaponSwitch) PD: Alguien sabe simplicar esto intente con "or" pero no funcionaba.
-
he Probado y tampoco funcione me parece que es porque al tener arma Primaria y Secundaria ("currentweapon_") esta pasando, lo que hace falta es algo que verifique que arma tengo equipada y en base a eso continuar. EDIT: Dudo funcione pero me refiero a algo asi... como lo ago? weapons = {} weapons[1] = {"BM16 Pellet",".50 Barret Mag","Sig550 Mag","Gauss Rifle Mag","M-14 Camouflage Grid Mag", "Thompson 1928 Mag","Type 99 Mag","AK Mag","14mm Ammo","LR300 Mag","GAU-19 Mag","TOS 34 Pellet", "SPSA 14 Pellet","SVDm 2 Mag", "Ballesta Mag","M136 Rocket","M136 Rocket"} weapons[2] = {"Nails","Taser Battery","PB1s Mag","Berta Mag","Desert Eagle","PDW Mag","Viper 5"} weapons[3] = {"Parachute","Grenade","Tear Gas"} wpn = {} wpn[1] = {"BM16",".50 Barret","Sig550","Gauss Rifle","M-14 Camouflage Grid","Thompson 1928","Type 99", "Ak74","Hammerhead 47","LR300","GAU-19","TOS 34","SPSA 14","SVDm 2","Ballesta","Heat-Seeking RPG", "M136 Rocket Launcher"} wpn[2] = {"Nailgun","Taser","PB1s","Berta","Desert Eagle","PDW","Viper 5"} wpn[3] = {"Parachute","Grenade","Tear Gas"} Primary[1] = {"25,26,27,30,31,33,34,35,36,37,38"} Secundary[2] = {"1,2,3,4,5,6,7,8,22,23,24,28,29,32"} Tercery[3] = {"16,17,18,39,46"} function weaponSwitch(weapon) if source == getLocalPlayer() then for i = 1, 3 do for j = 1, #weapons[i] do local wpnID = getElementData(getLocalPlayer(), "currentweapon_"..i) if wpnID == wpn[i][j] then if weapon == Primary[1] then if getElementData(getLocalPlayer(), weapons[1]) > 0 then setElementData(getLocalPlayer(), weapons[1], getElementData(getLocalPlayer(), weapons[1]) - 1) break end elseif weapon == Secundary[1] then if getElementData(getLocalPlayer(), weapons[2]) > 0 then setElementData(getLocalPlayer(), weapons[2], getElementData(getLocalPlayer(), weapons[2]) - 1) break end elseif weapon == Tercery[3] then if getElementData(getLocalPlayer(), weapons[3]) > 0 then setElementData(getLocalPlayer(), weapons[3], getElementData(getLocalPlayer(), weapons[3]) - 1) break end end end end end end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), weaponSwitch)
-
wow... no sabia que se podia hacer eso, lo voy a probar y te aviso, tendras alguna guia de como usarlas? EDIT: Bueno e probado y de funcionar funciona en cuanto a que 150 lines a 30. pero el bug persiste
-
si de echo fue la primera forma que intente funciona bien pero se desaparece municion del inventario
-
mas o menos eso fue lo que dije pero no lo se explicar , en fin que podria hacer?
