-
Posts
82 -
Joined
-
Last visited
Everything posted by flapjack3003
-
عايز كود يعطى الاعب freez و كود تانى يشيل freez
-
الما بتضغط على الكود مش بتغير الشخصبة او بيتحط فى التيم ارجو التصحيح client function jointeam() guiSetVisible(GUIEditor_Window[1],false) showCursor(false) guiSetInputEnabled(false) triggerServerEvent ( "skin", getLocalPlayer()) end addEventHandler ("onClientGUIClick", GUIEditor_Button[1], jointeam) server tm = createTeam ( "Collector Timber Job") function bb ( source) Boat = createVehicle ( 472, 824, -1807, 13 ) setPlayerSkin ( source, 230 ) setPlayerTeam ( source, tm ) function bb ( source ) setPlayerTeam ( source, tm ) end end addEvent( "skin", true ) addEventHandler( "skin", resourceRoot, bb )
-
ممكن تعملى الكود لانى مش عارف اعمله
-
انا جربت ما اشتغلت ممكن تصحيح كود guiSetText(GUIEditor_Label[1],"Your team is: "..getPlayerTeam(getLocalPlayer()))
-
انا عايز كود يخلى يظهر اسم التيم الى الاعب فيه فى labe و كود عدد الاعبين الى فى التيم GUIEditor_Label = {} GUIEditor_Label[1] = guiCreateLabel(9,10,221,47,"Your Team is :",false,GUIEditor_Image[1])
-
#1| تم التحديث و تصليح جميع البقات |وظيفة الصياد
flapjack3003 replied to flapjack3003's topic in المساهمات
شكرأ لمرورك -
#1| تم التحديث و تصليح جميع البقات |وظيفة الصياد
flapjack3003 replied to flapjack3003's topic in المساهمات
شكرا يا شباب و اسف لانى اقصرت فى شرح المود لان الوقت كان قصير -
اقدم لكل وظيفة الصياد بدون حقوق ما اطول عليكم ندخل على الفيديو و ان شاء الله تعجبكم الفيديو من ميمو برنس Jey ان شاء الله تكون عجبتكم و انتظرو باقي الوظايف مني التحميل
-
تم الحل function pro() if ( source == play ) then guiSetVisible(window,false) showCursor(false) startJob ( thePlayer ) end end addEventHandler ("onClientGUIClick", getRootElement(), pro ) function MarkerHits () if ( getElementModel (object1) == 1607 ) then destroyElement ( object1 ) destroyElement ( markers ) destroyElement ( blips ) startJob ( thePlayer ) end if ( getElementModel (object1) == 1604 ) then destroyElement ( object1 ) destroyElement ( markers ) destroyElement ( blips ) startJob ( thePlayer ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHits ) function startJob ( thePlayer ) x, y, z = unpack ( pickups [ math.random ( #pickups ) ] ) markers = createMarker ( x, y, z, "cylinder", 2, 255, 255, 0, 255 ) object = unpack ( pedCus [ math.random ( #pedCus ) ] ) object1 = createObject( object, x, y, z ) blips = createBlipAttachedTo ( markers, 58 ) end
-
مش عارف انو فنكش ده الكود انا عامله يخفى المركر والابوجيكت اول لما يدخل الماركر انا عايزه يعد ما تختفى المركر يعمل مركر من جديد وهكذا function pro() if ( source == play ) then guiSetVisible(window,false) showCursor(false) startJob ( thePlayer ) end end addEventHandler ("onClientGUIClick", getRootElement(), pro ) function MarkerHits () if ( getElementModel (object1) == 1607 ) then destroyElement ( object1 ) destroyElement ( markers ) destroyElement ( blips ) end if ( getElementModel (object1) == 1604 ) then destroyElement ( object1 ) destroyElement ( markers ) destroyElement ( blips ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHits ) function startJob ( thePlayer ) x, y, z = unpack ( pickups [ math.random ( #pickups ) ] ) markers = createMarker ( x, y, z, "cylinder", 2, 255, 255, 0, 255 ) object = unpack ( pedCus [ math.random ( #pedCus ) ] ) object1 = createObject( object, x, y, z ) blips = createBlipAttachedTo ( markers, 58 ) end
-
ممكن كود يخلية يعيد الفنكشن ده function pro() if ( source == play ) then guiSetVisible(window,false) showCursor(false) x, y, z = unpack ( pickups [ math.random ( #pickups ) ] ) markers = createMarker ( x, y, z, "cylinder", 2, 255, 255, 0, 255 ) object = unpack ( pedCus [ math.random ( #pedCus ) ] ) object1 = createObject( object, x, y, z ) blips = createBlipAttachedTo ( markers, 58 ) end end addEventHandler ("onClientGUIClick", getRootElement(), pro ) function MarkerHits () if ( getElementModel (object1) == 1607 ) then outputChatBox ( " n ") destroyElement ( object1 ) destroyElement ( markers ) destroyElement ( blips ) end if ( getElementModel (object1) == 1604 ) then outputChatBox ( "n1" ) destroyElement ( object1 ) destroyElement ( markers ) destroyElement ( blips ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHits )
-
ده الكود الاصلى من وظيفة تانية بس موجود فى السيرفر انا عايز اخليه فى الكلينت local pickups = { [1]={ 2060.7685546875, -1941.1181640625, 13.14103603363 }, [2]={ 2114.5068359375, -1611.302734375, 13.167269706726 }, [3]={ 1932.9521484375, -1776.1259765625, 13.16081237793 }, [4]={ 1057.41796875, -1568.4853515625, 13.166387557983 }, [5]={ 1133.2607421875, -1286.6201171875, 13.245727539063 }, [6]={ 1197.380859375, -1576.9228515625, 13.2406873703 }, [7]={ 1275.6181640625, -1717.5087890625, 13.241578102112 }, [8]={ 1041.908203125, -1869.1728515625, 13.15417766571 }, [9]={ 680.9248046875, -1763.6552734375, 13.168544769287 }, [10]={ 597.5556640625, -1598.90234375, 16.215705871582 }, [11]={ 357.197265625, -1443.72265625, 34.185447692871 } } local dropoffss = { [1]={ 1965.54296875 , -1883.013671875, 13.160305023193 }, [2]={ 1467.3916015625, -1736.419921875, 13.242918014526 }, [3]={ 2376.1064453125, -1728.4091796875, 13.162055015564 }, [4]={ 1066.5029296875, -1200.86328125, 18.405519485474 }, [5]={ 584.8916015625, -1328.7021484375, 13.25985622406 }, [6]={ 989.75, -1372.083984375, 13.244333267212 }, [7]={ 1116.333984375, -1410.7666015625, 13.267498970032 }, [8]={ 1437.5244140625, -1039.8212890625, 23.564819335938 }, [9]={ 2124.4521484375, -1116.4931640625, 25.031726837158 }, [10]={ 2700.8857421875, -1091.896484375, 69.064071655273 }, [11]={ 2769.2744140625, -1494.0517578125, 27.58003616333 } } local pedCus = { [1]={ 9 }, [2]={ 10 }, [3]={ 14 }, [4]={ 15 }, [5]={ 37 } } markers = { } blips = { } peds = { } mposi = { } mposii = {} function startJob ( thePlayer ) local x, y, z = unpack ( pickups [ math.random ( #pickups ) ] ) markers [ thePlayer ] = createMarker ( x, y, z, "cylinder", 5.0, 255, 0, 0, 0 ) mposi = { getElementPosition( markers [ thePlayer ] ) } local skins = unpack ( pedCus [ math.random ( #pedCus ) ] ) peds [ thePlayer ] = createPed( skins, x, y, z ) blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 58 ) addEventHandler ( "onMarkerHit", markers [ thePlayer ], warpit ) end function inVEH ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then if ( getElementModel ( source ) == 420 ) then startJob ( thePlayer ) end end end addEventHandler ( "onVehicleEnter", getRootElement(), inVEH ) function warpit ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then local vehiclee = getPedOccupiedVehicle ( thePlayer ) if ( getElementModel ( vehiclee ) == 420 ) then setTimer ( warpPedIntoVehicle, 2000, 1, peds [ thePlayer ], vehiclee, 2 ) destroyJob ( thePlayer ) local x, y, z = unpack ( dropoffss [ math.random ( #dropoffss ) ] ) markers [ thePlayer ] = createMarker ( x, y, z - 1, "cylinder", 5.0, 255, 0, 0, 50 ) mposii = { getElementPosition( markers [ thePlayer ] ) } blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 41 ) addEventHandler ( "onMarkerHit", markers [ thePlayer ], pickmeup ) end end end
-
ما بيشتغل المفروض اول لو ادوس على الزر يظهر ماركر و Blibe انا بحاول اعمل وظيفة الصياد بس مشاكل فى البرمجة بتقف فى طريقى
-
ممكن تصحيح للكود ده اخر طلب ان شاء الله local pickups = { [1]={ 2060.7685546875, -1941.1181640625, 13.14103603363 }, [2]={ 2114.5068359375, -1611.302734375, 13.167269706726 }, [3]={ 1932.9521484375, -1776.1259765625, 13.16081237793 }, [4]={ 1057.41796875, -1568.4853515625, 13.166387557983 }, [5]={ 1133.2607421875, -1286.6201171875, 13.245727539063 }, [6]={ 1197.380859375, -1576.9228515625, 13.2406873703 }, [7]={ 1275.6181640625, -1717.5087890625, 13.241578102112 }, [8]={ 1041.908203125, -1869.1728515625, 13.15417766571 }, [9]={ 680.9248046875, -1763.6552734375, 13.168544769287 }, [10]={ 597.5556640625, -1598.90234375, 16.215705871582 }, [11]={ 357.197265625, -1443.72265625, 34.185447692871 } } local dropoffss = { [1]={ 1965.54296875 , -1883.013671875, 13.160305023193 }, [2]={ 1467.3916015625, -1736.419921875, 13.242918014526 }, [3]={ 2376.1064453125, -1728.4091796875, 13.162055015564 }, [4]={ 1066.5029296875, -1200.86328125, 18.405519485474 }, [5]={ 584.8916015625, -1328.7021484375, 13.25985622406 }, [6]={ 989.75, -1372.083984375, 13.244333267212 }, [7]={ 1116.333984375, -1410.7666015625, 13.267498970032 }, [8]={ 1437.5244140625, -1039.8212890625, 23.564819335938 }, [9]={ 2124.4521484375, -1116.4931640625, 25.031726837158 }, [10]={ 2700.8857421875, -1091.896484375, 69.064071655273 }, [11]={ 2769.2744140625, -1494.0517578125, 27.58003616333 } } local pedCus = { [1]={ 9 }, [2]={ 10 }, [3]={ 14 }, [4]={ 15 }, [5]={ 37 } } markers = { } blips = { } peds = { } mposi = { } mposii = {} addEventHandler ("onClientGUIClick", getRootElement(), function (button, state, absoluteX, absoluteY, thePlayer) if ( source == play ) then guiSetVisible(window,false) showCursor(false) local x, y, z = unpack ( pickups [ math.random ( #pickups ) ] ) mposi = { getElementPosition( markers [ source ] ) } local skins = unpack ( pedCus [ math.random ( #pedCus ) ] ) peds [ source ] = createPed( skins, x, y, z ) blips [ source ] = createBlipAttachedTo ( markers [ source ], 58 ) end end )
-
اه فهمت شكرا تعبتك معايا بس ممكن تقولى السبب
-
انا عايز اخفى الابوجكيت رقم 1607 لما اكتب فى اف 8 اى شىء local table = {1607, 3095} addEventHandler ("onClientGUIClick", getRootElement(), function (button, state, absoluteX, absoluteY) if ( source == play ) then guiSetVisible(window,false) showCursor(false) local object = createObject(table[math.random(#table)],-713,957,11,90,0,0) if ( getElementModel (object) == 1607 ) then end if ( getElementModel (object) == 3095 ) then end end end ) function allvehiclesaredoomed() if ( getElementModel (object) == 1607 ) then destroyElement ( object ) end end addCommandHandler("vdoom", allvehiclesaredoomed)
