server-side
function onWasted()
if not( isGuestAccount (getPlayerAccount(source)) ) then
fadeCamera (source, false)
setTimer (spawnPlayer, 1000, 1, source, POSX,POSY, POZ, 0, getPedSkin (source), 0, 0)
setTimer (fadeCamera, 2000, 1, source, true)
end
end
addEventHandler ("onPlayerWasted", getRootElement(), onWasted)