Jump to content

Maruchan

Members
  • Posts

    91
  • Joined

  • Last visited

About Maruchan

  • Birthday 01/01/1993

Details

  • Gang
    |P.F.A|
  • Location
    Argentina
  • Occupation
    AMOR = MI ESPOSA + AMOR = ELECTRÓNICA
  • Interests
    Música electrónica siempre

Recent Profile Visitors

1,259 profile views

Maruchan's Achievements

Punk-@ss B*tch

Punk-@ss B*tch (12/54)

1

Reputation

  1. I have problems with this code, the problem happens that the passenger can be lowered even if he is wearing a seat belt. Everything else works fine. local SizeX, SizeY = guiGetScreenSize() local px,py = 1680,1050 local x,y = (SizeX/px), (SizeY/py) local Fade = true local Pulso = 0 -- Cinturón local key = "B" local interval = 1.05 local moto = { [522]=true,[521]=true,[461]=true,[462]=true,[463]=true, [586]=true,[581]=true,[468]=true,[471]=true,[523]=true, [448]=true,[481]=true,[510]=true,[509]=true } local boat = { [430]=true,[446]=true,[452]=true,[453]=true,[454]=true, [472]=true,[473]=true,[484]=true,[493]=true,[595]=true } local air = { [417]=true,[425]=true,[447]=true,[460]=true,[469]=true, [476]=true,[487]=true,[488]=true,[497]=true,[511]=true, [512]=true,[513]=true,[519]=true,[520]=true,[548]=true, [553]=true,[563]=true,[577]=true,[592]=true,[593]=true } function toggleRemen() if getElementInterior(getLocalPlayer()) == 0 and getElementDimension(getLocalPlayer()) == 0 then local veh = getPedOccupiedVehicle(getLocalPlayer()) if veh then if (moto [getElementModel (veh)]) then elseif (boat [getElementModel (veh)]) then elseif (air [getElementModel (veh)]) then else if Fade then Pulso = Pulso - 20 if (Pulso <= 0) then Pulso = 0 Fade = false end else Pulso = Pulso + 20 if (Pulso >= 255) then Pulso = 255 Fade = true end end if getElementData(getLocalPlayer(),"remeshok") == "Cinturón_abrochado" then dxDrawImage(SizeX - 410,SizeY - 83, 30, 22,"Imagenes/Vehiculos/con-cinturon.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) setElementData(getLocalPlayer(),"remeshok","Cinturón_desabrochado") triggerEvent("Información", getLocalPlayer(), "Inventory", "¡Cinturón desabrochado!", 0, 255, 0) else setElementData(getLocalPlayer(),"remeshok","Cinturón_abrochado") triggerEvent("Información", getLocalPlayer(), "Inventory", "¡Cinturón abrochado!", 0, 255, 0) dxDrawImage(SizeX - 410,SizeY - 83, 30, 22,"Imagenes/Vehiculos/sin-cinturon.png",0.0,0.0,0.0,tocolor(255,255,255,Pulso),false) end end end end end bindKey(key, "down", toggleRemen) addCommandHandler("cinturon", toggleRemen) addEvent("Denegar",true) addEventHandler("Denegar",getRootElement(),function() playSound("Sonidos/Denegar/Denegar.mp3") end) function updateCamera() if getElementInterior(getLocalPlayer()) == 0 and getElementDimension(getLocalPlayer()) == 0 then local veh = getPedOccupiedVehicle(getLocalPlayer()) if veh then if (moto [getElementModel (veh)]) then elseif (boat [getElementModel (veh)]) then elseif (air [getElementModel (veh)]) then else if Fade then Pulso = Pulso - 20 if (Pulso <= 0) then Pulso = 0 Fade = false end else Pulso = Pulso + 20 if (Pulso >= 255) then Pulso = 255 Fade = true end end if getElementData(getLocalPlayer(),"remeshok") == "Cinturón_abrochado" then dxDrawImage(SizeX - 410,SizeY - 83, 30, 22,"Imagenes/Vehiculos/con-cinturon.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) else dxDrawImage(SizeX - 410,SizeY - 83, 30, 22,"Imagenes/Vehiculos/sin-cinturon.png",0.0,0.0,0.0,tocolor(255,255,255,Pulso),false) end end else setElementData(getLocalPlayer(),"remeshok","Cinturón_desabrochado") end end end addEventHandler("onClientRender", root, updateCamera) function handleVehicleDamage(attacker, weapon, loss, x, y, z, tyre) local player = getVehicleOccupant(source,0) if (moto [getElementModel (source)]) then elseif (boat [getElementModel (source)]) then elseif (air [getElementModel (source)]) then else if tonumber(loss) > 170 then if getElementData(getLocalPlayer(),"remeshok") == "Cinturón_desabrochado" then triggerServerEvent("removeMe", player, player) end end end end addEventHandler("onClientVehicleDamage", root, handleVehicleDamage) setTimer(function() local veh = getPedOccupiedVehicle(getLocalPlayer()) if veh then if getElementData(getLocalPlayer(),"remeshok") == "Cinturón_desabrochado" then if (moto [getElementModel (veh)]) then elseif (boat [getElementModel (veh)]) then elseif (air [getElementModel (veh)]) then else playSound("Sonidos/Alarma-cinturon/Cinturon.mp3",false) end end end end, interval * 1000 , 0)
  2. Solo vengo hacer una simple pregunta, relacionado con servidores DAYZ. Tengo un problema que cada vez que spawneo un auto ya sea por medio de un panel o de un comando, y tengo que resetar mi servidor porque ando testeando cosas, los autos se me duplican. Realmente no tengo ni la menor idéa de que podría ser, quizás alguno de ustedes mas expertos en DAYZ sepa guiarme para tener una noción por donde buscar . ¡Desde ya mil disculpas por las molestías que este post pueda ocasionar!
  3. Ya logré hacerlo, de todos modos muchas gracias por tu preocupación.
  4. People the messages are not displayed ... what is wrong ?, I need your help to fix it. local Fade = true local Pulso = 0 Textos = {} function startRollMessage(text,r,g,b) mensaje = true table.insert(Textos,{text,r,g,b}) checkTimers() if #Textos == 2 then table.remove(Textos,1) end end addEvent("onRollMessageStart",true) addEventHandler("onRollMessageStart",getLocalPlayer(),startRollMessage) function startRollMessage2(head,text,r,g,b) mensaje = true table.insert(Textos,{text,r,g,b}) checkTimers() if #Textos == 2 then table.remove(Textos,1) end end addEvent("Información", true) addEventHandler("Información",getLocalPlayer(),startRollMessage2) destruir = false function DestruirTexto () destruir = true end TiempoDelTexto = {} function checkTimers() if isTimer(TiempoDelTexto["destroy"]) then killTimer(TiempoDelTexto["destroy"]) end TiempoDelTexto["destroy"] = setTimer(DestruirTexto,5000,1) end SIDE = 50 toYpos = 0 function MensajesDx() if Fade then Pulso = Pulso - 20 if (Pulso <= 0) then Pulso = 0 playerBlipFade = false end else Pulso = Pulso + 20 if (Pulso >= 255) then Pulso = 255 Fade = true end end Textos = {} -- AGREGADO if mensaje == true then x,y = guiGetScreenSize() for i,data in next,(Textos) do length = dxGetTextWidth(data[1],1.0,"default-bold") dxDrawRectangle(x*0.450-length/2,y*0.000-SIDE+toYpos,x*0.100+length,y*0.010,tocolor(255, 0, 0, Pulso)) dxDrawRectangle(x*0.450-length/2,y*0.010-SIDE+toYpos,x*0.100+length,y*0.025,tocolor(0, 0, 0)) dxDrawText(data[1],x*0.900,y*0.014-SIDE+toYpos,x*0.100,y*0.100,tocolor(255, 255, 255, math.random(200,255)),1,"default-bold","center") if destruir == false then for to = 1,10 do toYpos = toYpos + 0.50 if toYpos >= 60 then toYpos = 60 end end end -- if destruir == true then for to = 1,10 do toYpos = toYpos - 0.50 if toYpos <= 0 then toYpos = 0 mensaje = false destruir = false end end end -- end end end addEventHandler("onClientRender",getRootElement(),MensajesDx) if fileExists("Barra-cliente.lua") == true then fileDelete("Barra-cliente.lua") end
  5. What I would like is for the weather to be logical according to the schedule. But since I am a newbie, I am not sure which IDs to use to achieve this.
  6. Is that, when you are inside the vehicle and it explodes there is no error. The problem occurs when you explode because of a vehicle being outside ... But in debugscript 3 it does not show any errors.
  7. Bro, I do not understand much, but, this does not fulfill the same function ? function notifyAboutExplosion2() for i, player in pairs(getVehicleOccupants(source)) do triggerEvent("kilLDayZPlayer", player) end end addEventHandler("onVehicleExplode", getRootElement(), notifyAboutExplosion2) SERVER spawn.lua DAYZ I use the typical free dayz game mode and they all come with the same function in the spawn.lua file
×
×
  • Create New...