Advertisement
maky55

Death stuff

Mar 25th, 2015
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. function deathTimer()
  2.     setTimer(5000)
  3.    
  4.  
  5.     local spawnX, spawnY, spawnZ = 133.78814697266, -35.417057037354, 1.578125
  6. function deathHandler()
  7.     spawnPlayer(source, spawnX, spawnY, spawnZ)
  8.     fadeCamera(source, true)
  9.     setCameraTarget(source, source)
  10.     outputChatBox("And... BAM, you're back!", source)
  11. end
  12. addEventHandler("onPlayerWasted", getRootElement(), deathTimer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement