function main()
while not isSampAvailable() do wait(0) end
while not sampIsLocalPlayerSpawned() do wait(0) end
sampRegisterChatCommand("spawn", function()
sampSendSpawn()
sampAddChatMessage("Ебать, ты заспавнился", -1)
end
while true do
wait(0)
end
end