231

Death

Recommended Posts

When I die, I want to beam back to where I died

 

Share this post


Link to post
2 hours ago, KINGKHAN said:

Respawn demek istiyorsun? 

 

2 hours ago, KINGKHAN said:

You mean respawn ? 

Yes,but back to where died

Share this post


Link to post

try this

addEventHandler("onPlayerWasted", root, function()
	local x,y,z = getElementPosition(source)
	spawnPlayer(source,x,y,z)
end

 

Share this post


Link to post

Try 
 

addEventHandler("onPlayerWasted", root, function()
	local x,y,z = getElementPosition(source)
    outputChatBox("You have died now respawned to your death location",source,255,0,0)
	spawnPlayer(source,x,y,z)
end

@231

Share this post


Link to post
addEventHandler("onPlayerWasted", root, function()
	spawnPlayer(source,getElementPosition(source))
end

You don't even need variables.

Share this post


Link to post

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.