aL.Kfo Posted September 14, 2013 Share Posted September 14, 2013 السلام عليكم ورحمة الله ي اخوان عندي مود السيارات تبع برستيج لا ضغطت اف 2 مدري 3 تختار السيارات الاي تبيها انا م ابيها من اف 3 ابيها في ماركرات لا خشيت تطلع لك الوحه هذا هو المود https://community.multitheftauto.com/ind ... ls&id=6621 الاي عنده كود جاهز يطرحه الاي بينزل فنكشات مدري ششسمها عادي بس ينزل توضيح بسيط Link to comment
AHMAD1234 Posted September 15, 2013 Share Posted September 15, 2013 تفضل عدل عليه مع إسكربت فهد -- server side -- function markerHit (hitPlayer, _) if isPedInVehicle ( hitPlayer ) then return end if getElementType(hitPlayer) == "player" then if source == اسم الماركر then triggerClientEvent ("openMean", hitPlayer) end end end addEventHandler ("onMarkerHit", getRootElement(), markerHit) -- client side -- addEvent ("openMean", true) function openMean () if (getLocalPlayer() == source) then guiSetVisible(اسم النافذة,true) showCursor(true) end end addEventHandler ("openMean", getRootElement(), openMean) Link to comment
aL.Kfo Posted September 15, 2013 Author Share Posted September 15, 2013 اسم الماركر وش احطه و اسم النافذه وش احطه ووين احط الاكواد و سوال ثاني عندي مود عجبني حصلته ب الاقسم الاجنبي تنزل سياره من ماركر و توصلها و الخ المهم الماركر ذا المشكله الاعب يقدر يتزل 5 سيارات او والاء اخره كيف اخليها ما يقدر ينزل الا سياره لا نزل ثاني تختفى الاول Link to comment
AHMAD1234 Posted September 15, 2013 Share Posted September 15, 2013 اسم الماركر وش احطه و اسم النافذه وش احطه أفتح أسكربت فهد وعدل حط ماركر وحط اسم النافذة ووين احط الاكواد clientو جانب الـ serverفي جانب الـ و سوال ثانيعندي مود عجبني حصلته ب الاقسم الاجنبي تنزل سياره من ماركر و توصلها و الخ المهم الماركر ذا المشكله الاعب يقدر يتزل 5 سيارات او والاء اخره كيف اخليها ما يقدر ينزل الا سياره لا نزل ثاني تختفى الاول اطرح المود اللي عجبك Link to comment
Stranger Posted September 15, 2013 Share Posted September 15, 2013 كيف اخليها ما يقدر ينزل الا سياره لا نزل ثاني تختفى الاول استخدم isElement destroyElement Link to comment
aL.Kfo Posted September 15, 2013 Author Share Posted September 15, 2013 بجرب الطريقه الان و السوال الثاني هذا المود https://community.multitheftauto.com/ind ... ls&id=6065 Link to comment
AHMAD1234 Posted September 15, 2013 Share Posted September 15, 2013 بجرب الطريقه الان و السوال الثاني هذا المود https://community.multitheftauto.com/ind ... ls&id=6065 اطرح الكود مو الرابط Link to comment
aL.Kfo Posted September 15, 2013 Author Share Posted September 15, 2013 تفضل عدل عليه مع إسكربت فهد -- server side -- function markerHit (hitPlayer, _) if isPedInVehicle ( hitPlayer ) then return end if getElementType(hitPlayer) == "player" then if source == اسم الماركر then triggerClientEvent ("openMean", hitPlayer) end end end addEventHandler ("onMarkerHit", getRootElement(), markerHit) -- client side -- addEvent ("openMean", true) function openMean () if (getLocalPlayer() == source) then guiSetVisible(اسم النافذة,true) showCursor(true) end end addEventHandler ("openMean", getRootElement(), openMean) اخوي اجمع الكودين ذولا مع بعض في مستند واحد ولا اسوي مستندين سكربت.lua سيرفر.lua Link to comment
AHMAD1234 Posted September 15, 2013 Share Posted September 15, 2013 تفضل عدل عليه مع إسكربت فهد -- server side -- function markerHit (hitPlayer, _) if isPedInVehicle ( hitPlayer ) then return end if getElementType(hitPlayer) == "player" then if source == اسم الماركر then triggerClientEvent ("openMean", hitPlayer) end end end addEventHandler ("onMarkerHit", getRootElement(), markerHit) -- client side -- addEvent ("openMean", true) function openMean () if (getLocalPlayer() == source) then guiSetVisible(اسم النافذة,true) showCursor(true) end end addEventHandler ("openMean", getRootElement(), openMean) اخوي اجمع الكودين ذولا مع بعض في مستند واحد ولا اسوي مستندين سكربت.lua سيرفر.lua ما يحتاج عدل بس على اسكربت فهد Link to comment
aL.Kfo Posted September 15, 2013 Author Share Posted September 15, 2013 client.lua GUIEditor_Label = {} transWindow = guiCreateWindow(182,134,482,342,"Drug Transport Window",false) guiSetVisible(transWindow, false) destiLabel = guiCreateLabel(19,33,450,55,"Choose your destination",false,transWindow) lsButtonRadio = guiCreateRadioButton(21,104,437,19,"Los Santos, +2 Wanted Stars and 3000 if you made it",false,transWindow) lvButtonRadio = guiCreateRadioButton(20,149,437,19,"Las Venturas, +4 Wanted Stars and 6000 if you made it",false,transWindow) sfButtonRadio = guiCreateRadioButton(20,193,437,19,"San Fierro, +6 Wanted Stars and 10000 if you made it",false,transWindow) acceptButton = guiCreateButton(103,267,113,37,"Accept",false,transWindow) closeButton = guiCreateButton(241,266,108,37,"Close",false,transWindow) local jobmarker = createMarker ( 2448.68, -1976.63, 12.54, "cylinder", 2, 255, 0, 0, 255 ) createBlipAttachedTo (jobmarker, 40) function MarkerHit ( hitPlayer, matchingDimension ) guiSetVisible(transWindow, true) showCursor(true) end addEventHandler ( "onClientMarkerHit", jobmarker, MarkerHit ) function closeChangeJobWindow() if (source == closeButton) then guiSetVisible(transWindow, false) showCursor(false) end end addEventHandler("onClientGUIClick", getResourceRootElement(getThisResource()), closeChangeJobWindow) function lsjobcli() if (source == acceptButton) then if (guiRadioButtonGetSelected(lsButtonRadio)) then triggerServerEvent ("givePlayerJobLS",getLocalPlayer()) guiSetVisible(transWindow, false) showCursor(false) end end end addEventHandler("onClientGUIClick", acceptButton, lsjobcli, false ) function lvjobcli() if (source == acceptButton) then if (guiRadioButtonGetSelected(lvButtonRadio)) then triggerServerEvent ("givePlayerJobLV",getLocalPlayer()) guiSetVisible(transWindow, false) showCursor(false) end end end addEventHandler("onClientGUIClick", acceptButton, lvjobcli, false ) function sfjobcli() if (source == acceptButton) then if (guiRadioButtonGetSelected(sfButtonRadio)) then triggerServerEvent ("givePlayerJobSF",getLocalPlayer()) guiSetVisible(transWindow, false) showCursor(false) end end end addEventHandler("onClientGUIClick", acceptButton, sfjobcli, false ) سيرفر function lsjobser () car = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, car) markerLS = createMarker (1784.78, -1702.06, 12.50, "cylinder", 2, 255, 0, 0, 255) blipLS = createBlipAttachedTo (markerLS, 40) end addEvent ("givePlayerJobLS", true) addEventHandler ("givePlayerJobLS", root, lsjobser) function moneyLS (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 3000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+2) destroyElement(markerLS) destroyElement(blipLS) destroyElement(car) end end addEventHandler( "onMarkerHit", root, moneyLS ) function lvjobser () carlv = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, carlv) markerLV = createMarker (1074.43, 1292.71, 9.82, "cylinder", 2, 255, 0, 0, 255) blipLV = createBlipAttachedTo (markerLV, 40) end addEvent ("givePlayerJobLV", true) addEventHandler ("givePlayerJobLV", root, lvjobser) function moneyLV (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 6000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+4) destroyElement(markerLV) destroyElement(blipLV) destroyElement(carlv) end end addEventHandler( "onMarkerHit", root, moneyLV ) function sfjobser () carSF = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, carSF) markerSF = createMarker (-2052.80, 144.87, 27.83, "cylinder", 2, 255, 0, 0, 255) blipSF = createBlipAttachedTo (markerSF, 40) end addEvent ("givePlayerJobSF", true) addEventHandler ("givePlayerJobSF", root, sfjobser) function moneySF (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 10000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+6) destroyElement(markerSF) destroyElement(blipSF) destroyElement(carSF) end end addEventHandler( "onMarkerHit", root, moneySF ) Link to comment
Stranger Posted September 15, 2013 Share Posted September 15, 2013 client.lua GUIEditor_Label = {} transWindow = guiCreateWindow(182,134,482,342,"Drug Transport Window",false) guiSetVisible(transWindow, false) destiLabel = guiCreateLabel(19,33,450,55,"Choose your destination",false,transWindow) lsButtonRadio = guiCreateRadioButton(21,104,437,19,"Los Santos, +2 Wanted Stars and 3000 if you made it",false,transWindow) lvButtonRadio = guiCreateRadioButton(20,149,437,19,"Las Venturas, +4 Wanted Stars and 6000 if you made it",false,transWindow) sfButtonRadio = guiCreateRadioButton(20,193,437,19,"San Fierro, +6 Wanted Stars and 10000 if you made it",false,transWindow) acceptButton = guiCreateButton(103,267,113,37,"Accept",false,transWindow) closeButton = guiCreateButton(241,266,108,37,"Close",false,transWindow) local jobmarker = createMarker ( 2448.68, -1976.63, 12.54, "cylinder", 2, 255, 0, 0, 255 ) createBlipAttachedTo (jobmarker, 40) function MarkerHit ( hitPlayer, matchingDimension ) guiSetVisible(transWindow, true) showCursor(true) end addEventHandler ( "onClientMarkerHit", jobmarker, MarkerHit ) function closeChangeJobWindow() if (source == closeButton) then guiSetVisible(transWindow, false) showCursor(false) end end addEventHandler("onClientGUIClick", getResourceRootElement(getThisResource()), closeChangeJobWindow) function lsjobcli() if (source == acceptButton) then if (guiRadioButtonGetSelected(lsButtonRadio)) then triggerServerEvent ("givePlayerJobLS",getLocalPlayer()) guiSetVisible(transWindow, false) showCursor(false) end end end addEventHandler("onClientGUIClick", acceptButton, lsjobcli, false ) function lvjobcli() if (source == acceptButton) then if (guiRadioButtonGetSelected(lvButtonRadio)) then triggerServerEvent ("givePlayerJobLV",getLocalPlayer()) guiSetVisible(transWindow, false) showCursor(false) end end end addEventHandler("onClientGUIClick", acceptButton, lvjobcli, false ) function sfjobcli() if (source == acceptButton) then if (guiRadioButtonGetSelected(sfButtonRadio)) then triggerServerEvent ("givePlayerJobSF",getLocalPlayer()) guiSetVisible(transWindow, false) showCursor(false) end end end addEventHandler("onClientGUIClick", acceptButton, sfjobcli, false ) سيرفر function lsjobser () car = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, car) markerLS = createMarker (1784.78, -1702.06, 12.50, "cylinder", 2, 255, 0, 0, 255) blipLS = createBlipAttachedTo (markerLS, 40) end addEvent ("givePlayerJobLS", true) addEventHandler ("givePlayerJobLS", root, lsjobser) function moneyLS (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 3000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+2) destroyElement(markerLS) destroyElement(blipLS) destroyElement(car) end end addEventHandler( "onMarkerHit", root, moneyLS ) function lvjobser () carlv = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, carlv) markerLV = createMarker (1074.43, 1292.71, 9.82, "cylinder", 2, 255, 0, 0, 255) blipLV = createBlipAttachedTo (markerLV, 40) end addEvent ("givePlayerJobLV", true) addEventHandler ("givePlayerJobLV", root, lvjobser) function moneyLV (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 6000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+4) destroyElement(markerLV) destroyElement(blipLV) destroyElement(carlv) end end addEventHandler( "onMarkerHit", root, moneyLV ) function sfjobser () carSF = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, carSF) markerSF = createMarker (-2052.80, 144.87, 27.83, "cylinder", 2, 255, 0, 0, 255) blipSF = createBlipAttachedTo (markerSF, 40) end addEvent ("givePlayerJobSF", true) addEventHandler ("givePlayerJobSF", root, sfjobser) function moneySF (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 10000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+6) destroyElement(markerSF) destroyElement(blipSF) destroyElement(carSF) end end addEventHandler( "onMarkerHit", root, moneySF ) الحين وش ذا !! وش نفهم منه يعني Link to comment
AHMAD1234 Posted September 15, 2013 Share Posted September 15, 2013 الحين وش ذا !! وش نفهم منه يعني +1 Link to comment
aL.Kfo Posted September 15, 2013 Author Share Posted September 15, 2013 قصدكم الكود غلط ولا وش Link to comment
AHMAD1234 Posted September 15, 2013 Share Posted September 15, 2013 (edited) جرب..؟ veh = { } function lsjobser () if veh[source] and isElement( veh[source] ) then destroyElement( veh[source] ) veh[source] = nil end veh[source] = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, veh[source]) markerLS = createMarker (1784.78, -1702.06, 12.50, "cylinder", 2, 255, 0, 0, 255) blipLS = createBlipAttachedTo (markerLS, 40) end addEvent ("givePlayerJobLS", true) addEventHandler ("givePlayerJobLS", root, lsjobser) function moneyLS (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 3000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+2) destroyElement(markerLS) destroyElement(blipLS) destroyElement(veh[source]) end end addEventHandler( "onMarkerHit", root, moneyLS ) function lvjobser () if veh[source] and isElement( veh[source] ) then destroyElement( veh[source] ) veh[source] = nil end veh[source] = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, veh[source]) markerLV = createMarker (1074.43, 1292.71, 9.82, "cylinder", 2, 255, 0, 0, 255) blipLV = createBlipAttachedTo (markerLV, 40) end addEvent ("givePlayerJobLV", true) addEventHandler ("givePlayerJobLV", root, lvjobser) function moneyLV (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 6000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+4) destroyElement(markerLV) destroyElement(blipLV) destroyElement(veh[source]) end end addEventHandler( "onMarkerHit", root, moneyLV ) function sfjobser () if veh[source] and isElement( veh[source] ) then destroyElement( veh[source] ) veh[source] = nil end veh[source] = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, veh[source]) markerSF = createMarker (-2052.80, 144.87, 27.83, "cylinder", 2, 255, 0, 0, 255) blipSF = createBlipAttachedTo (markerSF, 40) end addEvent ("givePlayerJobSF", true) addEventHandler ("givePlayerJobSF", root, sfjobser) function moneySF (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 10000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+6) destroyElement(markerSF) destroyElement(blipSF) destroyElement(veh[source]) end end addEventHandler( "onMarkerHit", root, moneySF ) update #2 Edited September 15, 2013 by Guest Link to comment
aL.Kfo Posted September 15, 2013 Author Share Posted September 15, 2013 جرب..؟ veh = { } function lsjobser () if veh[source] and isElement( veh[source] ) then destroyElement( veh[source] ) veh[source] = nil end veh[source] = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, veh[source]) markerLS = createMarker (1784.78, -1702.06, 12.50, "cylinder", 2, 255, 0, 0, 255) blipLS = createBlipAttachedTo (markerLS, 40) end addEvent ("givePlayerJobLS", true) addEventHandler ("givePlayerJobLS", root, lsjobser) function moneyLS (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 3000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+2) destroyElement(markerLS) destroyElement(blipLS) destroyElement(veh[source]) end end addEventHandler( "onMarkerHit", root, moneyLS ) function lvjobser () if veh[source] and isElement( veh[source] ) then destroyElement( veh[source] ) veh[source] = nil end veh[source] = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, veh[source]) markerLV = createMarker (1074.43, 1292.71, 9.82, "cylinder", 2, 255, 0, 0, 255) blipLV = createBlipAttachedTo (markerLV, 40) end addEvent ("givePlayerJobLV", true) addEventHandler ("givePlayerJobLV", root, lvjobser) function moneyLV (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 6000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+4) destroyElement(markerLV) destroyElement(blipLV) destroyElement(veh[source]) end end addEventHandler( "onMarkerHit", root, moneyLV ) function sfjobser () if veh[source] and isElement( veh[source] ) then destroyElement( veh[source] ) veh[source] = nil end veh[source] = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, veh[source]) markerSF = createMarker (-2052.80, 144.87, 27.83, "cylinder", 2, 255, 0, 0, 255) blipSF = createBlipAttachedTo (markerSF, 40) end addEvent ("givePlayerJobSF", true) addEventHandler ("givePlayerJobSF", root, sfjobser) function moneySF (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 10000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+6) destroyElement(markerSF) destroyElement(blipSF) destroyElement(veh[source]) end end addEventHandler( "onMarkerHit", root, moneySF ) update #2 لا هنت ي بعدهم افدتني كثير وكذالك مانستر بس قبل التعديل كان لا نزل الموتر ينتقل تلقائي للموتر بدون م يرركب الحين لزم يركب هي عادي م تفرق معي كلها واحد بس لو تعديلها بسيط حلو لو يبي لها مشوار م يحتاج بكل الحالتين نفس الشي Link to comment
AHMAD1234 Posted September 15, 2013 Share Posted September 15, 2013 لا هنت ي بعدهم افدتني كثير وكذالك مانستر بس قبل التعديل كان لا نزل الموتر ينتقل تلقائي للموتر بدون م يرركب الحين لزم يركب هي عادي م تفرق معي كلها واحد بس لو تعديلها بسيط حلو لو يبي لها مشوار م يحتاج بكل الحالتين نفس الشي العفو, جرب انسخ الكود مره ثانيه عدلت عليه من قبل Link to comment
aL.Kfo Posted September 15, 2013 Author Share Posted September 15, 2013 ايووة كذا ي وديع ضبطت و لوز الوز م قصرتو والله كفيتو و وفيتو Link to comment
AHMAD1234 Posted September 15, 2013 Share Posted September 15, 2013 ايووة كذا ي وديع ضبطت و لوز الوز م قصرتو والله كفيتو و وفيتو Manster العفو, ولا يهون Link to comment
Stranger Posted September 15, 2013 Share Posted September 15, 2013 ايووة كذا ي وديع ضبطت و لوز الوز م قصرتو والله كفيتو و وفيتو any time :arrow:Manster العفو, ولا يهون Link to comment
aL.Kfo Posted September 15, 2013 Author Share Posted September 15, 2013 ايووة كذا ي وديع ضبطت و لوز الوز م قصرتو والله كفيتو و وفيتو any time :arrow:Manster العفو, ولا يهون اكيدد كلكم فيكم الخير صراحه وانا قلت م قصرتو والله كفيتو و وفيتو ما قلت كفيت ووفيت هههه عشان م يزعل علينا مانستر يغلق 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