231 Posted August 10, 2018 Share Posted August 10, 2018 When I die, I want to beam back to where I died Link to comment
231 Posted August 10, 2018 Author Share Posted August 10, 2018 2 hours ago, KINGKHAN said: Respawn demek istiyorsun? 2 hours ago, KINGKHAN said: You mean respawn ? Yes,but back to where died Link to comment
Mahlukat Posted August 10, 2018 Share Posted August 10, 2018 try this addEventHandler("onPlayerWasted", root, function() local x,y,z = getElementPosition(source) spawnPlayer(source,x,y,z) end Link to comment
VenomOG Posted August 13, 2018 Share Posted August 13, 2018 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 Link to comment
Discord Moderators Pirulax Posted August 13, 2018 Discord Moderators Share Posted August 13, 2018 addEventHandler("onPlayerWasted", root, function() spawnPlayer(source,getElementPosition(source)) end You don't even need variables. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now