Jump to content

mouamle

Members
  • Posts

    303
  • Joined

  • Last visited

Everything posted by mouamle

  1. السلام عليكم الحدث onClientResourceStart يعني لما المود يشتغل بس من استخدمتة بمودي صار لما اشغل اي مود ينفذ الي طالبة منة ذا الكود addEventHandler("onClientResourceStart", getRootElement(), function() outputChatBox(" ") outputChatBox("مود اطلاق صاروخ السيارة ") outputChatBox("By_ Mr.Mouamle") outputChatBox(" ") end ) وش السبب ؟
  2. ما نجحت المهم شكرا على المساعدة مود الليزر فيه export استخدمتها يغلق
  3. بس انا ابية ياخذ قيمة ال Scrollbar يحتاج احط , بعد كل ارقمنت لو ما يحتاج ؟
  4. السلام عليكم سويت لوحة بسيطة ابيها تغير لي لون الليزر بأستخدام executeCommandHandler LaserRed = guiScrollBarGetScrollPosition( RedV ) LaserGreen = guiScrollBarGetScrollPosition( GreenV ) LaserBlue = guiScrollBarGetScrollPosition( BlueV ) executeCommandHandler( "lasercolor", tonumber(LaserRed), tonumber(LaserGreen), tonumber(LaserBlue), 255 ) استخدمتة بذي الصيغة في الشات يطلع Invalid colors: (0-255) usage: /lasercolor r g b a بس ما هو كودي الفوق صحيح ؟
  5. وشكرا بس وش ذي ال true جنب الكلمة وش شغلها ؟
  6. طيب فيه طريقه احسن اذا بتحط اكثر من كلمه تسوي جدول وتحط فيه الكلمات وتسوي لوب مشكلتي الوحيدة للحين ما اعرف استخدم الجدول مع اللوب بس أعرف اساسيات الجدول واعرف اساسيات اللوب
  7. and Another good tutorial keep it up
  8. Maybe that 's what you need https://community.multitheftauto.com/ind ... ls&id=4436
  9. لأن بدل ال *** كنت كاتب كلمات سب حتى لما اللاعب يسب ينطرد + طفيت ال Freeroam وبعدة يطلع الجات وكذلك playercolors وما صار شي
  10. السلام عليكم سويت ذا الكود البسيط لما اللاعب يكتب شي يجيب اسمة ويحط قبلة كلمة Server ويسوي الكتابة حمرة addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'***') then kickPlayer ( source, "كلام ممنوع" ) else outputChatBox("Server: " .. getPlayerName( source ) .. "#ff0000 " .. msg, root, 231, 255, 10, true) end end ) بس الحين ابي اشيل الشات الرئيسي لأن اذا ما شلتة راح يطلع الكلام الي اللاعب كتبة مرتين كيف اشيلة ؟
  11. math.random(100) -- اذا تحط رقم واحد فقط راح يطلعلك رقم عشوائي من 0 الى الرقم الي انت كاتبة math.random(50, 100) -- اذا تحط رقمين راح يطلعلك رقم عشوائي بين الرقم الاول والرقم الثاني بالتوفيق
  12. ال element حقة يكون Raw ؟ الي هوه اسم الرو الي مسوية يعني يصير بالفنكشن if ( source == Raw ) then -- .... end
  13. السلام عليكم سويت لوحة فيها قريدلست ابية لما اضغط على رو محدد باللوحة يسوي فنكشن معينة بس للحين ماني لاقي الحدث الكود: اعرف ان نصة اخطاء بس المهم شغال لحد الأن GUIEditor = { gridlist = {}, window = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(441, 201, 440, 445, "CJ Cloths", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.gridlist[1] = guiCreateGridList(9, 22, 278, 409, false, GUIEditor.window[1]) Column = guiGridListAddColumn(GUIEditor.gridlist[1], "Name", 0.9) Raw = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1], Raw, Column, tostring("Type0index0"), false , false ) SetB = guiCreateButton(299, 391, 131, 40, "Set", false, GUIEditor.window[1]) ExitB = guiCreateButton(299, 316, 131, 40, "Exit", false, GUIEditor.window[1]) trousersB = guiCreateButton(274, 64, 121, 37, "", false) guiSetAlpha(trousersB, 0.00) shirtsB = guiCreateButton(3, 64, 121, 37, "", false) guiSetAlpha(shirtsB, 0.00) shoesB = guiCreateButton(0, 111, 121, 37, "", false) guiSetAlpha(shoesB, 0.00) headsB = guiCreateButton(0, 158, 121, 37, "", false) guiSetAlpha(headsB, 0.00) glassesB = guiCreateButton(0, 205, 121, 37, "", false) guiSetAlpha(glassesB, 0.00) hatsB = guiCreateButton(275, 205, 121, 37, "", false) guiSetAlpha(hatsB, 0.00) watchesB = guiCreateButton(275, 158, 121, 37, "", false) guiSetAlpha(watchesB, 0.00) necklaceB = guiCreateButton(275, 111, 121, 37, "", false) guiSetAlpha(necklaceB, 0.00) extrasB = guiCreateButton(144, 215, 111, 37, "", false) guiSetAlpha(extrasB, 0.00) guiSetVisible( GUIEditor.window[1], false ) end ) function DXS() dxDrawRectangle(0, 0, 400, 278, tocolor(0, 0, 0, 206), false) dxDrawText("CJ Cloths", 3, 2, 400, 47, tocolor(255, 255, 0, 255), 1.00, "bankgothic", "center", "top", false, false, false, false, false) dxDrawLine(0, 38, 400, 38, tocolor(255, 255, 255, 255), 2, false) dxDrawText("Shirts", 10, 64, 120, 101, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Trousers", 280, 64, 390, 101, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Shoes", 10, 111, 120, 148, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Necklace", 280, 111, 390, 148, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Heads", 10, 158, 120, 195, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Watches", 280, 158, 390, 195, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Glasses", 10, 205, 120, 242, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Hats", 280, 205, 390, 242, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Extras", 145, 215, 255, 252, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("By: ", 126, 74, 164, 101, tocolor(0, 255, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Mr.Mouamle", 136, 101, 274, 128, tocolor(0, 0, 255, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) end function Draw( path ) local x = 297 local y = 26 local w = 133 local h = 245 guiCreateStaticImage ( x, y, w, h, path, false, GUIEditor.window[1]) end bindKey("F9", "up", function() addEventHandler("onClientRender", root, DXS) showCursor( true ) end ) addEventHandler( "onClientGUIClick", root, function() if ( source == ExitB ) then guiSetVisible( GUIEditor.window[1] , false ) showCursor( false ) removeEventHandler("onClientRender", root, DXS) elseif ( source == shirtsB ) then guiSetVisible( GUIEditor.window[1], true ) showCursor( true ) elseif ( source == SetB ) then Draw("Shirts/Type0index0.png") end end )
  14. مشكور بحاول سؤال ثاني xmlNodeSetValue الي يضيف القيمة لل Node في فنكشن يجيب القيمة من ال Node ?
  15. السلام عليكم سويت لوحة تسجيل بس ضفت بيها كم معلومة اضافية مثلا عمر اللاعب وبريدة الألكتروني المطلوب ابي المعلومات تنحفظ بملف xml وشكرا
  16. اذا تبية علىشان رمضان ذا انا مسوية gx, gy = guiGetScreenSize() GUIEditor = { label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.label[1] = guiCreateLabel(gx - 50, 0, 144, 50, "رمضان", false) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) end ) function ToggleTimer() DayTimer = setTimer ( function() time = getRealTime() hours = time.hour - 12 hours12 = time.hour minutes = time.minute second = time.second month = time.month day = time.monthday if ( month == 5 ) and ( day == 18 ) then guiSetText(GUIEditor.label[1], "") -- 1 Day if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 45 ) then outputChatBox("") end end elseif ( month == 5) and ( day == 19 ) then guiSetText(GUIEditor.label[1], "") -- 2 Day if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 45 ) then outputChatBox("") end end elseif( month == 5 ) and ( day == 20 ) then guiSetText( GUIEditor.label[1], "" ) -- 3 Day if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 45 ) then outputChatBox("") end end elseif( month == 5 ) and ( day == 21 ) then guiSetText( GUIEditor.label[1], "" ) -- 4 Day if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 46 ) then outputChatBox("") end end elseif( month == 5 ) and ( day == 22 ) then guiSetText( GUIEditor.label[1], "" ) -- 5 Day if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 46 ) then outputChatBox("") end end elseif( month == 5 ) and ( day == 23 ) then guiSetText( GUIEditor.label[1], "" ) -- 6 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 46 ) then outputChatBox("") end end elseif( month == 5 ) and ( day == 24 ) then guiSetText( GUIEditor.label[1], "" ) -- 7 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 46 ) then outputChatBox("") end end elseif( month == 5 ) and ( day == 25 ) then guiSetText( GUIEditor.label[1], "" ) -- 8 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 46 ) then outputChatBox("") end end elseif( month == 5 ) and ( day == 26 ) then guiSetText( GUIEditor.label[1], "" ) -- 9 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 46 ) then outputChatBox("") end end elseif( month == 5 ) and ( day == 27 ) then guiSetText( GUIEditor.label[1], "" ) -- 10 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 46 ) then outputChatBox("") end end elseif( month == 5 ) and ( day == 28 ) then guiSetText( GUIEditor.label[1], "" ) -- 11 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 47 ) then outputChatBox("") end end elseif( month == 5 ) and ( day == 29 ) then guiSetText( GUIEditor.label[1], "" ) -- 12 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 47 ) then outputChatBox("") end end elseif( month == 5 ) and ( day == 30 ) then guiSetText( GUIEditor.label[1], "" ) -- 13 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 47 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 1 ) then guiSetText( GUIEditor.label[1], " " ) -- 14 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 47 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 2 ) then guiSetText( GUIEditor.label[1], "" ) -- 15 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 47 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 3 ) then guiSetText( GUIEditor.label[1], "" ) -- 16 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 47 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 4 ) then guiSetText( GUIEditor.label[1], "" ) -- 17 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 47 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 5 ) then guiSetText( GUIEditor.label[1], "" ) -- 18 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 46 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 6 ) then guiSetText( GUIEditor.label[1], "" ) -- 19 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 46 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 7 ) then guiSetText( GUIEditor.label[1], "" ) -- 20 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 46 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 8 ) then guiSetText( GUIEditor.label[1], "" ) -- 21 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 46 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 9 ) then guiSetText( GUIEditor.label[1], "" ) -- 22 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 46 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 10 ) then guiSetText( GUIEditor.label[1], "" ) -- 23 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 46 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 11 ) then guiSetText( GUIEditor.label[1], "" ) -- 24 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 46 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 12 ) then guiSetText( GUIEditor.label[1], "" ) -- 25 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 45 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 13 ) then guiSetText( GUIEditor.label[1], "" ) -- 26 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 45 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 14 ) then guiSetText( GUIEditor.label[1], "" ) -- 27 if ( hours12 == 7 ) or ( hours24 == 7 ) then if ( minutes == 44 ) then outputChatBox("") end end elseif( month == 6 ) and ( day == 15 ) then
  17. السلام عليكم GUIEditor = { label = {} } function build_Dialog() showCursor(true) local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 157, 234 local left = screenWidth/2 - windowWidth/2 local top = screenHeight/2 - windowHeight/2 Main = guiCreateWindow(left, top, windowWidth, windowHeight, "{I.Q} Lions", false) guiWindowSetSizable(Main, false) Exit = guiCreateButton(10, 196, 137, 28, "اغلاق", false, Main) GUIEditor.label[1] = guiCreateLabel(42, 119, 105, 16, "أقصى سرعة للأنذار", false, Main) FullSpeed = guiCreateEdit(10, 135, 137, 17, "150", false, Main) XSpeed = guiCreateCheckBox(9, 24, 138, 16, "صوت اجتياز السرعة", true, false, Main) XHealth = guiCreateCheckBox(9, 50, 138, 16, "صوت احتراق السيارة", true, false, Main) GUIEditor.label[2] = guiCreateLabel(14, 76, 28, 15, "BY:", false, Main) GUIEditor.label[3] = guiCreateLabel(38, 77, 90, 14, "Mr.Mouamle", false, Main) end function GuiShow ( ) if ( guiGetVisible ( Main ) == false ) then -- check if the gui element is visible build_Dialog() else guiSetVisible( Main, false ) showCursor(false) end end bindKey ( "F9", "down", GuiShow ) addEventHandler( "onClientGUIClick", root, function ( ) if ( source == Exit ) then guiSetVisible( Main, false ) showCursor(false) end end ) الـ CheckBox الحين لما اللاعب يفتح اللوحة يشيل تحديد مثلا الأول وغلق اللوحة ويرجع يفتحها يلاقي ال CheckBox متحدد كيف اخليه ما يرجعها ؟ وكذلك ال Edit box لما يكتب فية مثلا 50 يغلق اللوحة يرجع يقتحها يلاقي راجع 150 كيف اخليها ما يرجعها للنص الأساسي ؟ واسف على الأطالة وشكرا
×
×
  • Create New...