#DaNiLiN Posted August 19, 2018 Posted August 19, 2018 Qual seria a forma correta de fazer contador do marker contar por player dentro. Ex: a cada player que entra dentro de certo marker começa a contar 1 segundo a mais. Meu comentário foi útil? Deixe um Thanks
DNL291 Posted August 27, 2018 Posted August 27, 2018 (edited) Acho que é isto que você quer dizer: local addtSecs = 0 addEventHandler( "onMarkerHit", root, function ( hitPlayer ) if getElementType(hitPlayer) == "player" then addtSecs = addtSecs + 1000 -- 1000ms : 1 segundo end end ) addEventHandler( "onMarkerLeave", root, function ( hitPlayer ) if getElementType(hitPlayer) == "player" then addtSecs = addtSecs - 1000 end end ) Edited August 27, 2018 by DNL291 1 Please do not PM me with scripting related question nor support, use the forums instead.
#DaNiLiN Posted September 27, 2018 Author Posted September 27, 2018 isso msm. Obrigado Meu comentário foi útil? Deixe um Thanks
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