Jump to content

window shows for every body!!!


#meS

Recommended Posts

Posted

hello i made when play die it shows screen but it shows for every body!!!

code:

function setDeathSpawn() 
  
guiSetVisible(SPAWN.window[1],true) 
showCursor(true) 
end 
addEventHandler("onClientPlayerWasted",root,setDeathSpawn) 

Posted
function setDeathSpawn() 
  
guiSetVisible(SPAWN.window[1],true) 
showCursor(true) 
end 
addEventHandler("onClientPlayerWasted",resourceRoot,setDeathSpawn) 

now it's not working at all -_________-

Posted

Try now

function setDeathSpawn() 
  
guiSetVisible(SPAWN.window[1],true) 
showCursor(true) 
end 
addEventHandler("onClientPlayerWasted",getLocalPlayer(),setDeathSpawn) 

Posted

try this:)

function setDeathSpawn() 
  
guiSetVisible(SPAWN.window[1],true) 
showCursor(true) 
end 
addEventHandler("onClientPlayerWasted",getLocalPlayer(),setDeathSpawn) 

Posted

"localPlayer" is a valid argument for this eventhandler as the script loads individually for each client, another solution with the main code in focus would be to check if "source" is equal to "localPlayer" as that only occurs when localPlayer is the player who died.

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...