Jump to content

aL.Kfo

Members
  • Posts

    756
  • Joined

  • Last visited

Everything posted by aL.Kfo

  1. مرحبا شباب معي كود تعديل كنق مونستر تحريك الباب بعد وقت معين اممم ابي اضافه ع الباب اول م يفتح يطلع صوت 20 ثواني يقفل الكود function move() GATE = createObject(980, x,y,z,0,0,90)-- نسوي باب -حط الاحداثيات GATEmove(1) end function GATEmove(position) if position == 1 then moveObject(GATE, 3000, x,y,z) -- المكان الي تبي الباب يتحرك له setTimer(GATEmove, 120000+120000, 1, 2) elseif position == 2 then moveObject(GATE, 3000, x,y,z)-- بعد دقيقتين يرجع لنفس المكان حط الاحداثيات setTimer(GATEmove, 120000+120000, 1, 1) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), move)
  2. كلنت GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} local timee = {} local timeee = {} ---------------------------- --Function to create windows ---------------------------- function show() destoy() --- this function to destroy all open window ------------------ --Center Window ------------------ local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 646, 505 local left = (screenWidth-windowWidth)/2 local top = (screenHeight-windowHeight)/2 GUIEditor_Image[1] = guiCreateStaticImage(left,top,windowWidth,windowHeight,"images/1.png",false) guiSetAlpha(GUIEditor_Image[1],0.80000001192093) GUIEditor_TabPanel[1] = guiCreateTabPanel(10,19,628,397,false,GUIEditor_Image[1]) guiSetAlpha(GUIEditor_TabPanel[1],0.90000001192093) ------------------ --Weapon-1 ------------------ GUIEditor_Tab[1] = guiCreateTab("Weapon-1",GUIEditor_TabPanel[1]) GUIEditor_Image[2] = guiCreateStaticImage(45,41,107,99,"images/22.png",false,GUIEditor_Tab[1]) GUIEditor_Label[1] = guiCreateLabel(27,140,141,31,"Colt 45 \n 5 $",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],150,150,150) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(39,174,113,24,"",false,GUIEditor_Tab[1]) guiSetAlpha(GUIEditor_Edit[1],0.80000001192093) guiEditSetMaxLength(GUIEditor_Edit[1],5) GUIEditor_Image[3] = guiCreateStaticImage(200,41,111,100,"images/23.png",false,GUIEditor_Tab[1]) GUIEditor_Label[2] = guiCreateLabel(182,142,141,31,"Silenced \n 8 $",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],150,150,150) guiLabelSetHorizontalAlign(GUIEditor_Label[2],"center",false) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[2] = guiCreateEdit(191,173,113,24,"",false,GUIEditor_Tab[1]) guiSetAlpha(GUIEditor_Edit[2],0.80000001192093) guiEditSetMaxLength(GUIEditor_Edit[2],5) GUIEditor_Image[4] = guiCreateStaticImage(353,44,101,100,"images/24.png",false,GUIEditor_Tab[1]) GUIEditor_Label[3] = guiCreateLabel(336,142,141,31,"Deagle \n 10 $",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],150,150,150) guiLabelSetHorizontalAlign(GUIEditor_Label[3],"center",false) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Edit[3] = guiCreateEdit(350,172,113,24,"",false,GUIEditor_Tab[1]) guiSetAlpha(GUIEditor_Edit[3],0.80000001192093) guiEditSetMaxLength(GUIEditor_Edit[3],5) GUIEditor_Image[5] = guiCreateStaticImage(503,42,107,98,"images/25.png",false,GUIEditor_Tab[1]) GUIEditor_Label[4] = guiCreateLabel(489,140,141,31,"Shotgun \n 14 $",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[4],150,150,150) guiLabelSetHorizontalAlign(GUIEditor_Label[4],"center",false) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Edit[4] = guiCreateEdit(503,170,113,24,"",false,GUIEditor_Tab[1]) guiSetAlpha(GUIEditor_Edit[4],0.80000001192093) guiEditSetMaxLength(GUIEditor_Edit[4],5) GUIEditor_Image[6] = guiCreateStaticImage(41,214,110,94,"images/26.png",false,GUIEditor_Tab[1]) GUIEditor_Label[5] = guiCreateLabel(28,310,141,31,"Shotgun \n 12 $",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[5],150,150,150) guiLabelSetHorizontalAlign(GUIEditor_Label[5],"center",false) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Edit[5] = guiCreateEdit(41,343,113,24,"",false,GUIEditor_Tab[1]) guiSetAlpha(GUIEditor_Edit[5],0.80000001192093) guiEditSetMaxLength(GUIEditor_Edit[5],5) GUIEditor_Image[7] = guiCreateStaticImage(198,215,113,94,"images/27.png",false,GUIEditor_Tab[1]) GUIEditor_Label[6] = guiCreateLabel(182,309,141,31,"Combat Shotgun \n 18 $",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[6],150,150,150) guiLabelSetHorizontalAlign(GUIEditor_Label[6],"center",false) guiSetFont(GUIEditor_Label[6],"default-bold-small") GUIEditor_Edit[6] = guiCreateEdit(196,341,113,24,"",false,GUIEditor_Tab[1]) guiSetAlpha(GUIEditor_Edit[6],0.80000001192093) guiEditSetMaxLength(GUIEditor_Edit[6],5) GUIEditor_Image[8] = guiCreateStaticImage(354,217,111,94,"images/28.png",false,GUIEditor_Tab[1]) GUIEditor_Label[7] = guiCreateLabel(344,310,141,31,"Tec-9 \n 20 $",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[7],150,150,150) guiLabelSetHorizontalAlign(GUIEditor_Label[7],"center",false) guiSetFont(GUIEditor_Label[7],"default-bold-small") GUIEditor_Edit[7] = guiCreateEdit(355,339,113,24,"",false,GUIEditor_Tab[1]) guiSetAlpha(GUIEditor_Edit[7],0.80000001192093) guiEditSetMaxLength(GUIEditor_Edit[7],5) GUIEditor_Image[9] = guiCreateStaticImage(508,218,107,94,"images/29.png",false,GUIEditor_Tab[1]) GUIEditor_Label[8] = guiCreateLabel(492,309,141,31,"MP5 \n 25 $",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[8],150,150,150) guiLabelSetHorizontalAlign(GUIEditor_Label[8],"center",false) guiSetFont(GUIEditor_Label[8],"default-bold-small") GUIEditor_Edit[8] = guiCreateEdit(506,338,113,24,"",false,GUIEditor_Tab[1]) guiSetAlpha(GUIEditor_Edit[8],0.80000001192093) guiEditSetMaxLength(GUIEditor_Edit[8],6) ------------------ --Weapon-2 ------------------ GUIEditor_Tab[2] = guiCreateTab("Weapon-2",GUIEditor_TabPanel[1]) GUIEditor_Image[10] = guiCreateStaticImage(45,41,107,99,"images/30.png",false,GUIEditor_Tab[2]) GUIEditor_Label[9] = guiCreateLabel(27,140,141,31,"AK-47 \n 30 $",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[9],150,150,150) guiLabelSetHorizontalAlign(GUIEditor_Label[9],"center",false) guiSetFont(GUIEditor_Label[9],"default-bold-small") GUIEditor_Edit[9] = guiCreateEdit(39,174,113,24,"",false,GUIEditor_Tab[2]) guiSetAlpha(GUIEditor_Edit[9],0.80000001192093) guiEditSetMaxLength(GUIEditor_Edit[9],5) GUIEditor_Image[11] = guiCreateStaticImage(200,41,111,100,"images/31.png",false,GUIEditor_Tab[2]) GUIEditor_Label[10] = guiCreateLabel(182,142,141,31,"M4 \n 35 $",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[10],150,150,150) guiLabelSetHorizontalAlign(GUIEditor_Label[10],"center",false) guiSetFont(GUIEditor_Label[10],"default-bold-small") GUIEditor_Edit[10] = guiCreateEdit(191,173,113,24,"",false,GUIEditor_Tab[2]) guiSetAlpha(GUIEditor_Edit[10],0.80000001192093) guiEditSetMaxLength(GUIEditor_Edit[10],5) GUIEditor_Image[12] = guiCreateStaticImage(353,44,101,100,"images/32.png",false,GUIEditor_Tab[2]) GUIEditor_Label[11] = guiCreateLabel(336,142,141,31,"Uzi \n 17 $",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[11],150,150,150) guiLabelSetHorizontalAlign(GUIEditor_Label[11],"center",false) guiSetFont(GUIEditor_Label[11],"default-bold-small") GUIEditor_Edit[11] = guiCreateEdit(350,172,113,24,"",false,GUIEditor_Tab[2]) guiSetAlpha(GUIEditor_Edit[11],0.80000001192093) guiEditSetMaxLength(GUIEditor_Edit[11],5) GUIEditor_Image[13] = guiCreateStaticImage(503,42,107,98,"images/33.png",false,GUIEditor_Tab[2]) GUIEditor_Label[12] = guiCreateLabel(489,140,141,31,"Rifle \n 21 $",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[12],150,150,150) guiLabelSetHorizontalAlign(GUIEditor_Label[12],"center",false) guiSetFont(GUIEditor_Label[12],"default-bold-small") GUIEditor_Edit[12] = guiCreateEdit(503,170,113,24,"",false,GUIEditor_Tab[2]) guiSetAlpha(GUIEditor_Edit[12],0.80000001192093) guiEditSetMaxLength(GUIEditor_Edit[12],5) GUIEditor_Image[14] = guiCreateStaticImage(41,214,110,94,"images/34.png",false,GUIEditor_Tab[2]) GUIEditor_Label[13] = guiCreateLabel(28,310,141,31,"Sniper \n 40 $",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[13],150,150,150) guiLabelSetHorizontalAlign(GUIEditor_Label[13],"center",false) guiSetFont(GUIEditor_Label[13],"default-bold-small") GUIEditor_Edit[13] = guiCreateEdit(41,343,113,24,"",false,GUIEditor_Tab[2]) guiSetAlpha(GUIEditor_Edit[13],0.80000001192093) guiEditSetMaxLength(GUIEditor_Edit[13],5) GUIEditor_Image[15] = guiCreateStaticImage(198,215,113,94,"images/16.png",false,GUIEditor_Tab[2]) GUIEditor_Label[14] = guiCreateLabel(182,309,141,31,"Grenade \n 100 $",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[14],150,150,150) guiLabelSetHorizontalAlign(GUIEditor_Label[14],"center",false) guiSetFont(GUIEditor_Label[14],"default-bold-small") GUIEditor_Edit[14] = guiCreateEdit(196,341,113,24,"",false,GUIEditor_Tab[2]) guiSetAlpha(GUIEditor_Edit[14],0.80000001192093) guiEditSetMaxLength(GUIEditor_Edit[14],5) GUIEditor_Label[15] = guiCreateLabel(156,430,156,17,"Total : 0 $",false,GUIEditor_Image[1]) guiSetFont(GUIEditor_Label[15],"default-bold-small") GUIEditor_Button[1] = guiCreateButton(186,457,113,28,"Exit",false,GUIEditor_Image[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(57,457,113,28,"Buy",false,GUIEditor_Image[1]) guiSetFont(GUIEditor_Button[2],"default-bold-small") GUIEditor_Label[16] = guiCreateLabel(65,428,92,21,"Price Weapon:",false,GUIEditor_Image[1]) guiLabelSetColor(GUIEditor_Label[16],150,255,0) ---------------------------------End Window------------------------------------------- ------------------ --timer Edit ------------------ timee[localPlayer] = setTimer(function () local gWA22 = guiGetText (GUIEditor_Edit[1]) if gWA22 ~= '' then local tPMt22 = tonumber(gWA22) * 5 guiSetText (GUIEditor_Label[15],"Total : ".. tPMt22 .." $") end local gWA23 = guiGetText (GUIEditor_Edit[2]) if gWA23 ~= '' then local tPMt23 = tonumber(gWA23) * 8 guiSetText (GUIEditor_Label[15],"Total : ".. tPMt23 .." $") end local gWA24 = guiGetText (GUIEditor_Edit[3]) if gWA24 ~= '' then local tPMt24 = tonumber(gWA24) * 10 guiSetText (GUIEditor_Label[15],"Total : ".. tPMt24 .." $") end local gWA25 = guiGetText (GUIEditor_Edit[4]) if gWA25 ~= '' then local tPMt25 = tonumber(gWA25) * 14 guiSetText (GUIEditor_Label[15],"Total : ".. tPMt25 .." $") end local gWA26 = guiGetText (GUIEditor_Edit[5]) if gWA26 ~= '' then local tPMt26 = tonumber(gWA26) * 12 guiSetText (GUIEditor_Label[15],"Total : ".. tPMt26 .." $") end local gWA27 = guiGetText (GUIEditor_Edit[6]) if gWA27 ~= '' then local tPMt27 = tonumber(gWA27) * 18 guiSetText (GUIEditor_Label[15],"Total : ".. tPMt27 .." $") end local gWA28 = guiGetText (GUIEditor_Edit[7]) if gWA28 ~= '' then local tPMt28 = tonumber(gWA28) * 20 guiSetText (GUIEditor_Label[15],"Total : ".. tPMt28 .." $") end local gWA29 = guiGetText (GUIEditor_Edit[8]) if gWA29 ~= '' then local tPMt29 = tonumber(gWA29) * 25 guiSetText (GUIEditor_Label[15],"Total : ".. tPMt29 .." $") end local gWA30 = guiGetText (GUIEditor_Edit[9]) if gWA30 ~= '' then local tPMt30 = tonumber(gWA30) * 30 guiSetText (GUIEditor_Label[15],"Total : ".. tPMt30 .." $") end local gWA31 = guiGetText (GUIEditor_Edit[10]) if gWA31 ~= '' then local tPMt31 = tonumber(gWA31) * 35 guiSetText (GUIEditor_Label[15],"Total : ".. tPMt31 .." $") end local gWA32 = guiGetText (GUIEditor_Edit[11]) if gWA32 ~= '' then local tPMt32 = tonumber(gWA32) * 17 or tonumber(gWA32) * 17 guiSetText (GUIEditor_Label[15],"Total : ".. tPMt32 .." $") end local gWA33 = guiGetText (GUIEditor_Edit[12]) if gWA33 ~= '' then local tPMt33 = tonumber(gWA33) * 21 guiSetText (GUIEditor_Label[15],"Total : ".. tPMt33 .." $") end local gWA34 = guiGetText (GUIEditor_Edit[13]) if gWA34 ~= '' then local tPMt34 = tonumber(gWA34) * 40 guiSetText (GUIEditor_Label[15],"Total : ".. tPMt34 .." $") end local gWA16 = guiGetText (GUIEditor_Edit[14]) if gWA16 ~= '' then local tPMt16 = tonumber(gWA16) * 100 guiSetText (GUIEditor_Label[15],"Total : ".. tPMt16 .." $") end end, 50, 0 ) timeee[localPlayer] = setTimer(function () local gWA22 = guiGetText (GUIEditor_Edit[1]) if gWA22 == '-' then guiSetText (GUIEditor_Edit[1],"") end local gWA22 = guiGetText (GUIEditor_Edit[2]) if gWA22 == '-' then
  3. بخصوص الشوب كيف اتعامل مع الاكواد ذي ياليت توضيح
  4. لا هنتم شباب جاري التجربه سوال معي مود قروبات العقرب بس اقدر اموت الاي ب قروبي وش الحل
  5. مرحبا شباب اسستعمل شوب فيه بق فلوس لا كتبت في مربع عدد الرصاص -99999 يعين اخلي الاعب م يقدر يكتب رموز في الخيار بس ارقام و لا يقدر يكتب اكثر من 4 ارقام يجيمي فلوس و سلاح كيف اقفل البق
  6. تممت الافاده لا هنت ي بعدي
  7. شباب انا فاهمكم بس الحين ركبت الكود من قبل طرح الموضوع بس م يضبط الحين الكود الاي نزله برستيج وين اكتب فيه اسم الزر عشان تقفل الوحه لا ضغطته الاكواد الوحه مع كود الخروج GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(257, 120, 262, 91, "1111", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(133, 39, 116, 33, "الغاء", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 39, 116, 33, "اختيار", false, GUIEditor.window[1]) end ) marker = createMarker ( 2458.7270507813,-1668.0413818359,13.479907989502, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if player == localPlayer then showCursor(true) guiSetVisible(GUIEditor.window[1],true) end end ) addEventHandler ( 'onClientGUIClick',GUIEditor_Button[3], function ( ) if guiGetVisible ( GUIEditor_Window[1] ) then guiSetVisible ( GUIEditor_Window[1] , false ) end end,false ) م ابي تعديل ع الكود ابي احد يفهمني كيف اعدله لين ذي لوحه تجريبيه بس مني محتاجها
  8. كيف استعمل الكود ذا يعني الحين بركبه في نافذه كيف ب الضبط
  9. مرحبا شباب سويت لوحه بمود guieditor ابي اركب زر خروج و الخ يالت الكود مع توضيح و الكود ذا شغال ولا if (source == GUIEditor_Button[3]) then guiSetVisible(GUIEditor_Window[1], false) showCursor( false ) end end
  10. م قصصرت طلال ضبط ي بعدي ولا هنت ي ذا بست ع التنبيه
  11. مرحبا شباب اليوم حاولت اسوي ماركر يفتح بلوحه بس م ضبط الاكواد client marker = createMarker ( 2458.7270507813,-1668.0413818359,13.479907989502, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player") and (player == localPlayer) then showCursor(true) guiSetVisible(mmm,true) end end ) client1.lua GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(262, 200, 344, 289, "mmm", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(75, 113, 122, 68, "", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(144, 203, 116, 53, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(243, 94, 91, 68, "", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(61, 22, 168, 62, "", false, GUIEditor.window[1]) end ) meta.xml "mm" type="script" name="script" description="1.0" />
  12. سعر مناسب و بقوه بعد ب الريال تتعدا الاف ريال ع م اعتقد ناس كثير تسويه و ع كلامهم البرمجه سهله ولا وقت الجد يصير صعب
  13. تخيل شالو المود ب نتقلب عليك خخخخخخخخ تسلم ع هيكك طرح ي سورا
  14. سسكربت جمميل و منسسق الله يرزقك امممممم بس اتوقع القسم غلط ولا انا الغلط ذذ
  15. المود انا شايفه في قسم مساهمات الاعضاء دوره راح تحصله كلها صفحه وحده
  16. ووين الحلف ي حلو ؟ عدل الرد ي حلو خلاص عوافي انا غلطان ولا تزعل
  17. --\\\\\\\\\\\\\\\\\\\\\\\\\\ --// Setting local g_screenX, g_screenY = guiGetScreenSize(); local gScale = 0.3; local gAlphaDistance = 25; local gMaxDistance = 50; -- Max Distance local gTextAlpha = 120; local gTextSize = 1; local gAlphaDiff = gMaxDistance - gAlphaDistance; gScale = 1 / gScale * 800 / g_screenY; local gMaxScaleCurve = { { 0, 0 }, { 3, 3 }, { 13, 5 } }; local gTextScaleCurve = { { 0, 0.8 }, { 0.8, 1.2 }, { 99, 99 } }; local gTextAlphaCurve = { { 0, 0 }, { 25, 100 }, { 120, 190 }, { 255, 190 } }; local markerp = createMarker( 1552.4996337891, -1677.3264160156, 15.1953125, 'Cylinder', 1.5, 0, 0, 255, 150 ); local marker1p = createMarker( -1604.5458984375, 712.25848388672, 12.8671875, 'Cylinder', 1.5, 0, 0, 255, 150 ); local marker2p = createMarker( 2340.9245605469, 2456.0463867188, 13.96875, 'Cylinder', 1.5, 0, 0, 255, 150 ); addEventHandler ( 'onClientRender', root, function ( ) -- local x, y, z = getCameraMatrix(); local x1, y1, z1 = getElementPosition ( markerp ); local x2, y2, z2 = getElementPosition ( marker1p ); local x3, y3, z3 = getElementPosition ( marker2p ); local distance_1 = getDistanceBetweenPoints3D( x, y, z, x1, y1, z1 ); local distance_2 = getDistanceBetweenPoints3D( x, y, z, x2, y2, z2 ); local distance_3 = getDistanceBetweenPoints3D( x, y, z, x3, y3, z3 ); -- -- Marker #1 if distance_1 <= gMaxDistance then local x1_, y1_ = getScreenFromWorldPosition( x1, y1, z1 + 0.95, 0.06 ); if x1_ and y1_ then -- local scale = 1 / ( gScale * ( distance_1 / gMaxDistance ) ); local alpha = ( ( distance_1 - gAlphaDistance ) / gAlphaDiff ); alpha = ( alpha < 0 ) and gTextAlpha or gTextAlpha - ( alpha * gTextAlpha ); scale = math.evalCurve( gMaxScaleCurve, scale ); local textscale = math.evalCurve( gTextScaleCurve, scale ); local textalpha = math.evalCurve( gTextAlphaCurve, alpha ); -- dxDrawText( "police job", x1_, y1_, x1_, y1_, tocolor ( 255, 255, 255, textalpha ), textscale * gTextSize, "arial", "center", "bottom", false, false, false, true ); end -- Marker #2 elseif distance_2 <= gMaxDistance then local x2_, y2_ = getScreenFromWorldPosition( x2, y2, z2 + 0.95, 0.06 ); if x2_ and y2_ then -- local scale = 1 / ( gScale * ( distance_2 / gMaxDistance ) ); local alpha = ( ( distance_2 - gAlphaDistance ) / gAlphaDiff ); alpha = ( alpha < 0 ) and gTextAlpha or gTextAlpha - ( alpha * gTextAlpha ); scale = math.evalCurve( gMaxScaleCurve, scale ); local textscale = math.evalCurve( gTextScaleCurve, scale ); local textalpha = math.evalCurve( gTextAlphaCurve, alpha ); -- dxDrawText( "police job", x2_, y2_, x2_, y2_, tocolor ( 255, 255, 255, textalpha ), textscale * gTextSize, "arial", "center", "bottom", false, false, false, true ); end -- Marker #3 elseif distance_3 <= gMaxDistance then local x3_, y3_ = getScreenFromWorldPosition( x3, y3, z3 + 0.95, 0.06 ); if x3_ and y3_ then -- local scale = 1 / ( gScale * ( distance_3 / gMaxDistance ) ); local alpha = ( ( distance_3 - gAlphaDistance ) / gAlphaDiff ); alpha = ( alpha < 0 ) and gTextAlpha or gTextAlpha - ( alpha * gTextAlpha ); scale = math.evalCurve( gMaxScaleCurve, scale ); local textscale = math.evalCurve( gTextScaleCurve, scale ); local textalpha = math.evalCurve( gTextAlphaCurve, alpha ); -- dxDrawText( "police job", x3_, y3_, x3_, y3_, tocolor ( 255, 255, 255, textalpha ), textscale * gTextSize, "arial", "center", "bottom", false, false, false, true ); end end end ); -- ////////////////////////////////// -- // MATH FUNCTIONS // -- ////////////////////////////////// function math.evalCurve( curve, input ) if input < curve[ 1 ][ 1 ] then return curve[ 1 ][ 2 ]; end for idx = 2, #curve do if input < curve[ idx ][ 1 ] then local x1 = curve[ idx - 1 ][ 1 ]; local y1 = curve[ idx - 1 ][ 2 ]; local x2 = curve[ idx ][ 1 ]; local y2 = curve[ idx ][ 2 ]; local alpha = ( input - x1 ) / ( x2 - x1 ); return math.lerp( y1, y2, alpha ); end end return curve[ #curve ][ 2 ]; end function math.lerp( from, to, alpha ) return from + ( to-from ) * alpha; end Wnd = guiCreateWindow ( 0.2, 0.2, 0.50, 0.60, "police job v5.0", true ) guiSetAlpha( Wnd, 1 ) button = guiCreateButton ( 0.5, 0.8, 0.45, 0.15, "Close", true, Wnd ) button1 = guiCreateButton ( 0.01, 0.8, 0.45, 0.15, "get job", true, Wnd ) label = guiCreateLabel ( 0.05, 0.1, 0.9, 0.2, "get police job, policemen can arrest wanted players by hitting \nthem with the nighstick (3). if you don't have the station will \ngive you one.", true, Wnd ) showCursor(false) guiSetVisible( Wnd, false ) guiWindowSetSizable( Wnd, false ) guiWindowSetMovable( Wnd, false ) skins = { {"Officer 1", 280}, {"Officer 2", 281}, {"Ranger 1", 283}, {"Ranger 2", 288}, {"Traffic officer", 284}, } skinG = guiCreateGridList(0.01, 0.3, 0.99, 0.5, true, Wnd) guiGridListAddColumn(skinG, "Skins", 0.85) for i,skins in ipairs(skins) do row = guiGridListAddRow(skinG) -- guiGridListSetItemText(skinG, row, 1, tostring(skins[1]), false, false) guiGridListSetItemData(skinG, row, 1, tostring(skins[2])) end function SAPDjob(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(Wnd) then guiSetVisible(Wnd, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", markerp, SAPDjob) addEventHandler("onClientMarkerHit", marker1p, SAPDjob) addEventHandler("onClientMarkerHit", marker2p, SAPDjob) function takeJob() local row, col = guiGridListGetSelectedItem(skinG) if (row and col and row ~= -1 and col ~= -1) then local models = tonumber(guiGridListGetItemData(skinG, row, 1)) if model ~= "" then triggerServerEvent("getJob", localPlayer, models) guiSetVisible(Wnd,false) showCursor(false) end end end addEventHandler("onClientGUIClick", button1, takeJob, false) function close() if (source == button) then guiSetVisible(Wnd,false) showCursor(false) end end addEventHandler("onClientGUIClick", button, close) ذا بست فيه مشكله في المود لا مات الشرطي يرجع ل التيم الاي كان فيه قبل تبي اطرح لك كل اكواد المود
  18. اطرح كودك ورني وش سويت؟ كلنت function outputWantedLevel () local wantedLvl = getPlayerWantedLevel ( ) if wantedLvl == 0 then outputChatBox ( "You clean", 0, 255, 0) else outputChatBox ( "You have "..wantedLvl.." wanted stars!", 255, 0, 0) end end addCommandHandler ( "wanted", outputWantedLevel ) سيرفر local players = getElementsByType ( "player" ) -- get a table of all the players in the server for theKey,thePlayer in ipairs(players) do -- use a generic for loop to step through each player local level = getPlayerWantedLevel ( thePlayer ) -- get the wanted level of the player if ( level > 0 ) then -- if the player has any stars, announce it in the chat: outputChatBox ( getPlayerName ( thePlayer ) .. " has a wanted level of " .. level .. " stars!" ) end end
  19. شبباب فيه مشكله فةق طرحتها و للحين مو محصل حل مود المطعم مو شغال ع الاستضافه و شغال ع الهماشي وش الحل ي جماعه الخير مع اني متاكد انه شغال نفس المود الاي ب المجاني رفعته
  20. يب صوح شكلي غلطت وانت فهمتها لكل السيرفر المهم انها ضبططت تمام التمام تممت الافادةةة
  21. ^^ذا بست امممممم الكود لا واحد خش للماركر و طلعت له الوحه تطلع لكل الاي ب السيرفر ^^
  22. ذا بست جربتها م ضبط كنق طريفتك اخفت الماركر برسستيج ذا الكود + ذا بست markers = { {2472.0881347656,-1688.6563720703,13.5078125}, {2228.4409179688,-1167.3218994141,25.747329711914}, {1719.2711181641,-1607.2225341797,13.546875}, {1506.5936279297,-1749.0170898438,13.546875}, {1220.3937988281,-1734.4114990234,13.580118179321}, {1144.107421875,-1292.6887207031,13.616773605347}, {666.86676025391,-1281.0958251953,13.4609375}, {1422.1994628906,-1136.7351074219,23.954034805298}, {1427.0316162109,-1046.7501220703,23.743759155273}, {1796.4952392578,-1439.7015380859,13.422317504883}, {987.70751953125,-1227.5476074219,16.922908782959}, {1944.8569335937,-1368.2105712891,18.578125} } addEventHandler('onResourceStart',resourceRoot,function() for k,v in ipairs(markers) do createMarker(v[1],v[2],v[3],'cylinder',3,255,255,175,170) end end ) local vehicles = {} addEvent('CreVehicePv',true) addEventHandler('CreVehicePv', root , function(id) local x, y, z = getElementPosition(source) if isElement(vehicles[source]) then destroyElement(vehicles[source]) end vehicles[source] = createVehicle(id, x + 2, y, z) warpPedIntoVehicle(source, vehicles[source]) end ) addEventHandler('onPlayerQuit', root,function() if isElement(vehicles[source]) then destroyElement(vehicles[source]) vehicles[source] = nil end end ) addEventHandler('onMarkerHit',resourceRoot,function(hitPlayer) if getElementType(hitPlayer) == 'player' then triggerClientEvent ('showGUIpv',root) end end ) هذا هو الكود م اقدر اغير اتجاك السياره صح ضيف عليه كود تغيير اتجاه السياره لا هنت
  23. اهاا كويس جاري التجربه ضبط تمام التمام بس م فيه طريقه اخلي الماركر متساوي مع الارض كتبت -1 ك العاده بس م ضبط مو مهم مره بس يعني عشان الشكل افضل
×
×
  • Create New...