Jump to content

[ Help] GM Dayz Bug , Bug with Backpacks


Smirnoff

Recommended Posts

Good morning or nights and greetings

I have a bug in my gm of dayz

happens when the player dies and backpacks have in inventory they do not disappear

the debugscript I do not throw that throw errors or are not related to the bug in question

if anyone knows to be or know that function is responsible for the removal of items at death

your help would be great

only errors that appear

xwz9WiW.jpg

Lines of the function in question from mistakes

function showDayZDeathScreen()    setTimer ( fadeCamera, 1000, 1, true, 1.5 )    deadBackground = guiCreateStaticImage(0,0,1,1,"images/dead.jpg",true)    deathText = guiCreateLabel(0,0.8,1,0.2,"You died! \n You will respawn in 5 seconds.",true)    guiLabelSetHorizontalAlign (deathText,"center")    setTimer(guiSetVisible,5000,1,false)    --- 1737    setTimer(guiSetVisible,5000,1,false)    --- 1738    setTimer(destroyElement,5000,1,deathText)    setTimer(destroyElement,5000,1,deadBackground)end

Link to comment

Good morning or nights and greetings

I have a bug in my gm of dayz

happens when the player dies and backpacks have in inventory they do not disappear

the debugscript I do not throw that throw errors or are not related to the bug in question

if anyone knows to be or know that function is responsible for the removal of items at death

your help would be great

only errors that appear

xwz9WiW.jpg

Lines of the function in question from mistakes

function showDayZDeathScreen() 
    setTimer ( fadeCamera, 1000, 1, true, 1.5 ) 
    deadBackground = guiCreateStaticImage(0,0,1,1,"images/dead.jpg",true) 
    deathText = guiCreateLabel(0,0.8,1,0.2,"You died! \n You will respawn in 5 seconds.",true) 
    guiLabelSetHorizontalAlign (deathText,"center") 
    setTimer(guiSetVisible,5000,1,false)    --- 1737 
    setTimer(guiSetVisible,5000,1,false)    --- 1738 
    setTimer(destroyElement,5000,1,deathText) 
    setTimer(destroyElement,5000,1,deadBackground) 
end 

Link to comment
    deadBackground = guiCreateStaticImage(0,0,1,1,"images/dead.jpg",true) 
    deathText = guiCreateLabel(0,0.8,1,0.2,"You died! \n You will respawn in 5 seconds.",true) 
    guiLabelSetHorizontalAlign (deathText,"center") 
  
  
addEventHandler("onClientPlayerWasted",root, 
function () 
  
guiSetVisible(deadBackground,true) 
guiSetVisible(deathText,true) 
  
setTimer(set,3000,1) 
  
end 
  
) 
  
  
  
function  set() 
  
  
guiSetVisible(deadBackground,false) 
  
guiSetVisible(deathText,false) 
  
end 
  
  

Link to comment
    deadBackground = guiCreateStaticImage(0,0,1,1,"images/dead.jpg",true) 
    deathText = guiCreateLabel(0,0.8,1,0.2,"You died! \n You will respawn in 5 seconds.",true) 
    guiLabelSetHorizontalAlign (deathText,"center") 
  
  
addEventHandler("onClientPlayerWasted",root, 
function () 
  
guiSetVisible(deadBackground,true) 
guiSetVisible(deathText,true) 
  
setTimer(set,3000,1) 
  
end 
  
) 
  
  
  
function  set() 
  
  
guiSetVisible(deadBackground,false) 
  
guiSetVisible(deathText,false) 
  
end 
  
  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...