Pedroooo__ Posted February 20, 2022 Posted February 20, 2022 Queria criar um sistema onde o jogador não morresse , ele simplesmente quando sua vida chegar em zero ele ficasse somente insconsciente e com a tela preta e que só fique consciente daqui 2 minutos, alguém consegue me ajudar?
Moderators Tut Posted February 20, 2022 Moderators Posted February 20, 2022 Moving this into the Portuguese scripting section Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu
Rakashy Posted February 21, 2022 Posted February 21, 2022 (edited) Bom, aí está a base do server-side. Agora crie um client-Side com dxDraw para fazer a tela preta com msg e chame ela aonde está indicado local PlayersCaidos = {} addEventHandler("onPlayerWasted", root, function() if getElementData(source, "CAIDO") == true then return end setElementHealth(source,10) setElementData(source, "CAIDO", true) triggerClientEvent("EVENTO QUE INICIA A TELA PRETA COM MSG", source) PlayersCaidos[source] = setTimer(function() setElementData(source, "CAIDO", false) triggerClientEvent("EVENTO QUE FINALIZA A TELA PRETA COM MSG", source) PlayersCaidos[source] = nil end, 2*60000, 1) end) Edited February 21, 2022 by Lord Henry
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now