Mr.KING_# Posted October 25, 2013 Share Posted October 25, 2013 (edited) السلام عليكم ورحمة الله وبركاتة سويت نافذه حق سيارات الشرطة وشغاله تمام بس في مشكلة سيارتين شغاله وسيارتين مو شغالين والنافذه ماتظهر الا اذا ضغط علي السياره الاوله كثير انا عايزه السياراتين يشتغلو والنافذه تظهر لما اروح المركر وهذا الكود هذا كلنت Markers = { [1] = { 1561.6853027344, -1610.3962402344, 13.3828125 }, [2] = { 1567.1374511719, -1609.6643066406, 13.3828125 }, [3] = { 1572.4000244141, -1609.6999511719, 13.39999961853 }, [4] = { 1557.6053466797, -1610.416015625, 13.3828125 }, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 0, 0, 255, 255 ) end end ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(290,179,172,343,"Cars Police v1.0",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(303,226,139,49,"Police LS",false) GUIEditor_Button[2] = guiCreateButton(302,294,137,48,"Police Hpv1000",false) GUIEditor_Button[4] = guiCreateButton(300,362,136,46,"Police Enforcer",false) GUIEditor_Button[5] = guiCreateButton(298,427,136,45,"Police Ranger",false) GUIEditor_Label[2] = guiCreateLabel(0.61046516895294,0.05830904841423,2.3841857910156e-007,-5.9604644775391e-008,"",true,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[2],1) guiLabelSetVerticalAlign(GUIEditor_Label[2],center) guiLabelSetHorizontalAlign(GUIEditor_Label[2],center,false) GUIEditor_Label[3] = guiCreateLabel(292,202,147,21,"By MR.KING",false) guiLabelSetVerticalAlign(GUIEditor_Label[3],center) guiLabelSetHorizontalAlign(GUIEditor_Label[3],center,false) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( hitPlayer ) if hitPlayer == localPlayer then local team = getPlayerTeam ( hitPlayer ) if team and getTeamName ( team ) == "Police" then guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor_Window[1] ) ) end end end ) function givecar ( id ) triggerServerEvent ( "givecar", localPlayer, id ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible(GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor_Window[1] ) ) end addEventHandler( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Button[1] ) then givecar(596) elseif ( source == GUIEditor_Button[6] ) then givecar(523) elseif ( source == GUIEditor_Button[3] ) then givecar(427) elseif ( source == GUIEditor_Button[4] ) then givecar(599) end end ) هذه سيرفر Vehicles = {} addEvent ( "givecar", true ) addEventHandler ( "givecar", root, function ( id ) if Vehicles [ source ] then destroyElement ( Vehicles [ source ] ) end if tonumber( id ) then local x, y, z = getElementPosition ( source ) Vehicles [ source ] = createVehicle ( tonumber( id ), x, y, z ) if Vehicles [ source ] then warpPedIntoVehicle ( source, Vehicles [ source ] ) end end end ) شيء كمان اللازرار تفضل ظاهره Edited October 25, 2013 by Guest Link to comment
Stranger Posted October 25, 2013 Share Posted October 25, 2013 Markers = { [1] = { 1561.6853027344, -1610.3962402344, 13.3828125 }, [2] = { 1567.1374511719, -1609.6643066406, 13.3828125 }, [3] = { 1572.4000244141, -1609.6999511719, 13.39999961853 }, [4] = { 1557.6053466797, -1610.416015625, 13.3828125 }, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 0, 0, 255, 255 ) end end ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(290,179,172,343,"Cars Police v1.0",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(303,226,139,49,"Police LS",false, GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(302,294,137,48,"Police Hpv1000",false, GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(300,362,136,46,"Police Enforcer",false, GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(298,427,136,45,"Police Ranger",false, GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(0.61046516895294,0.05830904841423,2.3841857910156e-007,-5.9604644775391e-008,"",true,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[2],1) guiLabelSetVerticalAlign(GUIEditor_Label[2],center) guiLabelSetHorizontalAlign(GUIEditor_Label[2],center,false) GUIEditor_Label[3] = guiCreateLabel(292,202,147,21,"By MR.KING",false, GUIEditor_Window[1]) guiLabelSetVerticalAlign(GUIEditor_Label[3],center) guiLabelSetHorizontalAlign(GUIEditor_Label[3],center,false) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( hitPlayer ) if hitPlayer == localPlayer then local team = getPlayerTeam ( hitPlayer ) if team and getTeamName ( team ) == "Police" then guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor_Window[1] ) ) end end end ) function givecar ( id ) triggerServerEvent ( "givecar", localPlayer, id ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible(GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor_Window[1] ) ) end addEventHandler( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Button[1] ) then givecar(596) elseif ( source == GUIEditor_Button[2] ) then givecar(523) elseif ( source == GUIEditor_Button[4] ) then givecar(427) elseif ( source == GUIEditor_Button[5] ) then givecar(599) end end ) Link to comment
Mr.KING_# Posted October 25, 2013 Author Share Posted October 25, 2013 شكرآ تم حل مشكلة السيارات بس في مشكلة النافذه تظهر حتي لو اخرج واخش ولما اختار سيارة النافذه تروح والازرار تفضل موجدة واخذ سيارة انا ابيها لما اروح المركر لو سمحت لآن هيك كل واحد يدخل السيرفر ياخذ سيارة ماتختفي حتي الازرار فهمتني Link to comment
Stranger Posted October 25, 2013 Share Posted October 25, 2013 (edited) همم جرب Markers = { [1] = { 1561.6853027344, -1610.3962402344, 13.3828125 }, [2] = { 1567.1374511719, -1609.6643066406, 13.3828125 }, [3] = { 1572.4000244141, -1609.6999511719, 13.39999961853 }, [4] = { 1557.6053466797, -1610.416015625, 13.3828125 }, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 0, 0, 255, 255 ) end end ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(290,179,172,343,"Cars Police v1.0",false) guiSetVisible(GUIEditor_Window[1], false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(303,226,139,49,"Police LS",false, GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(302,294,137,48,"Police Hpv1000",false, GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(300,362,136,46,"Police Enforcer",false, GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(298,427,136,45,"Police Ranger",false, GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(0.61046516895294,0.05830904841423,2.3841857910156e-007,-5.9604644775391e-008,"",true,GUIEditor_Window[1]) guiSetAlpha(GUIEditor_Label[2],1) guiLabelSetVerticalAlign(GUIEditor_Label[2],center) guiLabelSetHorizontalAlign(GUIEditor_Label[2],center,false, GUIEditor_Window[1]) GUIEditor_Label[3] = guiCreateLabel(292,202,147,21,"By MR.KING",false, GUIEditor_Window[1]) guiLabelSetVerticalAlign(GUIEditor_Label[3],center) guiLabelSetHorizontalAlign(GUIEditor_Label[3],center,false) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( hitPlayer ) if hitPlayer == localPlayer then local team = getPlayerTeam ( hitPlayer ) if team and getTeamName ( team ) == "Police" then guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor_Window[1] ) ) end end end ) function givecar ( id ) triggerServerEvent ( "givecar", localPlayer, id ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible(GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor_Window[1] ) ) end addEventHandler( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Button[1] ) then givecar(596) elseif ( source == GUIEditor_Button[2] ) then givecar(523) elseif ( source == GUIEditor_Button[4] ) then givecar(427) elseif ( source == GUIEditor_Button[5] ) then givecar(599) end end ) Edited October 25, 2013 by Guest Link to comment
Mr.KING_# Posted October 25, 2013 Author Share Posted October 25, 2013 شكرآ ناقص مشكلة واحده لما ادخل المركر ماشوف الازرار :@ Link to comment
Stranger Posted October 25, 2013 Share Posted October 25, 2013 جرب هذا Markers = { [1] = { 1561.6853027344, -1610.3962402344, 13.3828125 }, [2] = { 1567.1374511719, -1609.6643066406, 13.3828125 }, [3] = { 1572.4000244141, -1609.6999511719, 13.39999961853 }, [4] = { 1557.6053466797, -1610.416015625, 13.3828125 }, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 0, 0, 255, 255 ) end end ) GUIEditor = { button = {}, window = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(287, 133, 210, 315, "Cars Police v1.0", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(52, 73, 101, 37, "Police LS", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(52, 125, 101, 37, "Police Hpv1000", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(52, 178, 101, 37, "Police Enforcer", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(52, 229, 101, 37, "Police Ranger", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(73, 37, 57, 19, "By MR.KING", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 255, 255, 0) guiSetVisible(GUIEditor.window[1],false) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( hitPlayer ) if hitPlayer == localPlayer then local team = getPlayerTeam ( hitPlayer ) if team and getTeamName ( team ) == "Police" then guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor.window[1] ) ) end end end ) function givecar ( id ) triggerServerEvent ( "givecar", localPlayer, id ) guiSetVisible ( GUIEditor.window[1]], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible(GUIEditor.window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor.window[1] ) ) end addEventHandler( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then givecar(596) elseif ( source == GUIEditor.button[2] ) then givecar(523) elseif ( source == GUIEditor.button[4] ) then givecar(427) elseif ( source == GUIEditor.button[5] ) then givecar(599) end end ) Link to comment
Mr.KING_# Posted October 25, 2013 Author Share Posted October 25, 2013 خخخخخخخخخخخخخخخخخخخ كل شيء اختفي حتي المركر كل شيء Link to comment
#GaMeR7 Posted October 25, 2013 Share Posted October 25, 2013 الحبايب شاربين شي ؟ بعدين يا ذا بيست انت تسمى عضو النسخ ولصق Link to comment
Mr.KING_# Posted October 25, 2013 Author Share Posted October 25, 2013 الحبايب شاربين شي ؟ بعدين يا ذا بيست انت تسمى عضو النسخ ولصق نعم ؟ Link to comment
Stranger Posted October 25, 2013 Share Posted October 25, 2013 جرب هذا اكيد بيشتغل Markers = { [1] = { 1561.6853027344, -1610.3962402344, 13.3828125 }, [2] = { 1567.1374511719, -1609.6643066406, 13.3828125 }, [3] = { 1572.4000244141, -1609.6999511719, 13.39999961853 }, [4] = { 1557.6053466797, -1610.416015625, 13.3828125 }, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 0, 0, 255, 255 ) end end ) GUIEditor = { button = {}, window = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(287, 133, 210, 315, "Cars Police v1.0", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(52, 73, 101, 37, "Police LS", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(52, 125, 101, 37, "Police Hpv1000", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(52, 178, 101, 37, "Police Enforcer", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(52, 229, 101, 37, "Police Ranger", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(73, 37, 57, 19, "By MR.KING", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 255, 255, 0) guiSetVisible(GUIEditor.window[1],false) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( hitPlayer ) if hitPlayer == localPlayer then local team = getPlayerTeam ( hitPlayer ) if team and getTeamName ( team ) == "Police" then guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor.window[1] ) ) end end end ) function givecar ( id ) triggerServerEvent ( "givecar", localPlayer, id ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible(GUIEditor.window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor.window[1] ) ) end addEventHandler( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then givecar(596) elseif ( source == GUIEditor.button[2] ) then givecar(523) elseif ( source == GUIEditor.button[4] ) then givecar(427) elseif ( source == GUIEditor.button[5] ) then givecar(599) end end ) Link to comment
#GaMeR7 Posted October 25, 2013 Share Posted October 25, 2013 مانستر انت مبرمج ؟ وهل عندك سرفير ؟ Link to comment
Stranger Posted October 25, 2013 Share Posted October 25, 2013 مانستر انت مبرمج ؟ وهل عندك سرفير ؟ يب Link to comment
Mr.KING_# Posted October 25, 2013 Author Share Posted October 25, 2013 جرب هذا اكيد بيشتغل Markers = { [1] = { 1561.6853027344, -1610.3962402344, 13.3828125 }, [2] = { 1567.1374511719, -1609.6643066406, 13.3828125 }, [3] = { 1572.4000244141, -1609.6999511719, 13.39999961853 }, [4] = { 1557.6053466797, -1610.416015625, 13.3828125 }, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 0, 0, 255, 255 ) end end ) GUIEditor = { button = {}, window = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(287, 133, 210, 315, "Cars Police v1.0", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(52, 73, 101, 37, "Police LS", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(52, 125, 101, 37, "Police Hpv1000", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(52, 178, 101, 37, "Police Enforcer", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(52, 229, 101, 37, "Police Ranger", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(73, 37, 57, 19, "By MR.KING", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 255, 255, 0) guiSetVisible(GUIEditor.window[1],false) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( hitPlayer ) if hitPlayer == localPlayer then local team = getPlayerTeam ( hitPlayer ) if team and getTeamName ( team ) == "Police" then guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor.window[1] ) ) end end end ) function givecar ( id ) triggerServerEvent ( "givecar", localPlayer, id ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible(GUIEditor.window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor.window[1] ) ) end addEventHandler( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then givecar(596) elseif ( source == GUIEditor.button[2] ) then givecar(523) elseif ( source == GUIEditor.button[4] ) then givecar(427) elseif ( source == GUIEditor.button[5] ) then givecar(599) end end ) خخخخخخخخخخخخخخخخخخخ قول ان شاء الله يب اشتغل بس انت سويت نافذه تانية مدري ليه احس ان مود حق صنع النافذه عندي خربان ممكن المود حقكك ؟ ارفعه لو سمحت جامر سيرفر مانستر W.Z محاربين الزومبي Link to comment
Mr.KING_# Posted October 25, 2013 Author Share Posted October 25, 2013 شكرآ تم الحل من قبل مانستر برجاء غلق الموضوع # Link to comment
فاّرس Posted October 25, 2013 Share Posted October 25, 2013 الحبايب شاربين شي ؟ بعدين يا ذا بيست انت تسمى عضو النسخ ولصق متأكد انك تقصدني انا ؟ اقول النسخ واللصق لك واشكالك يا حلو قال ايش قال نسخ ولصق مناك بس Edit # Mr.KING_# الافضل ما تذكر اسماء في العنوان , في ناس تقدر تسآعد Link to comment
Mr.KING_# Posted October 25, 2013 Author Share Posted October 25, 2013 الحبايب شاربين شي ؟ بعدين يا ذا بيست انت تسمى عضو النسخ ولصق متأكد انك تقصدني انا ؟ اقول النسخ واللصق لك واشكالك يا حلو قال ايش قال نسخ ولصق مناك بس Edit # Mr.KING_# الافضل ما تذكر اسماء في العنوان , في ناس تقدر تسآعد خخخخخخخخخخخخخخخخ مافي احد امس ساعدني غيرك :] Link to comment
فاّرس Posted October 25, 2013 Share Posted October 25, 2013 خخخخخخخخخخخخخخخخ مافي احد امس ساعدني غيرك :] اي عارف لكن كل واحد وله ظروفه ممكن يكون مشغول او مو بالبيت انا امس كنت فاضي بس اوقات تكون نايم... وياريت تعدل الموضوع وتكتب تمت الافاده. Link to comment
K1NG Posted October 25, 2013 Share Posted October 25, 2013 الحبايب شاربين شي ؟ بعدين يا ذا بيست انت تسمى عضو النسخ ولصق ؟ شقصتكـ انت، كل الناس شاربين عندكـ وانت الصاحي بس ؟؟ وبعدين شفيكـ تعيب الرجال ونسيت نفسكـ ؟؟؟؟؟؟؟؟؟؟؟ + (= شفيكـ تعيب فيه وهو مادش الموضوع كله اصلاً ؟ هاذ دليل على إنكـ انت الشارب يابني . وبعدين نسيت نفسكـ يوم تتبند وتسجل بحساب جديد؟ لووووووول، عشان كذا الزم الصمت ولاتعيب غيركـ وتسوي نفسكـ طالع منها Link to comment
Tete omar Posted October 25, 2013 Share Posted October 25, 2013 الي على راسه بطحة يحسس عليها #|=x=|K!NG|=x=|# يغلق Link to comment
Recommended Posts