SHOW:
|
|
- or go back to the newest paste.
| 1 | function deathTimer() | |
| 2 | - | setTimer(5000) |
| 2 | + | player=source |
| 3 | - | |
| 3 | + | setTimer(deathHandler,5000,1,player) --https://wiki.multitheftauto.com/wiki/SetTimer |
| 4 | end | |
| 5 | - | local spawnX, spawnY, spawnZ = 133.78814697266, -35.417057037354, 1.578125 |
| 5 | + | |
| 6 | - | function deathHandler() |
| 6 | + | local spawnX, spawnY, spawnZ = 133.78814697266, -35.417057037354, 1.578125 |
| 7 | - | spawnPlayer(source, spawnX, spawnY, spawnZ) |
| 7 | + | function deathHandler(player) |
| 8 | - | fadeCamera(source, true) |
| 8 | + | spawnPlayer(player, spawnX, spawnY, spawnZ) |
| 9 | - | setCameraTarget(source, source) |
| 9 | + | fadeCamera(player, true) |
| 10 | - | outputChatBox("And... BAM, you're back!", source)
|
| 10 | + | setCameraTarget(player, player) |
| 11 | outputChatBox("And... BAM, you're back!", player)
| |
| 12 | end | |
| 13 | addEventHandler("onPlayerWasted", getRootElement(), deathTimer) |