Jump to content

استفسار


MA[S]RIY

Recommended Posts

السلام عليكم 

انا مسوي 

مركر

و في 10 اماكن انا محددها

كيف اخليه لما يدخل المركر ينزل في اول مكان

لما شخص اخر يدخل المركر ينزل في تاني مكان

لما شخص ثالث يدخلك المركر ينزل في مكان ثالث

وهكذا

؟

Link to comment
Markers, Marker = { 
	{ PositionMarker = { x, y, z }, PositionMove = { x, y, z } }
}, { }

for _, Value in pairs( Markers ) do 
	local aMarker = createMarker( Value['PositionMarker'][1], Value['PositionMarker'][2], Value['PositionMarker'][3], 'cylinder', 1 )
	Marker[aMarker] = { Value['PositionMove'][1], Value['PositionMove'][2], Value['PositionMove'][3] }
end 

addEventHandler( 'onMarkerHit', resourceRoot,
function( Player ) 
	return ( Marker[source] ) and setElementPosition( Player, unpack( Marker[source] ) ) 
end )

 

Link to comment

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...