Guest User

Untitled

a guest
Jul 20th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. function OnPlayerDeath ( ammo, attacker, weapon, bodypart )
  2. SetTimer(SpawnPlayer,3*1000)
  3. end
  4. addEventHandler ( "onPlayerWasted", root, OnPlayerDeath)
  5.  
  6. function SpawnPlayer()
  7. local x, y, z, ang = unpack(spawnpoints[math.random(#spawnpoints)])
  8. spawnPlayer(source, x, y, z)
  9. setPlayerRotation (source, ang)
  10. fadeCamera(source, true)
  11. setCameraTarget(source, source)
  12. end
Add Comment
Please, Sign In to add comment