AchrefF Posted March 3, 2017 Share Posted March 3, 2017 السلام عليكم انا عوز اعمل سياره توصيل مخدرات تبع تيم الحرامى الى هوا Criminal انا عمل الماركر الى بياخد منه السياره بس مش عارف اعمل ماركر الى بيظهر لما باخد السياره من اول ماركر عشان اوصلو للماركر الى بيظهر عشان ياخد منى السياره ويعطينى فلوس وعوز اعمل علامه لما اخذ السياره واعمل علامه لمكان الماركر الى هوصل فى السياره ومحتاج كود لما واحد ينزلنى من السياره السياره تختفى اسف انى طولت عليكم شباب وشكرا Link to comment
L3yr Posted March 3, 2017 Share Posted March 3, 2017 7 hours ago, AchrefF said: السلام عليكم انا عوز اعمل سياره توصيل مخدرات تبع تيم الحرامى الى هوا Criminal انا عمل الماركر الى بياخد منه السياره بس مش عارف اعمل ماركر الى بيظهر لما باخد السياره من اول ماركر عشان اوصلو للماركر الى بيظهر عشان ياخد منى السياره ويعطينى فلوس وعوز اعمل علامه لما اخذ السياره واعمل علامه لمكان الماركر الى هوصل فى السياره ومحتاج كود لما واحد ينزلنى من السياره السياره تختفى اسف انى طولت عليكم شباب وشكرا انا برضو طلبت السؤال ده ومحدش افادنى Link to comment
mahmod3 Posted March 4, 2017 Share Posted March 4, 2017 On ٣/٣/٢٠١٧ at 22:18, L3yr said: انا برضو طلبت السؤال ده ومحدش افادنى طبعا انت عدل ع الاحداثيات وعدل على الكلام addEventHandler('onResourceStart',root, function () for i,v in ipairs(getElementsByType("player")) do setElementData(v,'statemision',true) end end ) marker = createMarker(1849.48425,-1863.58875,12.57813,"cylinder",2,255,255,255,255) createBlip ( 1849.48425,-1863.58875,12.57813, 42 ) warpPedIntoVehicle(source,car) addEventHandler("onMarkerHit",marker, function(player) if (getElementData(player,'statemision') == true) then setElementData(player,'statemision',false) outputChatBox(" اركب في السيارة خلفك واذهب الى النقطه الحمراء في الخريطه",player,255,255,255) createMission () end end ) function createMission (p) car = createVehicle(419,1838.53516,-1866.01978,13.38975) ped = createPed (10,1838.53516,-1866.01978,13.38975) if car and ped then warpPedIntoVehicle(ped,car,1) winmarker = createMarker(-2263.41553,2307.73926,3.82021,"cylinder",2,255,255,255,255) blib = createBlip ( -2263.41553,2307.73926,3.82021, 0 ) addEventHandler("onMarkerHit",winmarker,wine) end end function wine(p) givePlayerMoney(p,5000) setElementData(p,'statemision',true) outputChatBox("تم التوصيل تم حصولك على 5000",p,255,255,255) distroy() end function distroy() destroyElement(ped) destroyElement(car) destroyElement(winmarker) destroyElement(blib) end Link to comment
AchrefF Posted March 4, 2017 Author Share Posted March 4, 2017 1 hour ago, mahmod3 said: طبعا انت عدل ع الاحداثيات وعدل على الكلام addEventHandler('onResourceStart',root, function () for i,v in ipairs(getElementsByType("player")) do setElementData(v,'statemision',true) end end ) marker = createMarker(1849.48425,-1863.58875,12.57813,"cylinder",2,255,255,255,255) createBlip ( 1849.48425,-1863.58875,12.57813, 42 ) warpPedIntoVehicle(source,car) addEventHandler("onMarkerHit",marker, function(player) if (getElementData(player,'statemision') == true) then setElementData(player,'statemision',false) outputChatBox(" اركب في السيارة خلفك واذهب الى النقطه الحمراء في الخريطه",player,255,255,255) createMission () end end ) function createMission (p) car = createVehicle(419,1838.53516,-1866.01978,13.38975) ped = createPed (10,1838.53516,-1866.01978,13.38975) if car and ped then warpPedIntoVehicle(ped,car,1) winmarker = createMarker(-2263.41553,2307.73926,3.82021,"cylinder",2,255,255,255,255) blib = createBlip ( -2263.41553,2307.73926,3.82021, 0 ) addEventHandler("onMarkerHit",winmarker,wine) end end function wine(p) givePlayerMoney(p,5000) setElementData(p,'statemision',true) outputChatBox("تم التوصيل تم حصولك على 5000",p,255,255,255) distroy() end function distroy() destroyElement(ped) destroyElement(car) destroyElement(winmarker) destroyElement(blib) end شركا جدا اخى Link to comment
AchrefF Posted March 4, 2017 Author Share Posted March 4, 2017 8 minutes ago, mahmod3 said: العفو منور -----الكلنت local Marker1 = createMarker( 1616.44470, -1506.68884, 13.2084 , "cylinder" , 2 , 255 , 0 , 0 , 180 ) createBlip (1616.44470, -1506.68884, 14.2084, 38 ) warpPedIntoVehicle(source,car) GUIEditor = { tab = {}, button = {}, window = {}, memo = {}, label = {}, tabpanel = {}, } GUIEditor.window[1] = guiCreateWindow(391, 352, 500, 240, "Delivery/ /Drugs", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.85) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(39, 38, 116, 38, "Drug transfer 1", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFFFFFF") GUIEditor.button[3] = guiCreateButton(40, 110, 116, 38, "Drug transfer 2", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFFFFFF") GUIEditor.label[1] = guiCreateLabel(174, 44, 294, 29, "Transport drugs to the LV city/for 7,000k", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[3] = guiCreateLabel(175, 113, 294, 29, "Transport drugs to the SF city/for 15,000k", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.button[6] = guiCreateButton(40, 175, 116, 38, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFFFFFF") GUIEditor.tabpanel[2] = guiCreateTabPanel(241, 152, 250, 79, false, GUIEditor.window[1]) GUIEditor.tab[2] = guiCreateTab("explained", GUIEditor.tabpanel[2]) GUIEditor.memo[2] = guiCreateMemo(9, 6, 239, 46, "criminal can take Drugs car to any city for money .....Enjoy", false, GUIEditor.tab[2]) guiMemoSetReadOnly(GUIEditor.memo[2], true) guiSetVisible (GUIEditor.window[1], false) addEventHandler("onClientMarkerHit",Marker1, --عند لمس الماركر المحدد function()--وظيفة if ( getPlayerTeam ( localPlayer ) ~= getTeamFromName ( 'Criminal' ) ) then return end guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة )--نهاية قوس الحدث ---------------------- addEventHandler("onClientGUIClick",root, --عند الضغط على زر function()--وظيفة if source == GUIEditor.button[1] then triggerServerEvent ("takecar",localPlayer) ------------------------------------------------- elseif source == GUIEditor.button[3] then triggerServerEvent ("takecar",localPlayer) ------------------------------------------------- elseif (source == GUIEditor.button[6]) then--ان كان الزر = زر الاغلاق guiSetVisible(GUIEditor.window[1],false)--اغلاق اللوحة showCursor(false)--اخفاء الماوس end--نهاية التحقق end--نهاية الوظيفة )--نهاية قوس الحدث -------------------------------- addEventHandler("onMarkerHit",marker, function(player) if (getElementData(player,'statemision') == true) then setElementData(player,'statemision',false) outputChatBox(" اركب في السيارة خلفك واذهب الى النقطه الحمراء في الخريطه",player,255,255,255) createMission () end end ) --------السرفر function createMission (p) car = createVehicle(419,1838.53516,-1866.01978,13.38975) ped = createPed (10,1838.53516,-1866.01978,13.38975) if car and ped then warpPedIntoVehicle(ped,car,1) winmarker = createMarker(1022.58771, 2375.88818, 10.82031,"cylinder",2,255,255,255,255) blib = createBlip ( 1022.58771, 2375.88818, 10.82031, 51 ) addEventHandler("onMarkerHit",winmarker,wine) end end function wine(p) givePlayerMoney(p,7000) setElementData(p,'statemision',true) outputChatBox("Has the task successfully i've got 7,000k",p,255,0,0) distroy() end function distroy() destroyElement(ped) destroyElement(car) destroyElement(winmarker) destroyElement(blib) end هل هذه صحيح ارجو التصحيح لو فيه اخطاء Link to comment
mahmod3 Posted March 4, 2017 Share Posted March 4, 2017 23 hours ago, AchrefF said: -----الكلنت local Marker1 = createMarker( 1616.44470, -1506.68884, 13.2084 , "cylinder" , 2 , 255 , 0 , 0 , 180 ) createBlip (1616.44470, -1506.68884, 14.2084, 38 ) warpPedIntoVehicle(source,car) GUIEditor = { tab = {}, button = {}, window = {}, memo = {}, label = {}, tabpanel = {}, } GUIEditor.window[1] = guiCreateWindow(391, 352, 500, 240, "Delivery/ /Drugs", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.85) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.button[1] = guiCreateButton(39, 38, 116, 38, "Drug transfer 1", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFFFFFF") GUIEditor.button[3] = guiCreateButton(40, 110, 116, 38, "Drug transfer 2", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFFFFFF") GUIEditor.label[1] = guiCreateLabel(174, 44, 294, 29, "Transport drugs to the LV city/for 7,000k", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[3] = guiCreateLabel(175, 113, 294, 29, "Transport drugs to the SF city/for 15,000k", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.button[6] = guiCreateButton(40, 175, 116, 38, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFFFFFF") GUIEditor.tabpanel[2] = guiCreateTabPanel(241, 152, 250, 79, false, GUIEditor.window[1]) GUIEditor.tab[2] = guiCreateTab("explained", GUIEditor.tabpanel[2]) GUIEditor.memo[2] = guiCreateMemo(9, 6, 239, 46, "criminal can take Drugs car to any city for money .....Enjoy", false, GUIEditor.tab[2]) guiMemoSetReadOnly(GUIEditor.memo[2], true) guiSetVisible (GUIEditor.window[1], false) addEventHandler("onClientMarkerHit",Marker1, --عند لمس الماركر المحدد function()--وظيفة if ( getPlayerTeam ( localPlayer ) ~= getTeamFromName ( 'Criminal' ) ) then return end guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة )--نهاية قوس الحدث ---------------------- addEventHandler("onClientGUIClick",root, --عند الضغط على زر function()--وظيفة if source == GUIEditor.button[1] then triggerServerEvent ("takecar",localPlayer) ------------------------------------------------- elseif source == GUIEditor.button[3] then triggerServerEvent ("takecar",localPlayer) ------------------------------------------------- elseif (source == GUIEditor.button[6]) then--ان كان الزر = زر الاغلاق guiSetVisible(GUIEditor.window[1],false)--اغلاق اللوحة showCursor(false)--اخفاء الماوس end--نهاية التحقق end--نهاية الوظيفة )--نهاية قوس الحدث -------------------------------- addEventHandler("onMarkerHit",marker, function(player) if (getElementData(player,'statemision') == true) then setElementData(player,'statemision',false) outputChatBox(" اركب في السيارة خلفك واذهب الى النقطه الحمراء في الخريطه",player,255,255,255) createMission () end end ) --------السرفر function createMission (p) car = createVehicle(419,1838.53516,-1866.01978,13.38975) ped = createPed (10,1838.53516,-1866.01978,13.38975) if car and ped then warpPedIntoVehicle(ped,car,1) winmarker = createMarker(1022.58771, 2375.88818, 10.82031,"cylinder",2,255,255,255,255) blib = createBlip ( 1022.58771, 2375.88818, 10.82031, 51 ) addEventHandler("onMarkerHit",winmarker,wine) end end function wine(p) givePlayerMoney(p,7000) setElementData(p,'statemision',true) outputChatBox("Has the task successfully i've got 7,000k",p,255,0,0) distroy() end function distroy() destroyElement(ped) destroyElement(car) destroyElement(winmarker) destroyElement(blib) end هل هذه صحيح ارجو التصحيح لو فيه اخطاء انت تبي ادير لوحة للمود ؟ ترى زيد اشرحلي Link to comment
AchrefF Posted March 4, 2017 Author Share Posted March 4, 2017 ابى اخذ سياره من ماركر واول ما اخذ السياره تظهر علامه فى الخريطه اسلم اليها السياره الى اخذته عند العلامه الى ظهرت فى الخريطه اه ابى لوحه اختار منها السياره انا عامل اللوحه Link to comment
AchrefF Posted March 5, 2017 Author Share Posted March 5, 2017 23 hours ago, mahmod3 said: انت تبي ادير لوحة للمود ؟ ترى زيد اشرحلي اه ابى لوحه اختار منها السياره انا عامل اللوحه 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