Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnPlayerDeath ( ammo, attacker, weapon, bodypart )
- SetTimer(SpawnPlayer,3*1000)
- end
- addEventHandler ( "onPlayerWasted", root, OnPlayerDeath)
- function SpawnPlayer()
- local x, y, z, ang = unpack(spawnpoints[math.random(#spawnpoints)])
- spawnPlayer(source, x, y, z)
- setPlayerRotation (source, ang)
- fadeCamera(source, true)
- setCameraTarget(source, source)
- end
Add Comment
Please, Sign In to add comment