Ja[B]er[X]Pro Posted January 7, 2016 Posted January 7, 2016 جرب local marker = createMarker ( 220.34393310547, 1921.0068359375, 16.640625, "cylinder", 1.2999999523163, 47, 0, 255 ) GUIEditor = { button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(341, 214, 357, 248, "لوحة المواتر الخاص بك | Server ProGamer", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFD0101") GUIEditor.button[1] = guiCreateButton(56, 40, 233, 59, "مركبة | vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(55, 110, 235, 54, "دراجة نارية | Motorcycle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(56, 172, 236, 50, "دبابة | Tank", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") ---------------عند لمس الماركر يفتح اللوحة addEventHandler("onMarkerHit",marker function () guiSetVisible (GUIEditor.window[1],true) showCursor(true) end) ------------- addEventHandler("onClientGUIClick",root function() if source == GUIEditor.button[1] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root function() if source == GUIEditor.button[2] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root function() if source == GUIEditor.button[3] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end)
Ja[B]er[X]Pro Posted January 7, 2016 Posted January 7, 2016 local marker = createMarker ( 220.34393310547, 1921.0068359375, 16.640625, "cylinder", 1.2999999523163, 47, 0, 255 ) GUIEditor = { button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(341, 214, 357, 248, "لوحة المواتر الخاص بك | Server ProGamer", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFD0101") GUIEditor.button[1] = guiCreateButton(56, 40, 233, 59, "مركبة | vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(55, 110, 235, 54, "دراجة نارية | Motorcycle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(56, 172, 236, 50, "دبابة | Tank", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") ---------------عند لمس الماركر يفتح اللوحة addEventHandler("onMarkerHit",marker, function() guiSetVisible (GUIEditor.window[1],true) showCursor(true) end) ------------- addEventHandler("onClientGUIClick",root function() if source == GUIEditor.button[1] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root function() if source == GUIEditor.button[2] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root function() if source == GUIEditor.button[3] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end)
Ja[B]er[X]Pro Posted January 7, 2016 Posted January 7, 2016 local marker = createMarker ( 220.34393310547, 1921.0068359375, 16.640625, "cylinder", 1.2999999523163, 47, 0, 255 ) GUIEditor = { button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(341, 214, 357, 248, "لوحة المواتر الخاص بك | Server ProGamer", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFD0101") GUIEditor.button[1] = guiCreateButton(56, 40, 233, 59, "مركبة | vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(55, 110, 235, 54, "دراجة نارية | Motorcycle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(56, 172, 236, 50, "دبابة | Tank", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") ---------------عند لمس الماركر يفتح اللوحة addEventHandler("onMarkerHit",marker, function() guiSetVisible (GUIEditor.window[1],true) showCursor(true) end) ------------- addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[2] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[3] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end)
AmrOMohamed Posted January 7, 2016 Author Posted January 7, 2016 اصلا في مشكلة مود فتح بس اول مشغله لوحة بتظهر في وشي من غير ماروح للماركر واول ماضغط علي زر الاول ينزل دبابة في مكان معين ولو فضلت اضغط عليه ممكن ينزل اكتر من الف دبابة ودا انا مش عايزه مفروض لما يلمس ماركر بس تفتح لوحة وتختفي لما يبعد عن ماركر او يختار سيارة
Ja[B]er[X]Pro Posted January 7, 2016 Posted January 7, 2016 اصلا في مشكلة مود فتح بس اول مشغله لوحة بتظهر في وشي من غير ماروح للماركر واول ماضغط علي زر الاول ينزل دبابة في مكان معين ولو فضلت اضغط عليه ممكن ينزل اكتر من الف دبابة ودا انا مش عايزهمفروض لما يلمس ماركر بس تفتح لوحة وتختفي لما يبعد عن ماركر او يختار سيارة دا حل مشكلة اللوحة بوجهك اما الالف دبابة ما اعرف كيف بعدني مبتدأ متلك local marker = createMarker ( 220.34393310547, 1921.0068359375, 16.640625, "cylinder", 1.2999999523163, 47, 0, 255 ) GUIEditor = { button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(341, 214, 357, 248, "لوحة المواتر الخاص بك | Server ProGamer", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFD0101") guiSetVisible (GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(56, 40, 233, 59, "مركبة | vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(55, 110, 235, 54, "دراجة نارية | Motorcycle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(56, 172, 236, 50, "دبابة | Tank", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") ---------------عند لمس الماركر يفتح اللوحة addEventHandler("onMarkerHit",marker, function() guiSetVisible (GUIEditor.window[1],true) showCursor(true) end) ------------- addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[2] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[3] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end)
AmrOMohamed Posted January 7, 2016 Author Posted January 7, 2016 مانفع ايضا يظهر ماركر فقط ولايظهر لوحة اذا لمست ماركر
AmrOMohamed Posted January 7, 2016 Author Posted January 7, 2016 طيب شيل لوحة بس خليها لما المس الماركر يعطيني موتر اللي احدده عشان بجرب شيئ
AmrOMohamed Posted January 7, 2016 Author Posted January 7, 2016 اصلا في مشكلة مود فتح بس اول مشغله لوحة بتظهر في وشي من غير ماروح للماركر واول ماضغط علي زر الاول ينزل دبابة في مكان معين ولو فضلت اضغط عليه ممكن ينزل اكتر من الف دبابة ودا انا مش عايزهمفروض لما يلمس ماركر بس تفتح لوحة وتختفي لما يبعد عن ماركر او يختار سيارة دا حل مشكلة اللوحة بوجهك اما الالف دبابة ما اعرف كيف بعدني مبتدأ متلك local marker = createMarker ( 220.34393310547, 1921.0068359375, 16.640625, "cylinder", 1.2999999523163, 47, 0, 255 ) GUIEditor = { button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(341, 214, 357, 248, "لوحة المواتر الخاص بك | Server ProGamer", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFD0101") guiSetVisible (GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(56, 40, 233, 59, "مركبة | vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(55, 110, 235, 54, "دراجة نارية | Motorcycle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(56, 172, 236, 50, "دبابة | Tank", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") ---------------عند لمس الماركر يفتح اللوحة addEventHandler("onMarkerHit",marker, function() guiSetVisible (GUIEditor.window[1],true) showCursor(true) end) ------------- addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[2] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[3] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) اخي تكلم معي باحترام مش عيب اني اتعلم يعني ايه مبتدا ممثلك انا اتعلم + مابخرف انا يعني اسجلك فيديو انا لدي خبرة بسيطة مش غبي يعني + انت كل اللي عملته بدل ماكتب امر في اف8 عشان ينزل موتر بقت من زر .. كمان كل ماضغط علي زر بينزلك دبابة يعني لو فضلت اضغط علي زر لبكرة يفضل ينزلك دبابات انا اريد واحد خبير بالامور ذي لاهنتم لاني بتعلم وببني اشياء وباخذ اساس .. طلبي كان شيئ بسيط
Ja[B]er[X]Pro Posted January 7, 2016 Posted January 7, 2016 local marker = createMarker ( 220.34393310547, 1921.0068359375, 16.640625, "cylinder", 1.2999999523163, 47, 0, 255 ) GUIEditor = { button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(341, 214, 357, 248, "لوحة المواتر الخاص بك | Server ProGamer", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFD0101") guiSetVisible (GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(56, 40, 233, 59, "مركبة | vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(55, 110, 235, 54, "دراجة نارية | Motorcycle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(56, 172, 236, 50, "دبابة | Tank", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") ---------------عند لمس الماركر يفتح اللوحة addEventHandler("onMarkerHit",marker, function() guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(true) end) ------------- addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[2] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[3] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) جربه
Ja[B]er[X]Pro Posted January 7, 2016 Posted January 7, 2016 انا بعدني اتعلم ما اعرف كتير دا لما تلمس الماركر يعطيك سيارة addEventHandler("onMarkerHit",marker, function() createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end)
Mr.R Posted January 7, 2016 Posted January 7, 2016 local marker = createMarker ( 220.34393310547, 1921.0068359375, 16.640625, "cylinder", 1.2999999523163, 47, 0, 255 ) GUIEditor = { button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(341, 214, 357, 248, "لوحة المواتر الخاص بك | Server ProGamer", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFD0101") GUIEditor.button[1] = guiCreateButton(56, 40, 233, 59, "مركبة | vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(55, 110, 235, 54, "دراجة نارية | Motorcycle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(56, 172, 236, 50, "دبابة | Tank", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") ---------------عند لمس الماركر يفتح اللوحة addEventHandler("onMarkerHit",marker function () guiSetVisible (GUIEditor.window[1],true) showCursor(true) end) ------------- addEventHandler("onClientGUIClick",root function() if source == GUIEditor.button[1] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root function() if source == GUIEditor.button[2] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root function() if source == GUIEditor.button[3] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) +شوف الرابط الي ارسلته فوق كيف تحط الاكواد جرب دا X انت تعطيه السياره في كلنت يعني محد يشوفها الا هو سيارهه وهميه عموماً هذا الكود من جانب كلينت local Marker = createMarker ( 220.34393310547, 1921.0068359375, 16.640625, "cylinder", 1, 47, 0, 255 ) GUIEditor = { button = {}, window = {}, } Window = guiCreateWindow ( 341, 214, 357, 248, "لوحة المواتر الخاص بك | Server ProGamer", false ) guiWindowSetSizable ( Window, false ) guiSetVisible ( Window, false ) Button1 = guiCreateButton ( 56, 40, 233, 59, "مركبة | Vehicle", false, Window ) Button2 = guiCreateButton ( 55, 110, 235, 54, "دراجة نارية | Motorcycle", false, Window ) Button3 = guiCreateButton ( 56, 172, 236, 50, "دبابة | Tank", false, Window ) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( player ) if getElementType ( player ) and ( source == Marker ) then guiSetVisible ( Window, true ) showCursor ( true ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function( ) if ( source == Button1 ) then triggerServerEvent ( "Car1", localPlayer ) elseif ( source == Button2 ) then triggerServerEvent ( "Car2", localPlayer ) elseif ( source == Button3 ) then triggerServerEvent ( "Car3", localPlayer ) end end ) addEvent ( "CloseWindow", true ) addEventHandler ( "CloseWindow", root, function ( ) guiSetVisible ( Window, false ) showCursor ( false ) end ) وهذا الكود من جانب سيرفر local Vehicle = { } addEvent ( "Car1", true ) addEventHandler ( "Car1", root, function ( ) if ( Vehicle[source] ) and isElement ( Vehicle[source] ) then destroyElement ( Vehicle[source] ) end local x, y, z = getElementPosition ( source ) Vehicle[source] = createVehicle ( هنا تحط ايدي السياره الاولى الي تبيها, x, y, z ) warpPedIntoVehicle ( source, Vehicle[source] ) outputChatBox ( "* تم اعطاؤك مركبة", source, 255, 255, 255, true ) if ( isPedInVehicle ( source ) ) then triggerClientEvent ( source, "CloseWindow", source ) end end ) addEvent ( "Car2", true ) addEventHandler ( "Car2", root, function ( ) if ( Vehicle[source] ) and isElement ( Vehicle[source] ) then destroyElement ( Vehicle[source] ) end local x, y, z = getElementPosition ( source ) Vehicle[source] = createVehicle ( هنا تحط ايدي السياره الاولى الي تبيها, x, y, z ) warpPedIntoVehicle ( source, Vehicle[source] ) outputChatBox ( "* تم اعطاؤك دراجة نارية", source, 255, 255, 255, true ) if ( isPedInVehicle ( source ) ) then triggerClientEvent ( source, "CloseWindow", source ) end end ) addEvent ( "Car3", true ) addEventHandler ( "Car3", root, function ( ) if ( Vehicle[source] ) and isElement ( Vehicle[source] ) then destroyElement ( Vehicle[source] ) end local x, y, z = getElementPosition ( source ) Vehicle[source] = createVehicle ( هنا تحط ايدي السياره الاولى الي تبيها, x, y, z ) warpPedIntoVehicle ( source, Vehicle[source] ) outputChatBox ( "* تم اعطاؤك دبابة", source, 255, 255, 255, true ) if ( isPedInVehicle ( source ) ) then triggerClientEvent ( source, "CloseWindow", source ) end end ) addEventHandler ( "onPlayerQuit", resourceRoot, function ( ) if ( Vehicle[source] ) and isElement ( Vehicle[source] ) then destroyElement ( Vehicle[source] ) Vehicle[source] = nil end end ) ملاحظه : ماني متاكد من ملف سيرفر
Abdul KariM Posted January 7, 2016 Posted January 7, 2016 local marker = createMarker ( 220.34393310547, 1921.0068359375, 16.640625, "cylinder", 1.2999999523163, 47, 0, 255 ) GUIEditor = { button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(341, 214, 357, 248, "لوحة المواتر الخاص بك | Server ProGamer", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFD0101") GUIEditor.button[1] = guiCreateButton(56, 40, 233, 59, "مركبة | vehicle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(55, 110, 235, 54, "دراجة نارية | Motorcycle", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(56, 172, 236, 50, "دبابة | Tank", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") ---------------عند لمس الماركر يفتح اللوحة addEventHandler("onMarkerHit",marker function () guiSetVisible (GUIEditor.window[1],true) showCursor(true) end) ------------- addEventHandler("onClientGUIClick",root function() if source == GUIEditor.button[1] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root function() if source == GUIEditor.button[2] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) addEventHandler("onClientGUIClick",root function() if source == GUIEditor.button[3] then createVehicle ( 432, 216.10852050781, 1915.7214355469, 17.640625 + 10 ) outputChatBox ( "#ff0000*[ Cars System ] #999999لقد حصلت علي سيارة بنجاح!", luckyBugger ) end end) +شوف الرابط الي ارسلته فوق كيف تحط الاكواد جرب دا X انت تعطيه السياره في كلنت يعني محد يشوفها الا هو سيارهه وهميه عموماً هذا الكود من جانب كلينت local Marker = createMarker ( 220.34393310547, 1921.0068359375, 16.640625, "cylinder", 1, 47, 0, 255 ) GUIEditor = { button = {}, window = {}, } Window = guiCreateWindow ( 341, 214, 357, 248, "لوحة المواتر الخاص بك | Server ProGamer", false ) guiWindowSetSizable ( Window, false ) guiSetVisible ( Window, false ) Button1 = guiCreateButton ( 56, 40, 233, 59, "مركبة | Vehicle", false, Window ) Button2 = guiCreateButton ( 55, 110, 235, 54, "دراجة نارية | Motorcycle", false, Window ) Button3 = guiCreateButton ( 56, 172, 236, 50, "دبابة | Tank", false, Window ) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( player ) if getElementType ( player ) and ( source == Marker ) then guiSetVisible ( Window, true ) showCursor ( true ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function( ) if ( source == Button1 ) then triggerServerEvent ( "Car1", localPlayer ) elseif ( source == Button2 ) then triggerServerEvent ( "Car2", localPlayer ) elseif ( source == Button3 ) then triggerServerEvent ( "Car3", localPlayer ) end end ) addEvent ( "CloseWindow", true ) addEventHandler ( "CloseWindow", root, function ( ) guiSetVisible ( Window, false ) showCursor ( false ) end ) وهذا الكود من جانب سيرفر local Vehicle = { } addEvent ( "Car1", true ) addEventHandler ( "Car1", root, function ( ) if ( Vehicle[source] ) and isElement ( Vehicle[source] ) then destroyElement ( Vehicle[source] ) end local x, y, z = getElementPosition ( source ) Vehicle[source] = createVehicle ( هنا تحط ايدي السياره الاولى الي تبيها, x, y, z ) warpPedIntoVehicle ( source, Vehicle[source] ) outputChatBox ( "* تم اعطاؤك مركبة", source, 255, 255, 255, true ) if ( isPedInVehicle ( source ) ) then triggerClientEvent ( source, "CloseWindow", source ) end end ) addEvent ( "Car2", true ) addEventHandler ( "Car2", root, function ( ) if ( Vehicle[source] ) and isElement ( Vehicle[source] ) then destroyElement ( Vehicle[source] ) end local x, y, z = getElementPosition ( source ) Vehicle[source] = createVehicle ( هنا تحط ايدي السياره الاولى الي تبيها, x, y, z ) warpPedIntoVehicle ( source, Vehicle[source] ) outputChatBox ( "* تم اعطاؤك دراجة نارية", source, 255, 255, 255, true ) if ( isPedInVehicle ( source ) ) then triggerClientEvent ( source, "CloseWindow", source ) end end ) addEvent ( "Car3", true ) addEventHandler ( "Car3", root, function ( ) if ( Vehicle[source] ) and isElement ( Vehicle[source] ) then destroyElement ( Vehicle[source] ) end local x, y, z = getElementPosition ( source ) Vehicle[source] = createVehicle ( هنا تحط ايدي السياره الاولى الي تبيها, x, y, z ) warpPedIntoVehicle ( source, Vehicle[source] ) outputChatBox ( "* تم اعطاؤك دبابة", source, 255, 255, 255, true ) if ( isPedInVehicle ( source ) ) then triggerClientEvent ( source, "CloseWindow", source ) end end ) addEventHandler ( "onPlayerQuit", resourceRoot, function ( ) if ( Vehicle[source] ) and isElement ( Vehicle[source] ) then destroyElement ( Vehicle[source] ) Vehicle[source] = nil end end ) ملاحظه : ماني متاكد من ملف سيرفر اكوادك صحيحة بس لو نختصرها بترايقر واحد ومع ايديات مختلفة يكون افضل كلينت local Marker = createMarker ( 2045.46753, 1535.68384 ,10.67188, "cylinder", 1, 47, 0, 255 ) GUIEditor = { button = {}, window = {}, } Window = guiCreateWindow ( 341, 214, 357, 248, "لوحة المواتر الخاص بك | Server ProGamer", false ) guiWindowSetSizable ( Window, false ) guiSetVisible ( Window, false ) Button1 = guiCreateButton ( 56, 40, 233, 59, "مركبة | Vehicle", false, Window ) Button2 = guiCreateButton ( 55, 110, 235, 54, "دراجة نارية | Motorcycle", false, Window ) Button3 = guiCreateButton ( 56, 172, 236, 50, "دبابة | Tank", false, Window ) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( player ) if getElementType ( player ) and ( source == Marker ) then guiSetVisible ( Window, true ) showCursor ( true ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function( ) if ( source == Button1 ) then id = 500 -- حط الايدي الي تبيه triggerServerEvent ( "Car", localPlayer , id ) elseif ( source == Button2 ) then id = 569 -- حط الايدي الي تبيه triggerServerEvent ( "Car", localPlayer , id ) elseif ( source == Button3 ) then id = 547 -- حط الايدي الي تبيه triggerServerEvent ( "Car", localPlayer , id ) end end ) addEvent ( "CloseWindow", true ) addEventHandler ( "CloseWindow", root, function ( ) guiSetVisible ( Window, false ) showCursor ( false ) end ) سيرفر local Vehicle = { } addEvent ( "Car", true ) addEventHandler ( "Car", root, function ( id ) if ( Vehicle[source] ) and isElement ( Vehicle[source] ) then destroyElement ( Vehicle[source] ) end local x, y, z = getElementPosition ( source ) Vehicle[source] = createVehicle ( id, x, y, z ) warpPedIntoVehicle ( source, Vehicle[source] ) outputChatBox ( "* تم اعطاؤك مركبة", source, 255, 255, 255, true ) if ( isPedInVehicle ( source ) ) then triggerClientEvent ( source, "CloseWindow", source ) end end ) addEventHandler ( "onPlayerQuit", resourceRoot, function ( ) if ( Vehicle[source] ) and isElement ( Vehicle[source] ) then destroyElement ( Vehicle[source] ) Vehicle[source] = nil end end )
Mr.R Posted January 7, 2016 Posted January 7, 2016 مشكور , ماقصرت عرفت الطريقه الحين + مو معرفه id عندك خطا
Abdul KariM Posted January 7, 2016 Posted January 7, 2016 مشكور , ماقصرت عرفت الطريقه الحين+ مو معرفه id عندك خطا العفو , الله يهديك شوف زين ض1
Mr.R Posted January 7, 2016 Posted January 7, 2016 مشكور , ماقصرت عرفت الطريقه الحين+ مو معرفه id عندك خطا العفو , الله يهديك شوف زين ض1 صحيح معرفه بارقام وهذي قيمه , انا قصدي getVehicleID لاني جربت تعديلك وماضبط
Abdul KariM Posted January 7, 2016 Posted January 7, 2016 ^ لا مالها شغل كودي مجربه وشغال ومافيه اي خطأ تأكد انك متأكد من الميتا وانواع الملفات لاني حاطها مع الترايقر فهمت علي
Mr.R Posted January 7, 2016 Posted January 7, 2016 ^لا مالها شغل كودي مجربه وشغال ومافيه اي خطأ تأكد انك متأكد من الميتا وانواع الملفات لاني حاطها مع الترايقر فهمت علي معليش الغلط من الميتا عندي وعموماً هذي اكوادك كامله ياصاحب الموضوع الي عليك بس تغير الايديات سطر 22 , 25 , 28 للسيارات الي تبيها #Client Side local Marker = createMarker ( 2045.46753, 1535.68384 ,10.67188, "cylinder", 1, 47, 0, 255 ) GUIEditor = { button = {}, window = {}, } Window = guiCreateWindow ( 341, 214, 357, 248, "لوحة المواتر الخاصه بك | Server ProGamer", false ) guiWindowSetSizable ( Window, false ) guiSetVisible ( Window, false ) Button1 = guiCreateButton ( 56, 40, 233, 59, "مركبة | Vehicle", false, Window ) Button2 = guiCreateButton ( 55, 110, 235, 54, "دراجة نارية | Motorcycle", false, Window ) Button3 = guiCreateButton ( 56, 172, 236, 50, "دبابة | Tank", false, Window ) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( player ) if getElementType ( player ) and ( source == Marker ) then guiSetVisible ( Window, true ) showCursor ( true ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Button1 ) then iD = 500 -- حط الايدي الي تبيه هنا triggerServerEvent ( "Car", localPlayer , iD ) elseif ( source == Button2 ) then iD = 569 -- حط الايدي الي تبيه هنا triggerServerEvent ( "Car", localPlayer , iD ) elseif ( source == Button3 ) then iD = 547 -- حط الايدي الي تبيه هنا triggerServerEvent ( "Car", localPlayer , iD ) end end ) addEvent ( "CloseWindow", true ) addEventHandler ( "CloseWindow", root, function ( ) guiSetVisible ( Window, false ) showCursor ( false ) end ) #Server Side local Vehicle = { } addEvent ( "Car", true ) addEventHandler ( "Car", root, function ( iD ) if ( Vehicle[source] ) and isElement ( Vehicle[source] ) then destroyElement ( Vehicle[source] ) end local x, y, z = getElementPosition ( source ) Vehicle[source] = createVehicle ( iD, x, y, z ) warpPedIntoVehicle ( source, Vehicle[source] ) outputChatBox ( "* تم اعطاؤك مركبة", source, 255, 255, 255, true ) if ( isPedInVehicle ( source ) ) then triggerClientEvent ( source, "CloseWindow", source ) end end ) addEventHandler ( "onPlayerQuit", root, function ( ) if ( isElement ( Vehicle[source] ) ) then destroyElement ( Vehicle[source] ) Vehicle[source] = nil end end ) addEventHandler ( "onVehicleExplode", resourceRoot, function ( ) destroyElement ( source ) end ) ...وللمعلوميه هنا تلقى جميع ايديات السيارات او القطارات او الطيارات إلخ https://wiki.multitheftauto.com/wiki/Vehicle_IDs وحبيت اضيف على الاكواد هذا الحدث addEventHandler ( "onVehicleExplode", resourceRoot, function ( ) destroyElement ( source ) end ) عشان اي سياره تنفجر ( ماخذها من الماركر ) يعني صانعها المود نفسه .. تختفي
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