Dr.Xen Posted February 17, 2014 Author Share Posted February 17, 2014 آهـآ مشكور اخوي ،،آخر طلب الي هوآ ابي اضيف اكثر من بوتون + إحداثيات + لو دخلت أي ماركر يفتح لي اللوحة مدري ليش != لو رحت في مكان الكاميرآ تفتح !! Link to comment
K1NG Posted February 17, 2014 Share Posted February 17, 2014 آهـآ مشكور اخوي ،،آخر طلب الي هوآ ابي اضيف اكثر من بوتون + إحداثيات + لو دخلت أي ماركر يفتح لي اللوحة مدري ليش !! وضح طلبكـ ، تقصد يعني تبي تسوي أكثر من زر يسوي نفس الوظيفة بس يغير احداثيات الكاميرا؟ . اطرح الكود حق الماركر مع كود إنشاء الماركر + Link to comment
Dr.Xen Posted February 17, 2014 Author Share Posted February 17, 2014 يب .. createMarker(1525.90430,-1658.33691,542,"cylinder",2,255,0,0,255) addEventHandler ("onClientMarkerHit",root, function ( hitPlayer ) local mm = getPlayerTeam ( hitPlayer ) if getElementType ( hitPlayer ) == "player" and mm and getTeamName ( mm ) == "Police" then guiSetVisible (GUIEditor.window[1], true) showCursor (true) end end ) addEventHandler ("onClientGUIClick", root, function () if source == Close then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( not isCursorShowing ( ) ) end end ) addEventHandler ( "onClientGUIClick", GUIEditor.button[4], function ( ) setCameraMatrix ( 1560.1276855469, -1670.8175048828, 55.877300262451, 1559.6396484375, -1670.6237792969, 55.026256561279 ) showCursor ( not isCursorShowing ( ) ) guiSetVisible ( GUIEditor.window[1], false ) end, false ) addCommandHandler ( "Back", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[0] ) ) showCursor ( not isCursorShowing ( ) ) setCameraTarget ( getLocalPlayer ( ) ) end ) addEventHandler ( "onClientGUIClick", GUIEditor.button[2], function ( ) setCameraMatrix ( 1584.1070556641, -1688.6701660156, 7.3071999549866, 1583.6789550781, -1689.5546875, 7.1215643882751 ) showCursor ( not isCursorShowing ( ) ) guiSetVisible ( GUIEditor.window[1], false ) end, false ) addEventHandler ( "onClientGUIClick", GUIEditor.button[3], function ( ) setCameraMatrix ( 1562.4294433594, -1630.6815185547, 562.40600585938, 1562.6004638672, -1631.5120849609, 561.87603759766 ) showCursor ( not isCursorShowing ( ) ) guiSetVisible ( GUIEditor.window[1], false ) end, false ) addEventHandler ( "onClientGUIClick", GUIEditor.button[1], function ( ) setCameraMatrix ( 1509.0399169922, -1711.6153564453, 88.613998413086, 1509.5380859375, -1711.1164550781, 87.904853820801 ) showCursor ( not isCursorShowing ( ) ) guiSetVisible ( GUIEditor.window[1], false ) end, false ) Link to comment
al-Kobra Posted February 17, 2014 Share Posted February 17, 2014 (edited) local ma = createMarker(1525.90430,-1658.33691,542,"cylinder",2,255,0,0,255) addEventHandler ("onClientMarkerHit",ma, function ( hitPlayer ) local mm = getPlayerTeam ( hitPlayer ) if hitPlayer == getLocalPlayer ( ) and mm and getTeamName ( mm ) == "Police" then guiSetVisible (GUIEditor.window[1], true) showCursor (true) end end ) هذا للماركر ,, الطلب الأول ما فهمتك Edited February 17, 2014 by Guest Link to comment
Dr.Xen Posted February 17, 2014 Author Share Posted February 17, 2014 جاري التجربةة .. الطلب الثاني انا سويت وزبط !! شكرآ لكم جزاكم الله خير .. !! Link to comment
iPrestege Posted February 17, 2014 Share Posted February 17, 2014 local ma = createMarker(1525.90430,-1658.33691,542,"cylinder",2,255,0,0,255) addEventHandler ("onClientMarkerHit",ma, function ( hitPlayer ) local mm = getPlayerTeam ( hitPlayer ) if getElementType ( hitPlayer ) == "player" and mm and getTeamName ( mm ) == "Police" then guiSetVisible (GUIEditor.window[1], true) showCursor (true) end end ) هذا للماركر ,, الطلب الأول ما فهمتك تحقق انة لوكال . Link to comment
K1NG Posted February 17, 2014 Share Posted February 17, 2014 local ma = createMarker(1525.90430,-1658.33691,542,"cylinder",2,255,0,0,255) addEventHandler ("onClientMarkerHit",ma, function ( hitPlayer ) local mm = getPlayerTeam ( hitPlayer ) if getElementType ( hitPlayer ) == "player" and mm and getTeamName ( mm ) == "Police" then guiSetVisible (GUIEditor.window[1], true) showCursor (true) end end ) هذا للماركر ,, الطلب الأول ما فهمتك (= كذا النافذة والماوس رح تصير تفتح لكل اللاعبين الي بتيم بوليس ليه تتحقق من الالمنت الي دخل الماركر إذا كان لاعب وهو الحدث ما يوصله إشارة غير إذا كان الإلمنت الي دخل الماركر هو لاعب؟ + : عموماً الكود يصير كذا local theMarker = createMarker ( 1525.90430, -1658.33691, 542, "cylinder", 2, 255, 0, 0, 255 ) addEventHandler ( "onClientMarkerHit", theMarker, function ( hitPlayer ) local mm = getPlayerTeam ( hitPlayer ) if ( hitPlayer == localPlayer ) and ( mm ) and ( getTeamName ( mm ) == "Police" ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end ) Link to comment
al-Kobra Posted February 17, 2014 Share Posted February 17, 2014 local ma = createMarker(1525.90430,-1658.33691,542,"cylinder",2,255,0,0,255) addEventHandler ("onClientMarkerHit",ma, function ( hitPlayer ) local mm = getPlayerTeam ( hitPlayer ) if getElementType ( hitPlayer ) == "player" and mm and getTeamName ( mm ) == "Police" then guiSetVisible (GUIEditor.window[1], true) showCursor (true) end end ) هذا للماركر ,, الطلب الأول ما فهمتك تحقق انة لوكال . تم Link to comment
فاّرس Posted February 17, 2014 Share Posted February 17, 2014 اذا تبغى اكثر من زر يسوي نفس الوظيفه سوي تحقق بسيط , if source == button1 or source == button2 or ... then 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