addCommandHandler('kill',
function ( player )
setTimer(killPed,5000,1, player) -- then player type /kill timer start and he must wait 5 seconds to die
setElementFrozen( player, true) -- freeze player
outputChatBox(" You'll die in 5 seconds!", player, 255, 255, 255, false)
end
)
function unfroze(player)
serElementFrozen( player, false) -- unfroze player after spawn
end
addEventHandler("onPlayerRespawn", player, unfroze)
Give credits to their real owners, the last part won't work and you got it from Scripting subforums