Jump to content

Territorio marker


Recommended Posts

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 by DNL291
  • Thanks 1
Link to post
  • 5 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...