local state = false
main = function()
sampRegisterChatCommand("death", function()
state = not state
end)
while true do wait(0)
if state then
sampSendTakeDamage(65535, 0, 51, 3) -- первый вариант
sampSendDeathByPlayer(65535, 255) -- второй вариант
end
end
end