G.KinG Posted March 22, 2014 Share Posted March 22, 2014 سلام عليكم ابي هالكود لتيم معين يعني ما يخش هالماركر الا تيم واذا واحد من التيم الثاني خش الماركر يكنسل الحدث وما تفتح له اللوحه وشكرآ Mark = { {x,y,z} } for k,v in ipairs (Mark) do z = v[3] -1 Marker = createMarker ( v[1], v[2], z, "cylinder", 1.5, 255, 255, 255, 255 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible (GUIEditor.window[1], true ) showCursor( true ) end end ) end Link to comment
iPrestege Posted March 22, 2014 Share Posted March 22, 2014 سلام عليكمابي هالكود لتيم معين يعني ما يخش هالماركر الا تيم واذا واحد من التيم الثاني خش الماركر يكنسل الحدث وما تفتح له اللوحه وشكرآ Mark = { {x,y,z} } for k,v in ipairs (Mark) do z = v[3] -1 Marker = createMarker ( v[1], v[2], z, "cylinder", 1.5, 255, 255, 255, 255 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible (GUIEditor.window[1], true ) showCursor( true ) end end ) end عليكم السلام Team = 'Team Name' Mark = { {x,y,z} } for k,v in ipairs (Mark) do z = v[3] -1 Marker = createMarker ( v[1], v[2], z, "cylinder", 1.5, 255, 255, 255, 255 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer and getPlayerTeam ( hitPlayer ) and getTeamName ( getPlayerTeam ( hitPlayer ) ) == Team and guiGetVisible ( GUIEditor.window[1] ) == false ) then guiSetVisible (GUIEditor.window[1], true ) showCursor( true ) end end ) end Link to comment
G.KinG Posted March 22, 2014 Author Share Posted March 22, 2014 يعطيك العافيةة وشكرآ على الرد السريع Link to comment
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