local x = 268.868
local y = 2037.208
local z = 17.7
function respawn(player)
if player then
spawnPlayer(player, x, y, z)
fadeCamera(player, true)
setCameraTarget(player, player)
givePlayerMoney(player, 0)
setPlayerTeam(player, player)
giveWeapon(player, 31, 1000)
outputChatBox("", player, 255, 255, 255)
end
end
addEventHandler("onPlayerWasted",root,
function()
setTimer(respawn,8000,1,source) --respawn after 8 second later
end)