Jump to content

Adham

Members
  • Posts

    2,259
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Adham

  1. + لازم تكون في سياره
  2. GUIEditor = { label = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 364) / 2, (screenH - 219) / 2, 364, 219, "Created By MR.NaiF-MTA", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFC00FF") guiSetVisible ( GUIEditor.window[1], false ) FIX = guiCreateButton(64, 55, 251, 65, "اصلاح السيارة", false, GUIEditor.window[1]) guiSetProperty(FIX, "NormalTextColour", "FF5FFE00") Close = guiCreateButton(10, 177, 72, 28, "#Close", false, GUIEditor.window[1]) guiSetProperty(Close, "NormalTextColour", "FFFE0000") GUIEditor.label[1] = guiCreateLabel(116, 140, 209, 15, "نتمني لكم قضاء وقتا سعيدا في السيرفر", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 9, 59, 245) end ) bindKey ( "F9", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) addEventHandler("onClientGUIClick",root, function () if ( source == Close ) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) addEventHandler("onClientGUIClick",resourceRoot,function () if ( source == FIX ) then triggerServerEvent ( "FixCar",localPlayer) end end) addEvent( "FixCar", true ) addEventHandler( "FixCar",root,function () local Veh = getPedOccupiedVehicle ( source ) if Veh then fixVehicle(Veh) outputChatBox(' تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) else outputChatBox(' لايوجد سيارة لاصلاحها ', source ,0,255,0,true ) end end)
  3. dxDrawTextOnElement يب
  4. SaedAmer ^ الكود الطلبتو مني في الخاص ^ addEventHandler("onClientGUIClick",root, function () if ( source == Close ) then guiSetVisible(wnd,false) showCursor(false) elseif ( source == Buton ) then if ( guiGetText ( editname ) and guiGetText ( editname ) and guiGetText ( editrname ) ~= '' ) then local row = guiGridListAddRow ( GRID) guiGridListSetItemText (GRID,row,Column1,guiGetText(editmail),false,false) guiGridListSetItemText (GRID,row,Column2,guiGetText(editmail),false,false) guiGridListSetItemText (GRID,row,Column3,guiGetText(dito),false,false) end end end )
  5. Serial = { ["Serial"] = true, } bindKey ( "o", "down", function ( ) if Serial[getPlayerSerial(localPlayer)] then guiSetVisible (GUIEditor.window[1],not guiGetVisible (GUIEditor.window[1])) showCursor (guiGetVisible (GUIEditor.window[1])) else outputChatBox ( "لا تملك التصريح لـفـتح نـظـام الإسـتـئـجـار", math.random( 255 ), math.random( 255 ), math.random( 255 ), true) end end)
  6. شغل كود اوسكر ^
  7. Adham

    تعديل

    guiGridListSetItemText(mywind[5],row1,column,"1 min", false, false) guiGridListSetItemColor ( mywind[5], row1, column, 0, 0, 255 ) guiGridListSetItemText(mywind[5],row2,column,"2 min", false, false) guiGridListSetItemColor ( mywind[5], row2, column, 0, 0, 255 ) guiGridListSetItemText(mywind[5],row3,column,"3 min", false, false) guiGridListSetItemColor ( mywind[5], row3, column, 0, 0, 255 ) guiGridListSetItemText(mywind[5],row4,column,"4 min", false, false) guiGridListSetItemColor ( mywind[5], row4, column, 0, 0, 255 ) guiGridListSetItemText(mywind[5],row5,column,"5 min", false, false) guiGridListSetItemColor ( mywind[5], row5, column, 0, 0, 255 ) ^ سوي Table -- جدول من برا مود جيدتور عشان لو سجنته تقدر تودي السجن
  8. Adham

    تعديل

    انت وش تبي تسوي بظبت ؟ ^
  9. بالنسبه , لفكشنات الفوق القلتلك عليها addEventHandler + "onClientGUIClick" if ( guiGetText ( editname ) and guiGetText ( edit ) and guiGetText ( edit ) ~= '' ) then guiGridListAddRow guiGridListSetItemText + ,guiGetText guiGridListSetItemText + ,guiGetText guiGridListSetItemText + ,guiGetText triggerServerEvent executeSQLQuery -- لحفظ الكلام الفي القريد لست لين يطلع ويخش triggerClientEvent
  10. عندي فكره لك , تعمل 3 ايدات واذا يضعط علي بطن يجي الكلام في ال3 الرو الفي الكلوم الفي قريد لست في اللوحة التانيه ,
  11. Adham

    تعديل

    addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == jail ) then executeCommandHandler("jail",source) end end)
  12. Adham

    تعديل

    ^ triggerClientEvent
  13. Adham

    تعديل

    أعتقد ذا طلبك لو طلع طلبك صح كمل انت ^ addEventHandler("onClientGUIClick",resourceRoot, function () if ( source == mywind[11] ) then local se = guiGridListGetItemText ( mywind[11], guiGridListGetSelectedItem ( mywind[11] ), 1 ) if Se and Se ~= -1 then triggerServerEvent ("slap",localPlayer) end end )
  14. Adham

    تعديل

    شف كذا addEventHandler("onClientGUIClick",resourceRoot, function ( player ) if ( source == jail ) then executeCommandHandler("jail",player) end end) او addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == jail ) then executeCommandHandler("jail",localPlayer) end end)
  15. Adham

    تعديل

    وضح اكثر
  16. جرب ذا GUIEditor = { button = {}, window = {}, label = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 315) / 2, (screenH - 168) / 2, 315, 168, ":: تاج في الشات ::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF1BE0D") GUIEditor.edit[1] = guiCreateEdit(100, 38, 177, 20, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(100, 107, 177, 20, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(14, 39, 72, 19, " -< التاج >- ", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(4, 108, 90, 19, "-< لون الكلام >-", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(306, 24, 0, 15, "", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(283, 24, 23, 19, "X", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF") GUIEditor.button[3] = guiCreateButton(10,140, 95, 17, "-< تفعيل التاج >-", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFFFFFF") GUIEditor.button[4] = guiCreateButton(10+95, 140, 95, 17, "-< حذف التاج >-", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFFFFFF") GUIEditor.label[3] = guiCreateLabel(104, 68, 140, 15, "~~~~~~~~~", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "sa-gothic") guiLabelSetColor(GUIEditor.label[3], 239, 200, 21) GUIEditor.label[4] = guiCreateLabel(100, 88, 186, 15, "مثال لون التاج >> الاحمر FF0000#", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 254, 254, 254) GUIEditor.label[5] = guiCreateLabel(204, 141, 117, 17, "Created By #Saed", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 254, 5, 5) end ) addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[5] and guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == true then guiSetVisible( GUIEditor.window[2], true) elseif source == GUIEditor.checkbox[5] and guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == false then guiSetVisible( GUIEditor.window[2], false) end end
  17. افهمني انا عامل مود تاقات فيه مكان ايديت يكتب في اسم الحساب عشان يعطي تاق والتاني مكان ايديت عشان يكتب في التاق ويضعط علي button عشان يفعل له تاق وbutton اخر عشان يشيل التاق فا انا عاوز ما يعمل باسم الحساب يعني لو حد دخل علي اللوحة يكتب في الايديت التاق ويضعط علي button ومفيش اسم حساب
  18. سلام عليكم انا مسوي مود تاقات يكتب اسم حساب الاعب بعدين التاق بعدين يضعط علي ال button يعطيه تاق فا انا عاوز اعملو يكتب اسم التاق فقط ويدي لنفسو مب لحد#
  19. انا عامل رنت سيستم وضايف قريد لست قدول فيه اول شي اسم العربيه والتاني اي دي السياره بعدين عاوز اليحدد شي عليه ويضعط علي ال button ينزل سياره علي حسب الاي دي
  20. ما تنزل مركبة
  21. TableList = { {"Alpha", 602}, {"Banshee", 429}, {"Buffalo", 402}, {"Bullet", 541}, {"Flatbed", 455}, {"Forklift", 530}, {"Linerunner", 403}, {"Packer", 443}, {"Roadtrain", 515}, {"Sweeper", 574}, {"Tanker", 514}, {"Towtruck", 525}, {"Trashmaster", 408}, {"Utility van", 552}, {"Benson", 499}, {"Black Boxville", 609}, {"Bobcat", 422}, {"Boxville", 498}, {"Maverick", 487}, {"News Chopper", 488}, {"Police Maverick", 497}, {"Raindance", 563}, {"Sparrow", 469}, {"Beagle", 511}, {"Cropduster", 512}, {"Dodo", 593}, {"Nevada", 553}, {"Rustler", 476}, {"Shamal", 519}, {"Skimmer", 460}, {"Stuntplane", 513} }
  22. ما ابيها بفلوس
  23. سلام عليكم اتا قريد لست فيه اسم السياره واي دي ظاهر عادي انا عاوز لما يحدد شي بالقريد لست يجي السياره الكود العملتو بس ما ظبت for i , v in ipairs ( TableList ) do Row = guiGridListAddRow ( gridlist ) guiGridListSetItemText( gridlist,Row ,1,v[1],false,false); guiGridListSetItemText( gridlist,Row ,2,v[2],false,false); guiGridListSetItemData ( gridlist , Row , 1 , v[3] ) end addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == CreatedCar then local Se = guiGridListGetSelectedItem( gridlist ) if Se and Se ~= -1 then local iD = guiGridListGetItemData ( gridlist , Se , 1 ) triggerServerEvent ( "GiveVehicle",localPlayer , ID ) end end end ) ; سرفر local table = { } addEvent("GiveVehicle" ,true) addEventHandler("GiveVehicle" ,root, function ( id ) if isElement( table[ source ] ) then destroyElement ( table[ source] ) end PosX , PosY , PosZ = getElementPosition ( source ) takePlayerMoney( source , tonumber ( Money ) ) table[ source ] = createVehicle( id , PosX , PosY , PosZ ) outputChatBox("* تم شراء الشخصيه",source ,0,255,0,false) end end ) ;
  24. انا ماني افهم فيه ما في طريقه تانيه؟
×
×
  • Create New...