Jump to content

Mr.R

Members
  • Posts

    775
  • Joined

  • Last visited

Everything posted by Mr.R

  1. بيض الله وجهك واستمر إلى الامام <3
  2. تفضل هذا الكود , مسويه من زمان ومجرب وشغال 100% ملاحظه : سطر 10 بملف سيرفر غير رقم 411 بايدي السيارهـ الي تبيها #Client addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == اسم الزر ) then triggerServerEvent ( "GiveVehicle", localPlayer ) end end ) #Server local Vehicle = { }; addEvent ( "GiveVehicle", true ) addEventHandler ( "GiveVehicle", root, function ( ) if ( Vehicle[source] ) and ( isElement ( Vehicle[source] ) ) then destroyElement ( Vehicle[source] ) end local x, y, z = getElementPosition ( source ) Vehicle[source] = createVehicle ( 411, x, y, z ) warpPedIntoVehicle ( source, Vehicle[source] ) if ( getPlayerMoney ( source ) >= 2000 ) then takePlayerMoney ( source, 2000 ) outputChatBox ( "* تم شراء السيارهـ بنجاح", source, 255, 255, 255, true ) else outputChatBox ( "* لا تملك المال الكافي لـ شراء السيارهـ", source, 255, 255, 255, true ) end end )
  3. والله ماكنت ادري , انا استغربت ماشفته حدد اي ماركر + مشكور عالمعلومه هذي شفتها بالويكي بس عادي حتى لو حطيتها ماتضر , زياده على الفاضي ض1 لاكن شلناها لعيونك + وصلحت الكود
  4. local marker = createMarker ( x, y, z, "cylinder", size, r, g, b, alpha ) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( player ) if ( source == marker ) and ( player == localPlayer ) then guiSetVisible ( اسم اللوحه, true ) showCursor ( true ) end end )
  5. ما انصحك هههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه هههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه ههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه
  6. اهنيييك , والله مبدع والى الامام ولا توقف ولا تحرمنا من جديدك $
  7. انا فاهم قصدك زر اسمه ريموف اذا ضغطه يموت , كان موجود على ايام البيس مود عموماً تفضل #Client addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == اسم الزر ) then triggerServerEvent ( "Kill", localPlayer ) end end ) #Server addEvent ( "Kill", true ) addEventHandler ( "Kill", root, function ( player ) killPed ( player ) outputChatBox ( "* تمت ازالتك", player, 255, 255, 255, true ) end )
  8. والله ادور الفنكشن ذا من زمان , ياليت تطرحه او اي احد يطرحه لاني ما ادري وش قصدك بس الألمنت واللايت
  9. فايدته انك تتعلم منه , وتسال وتستفسر منه لين ترتفع خبرتك ماتجي تطلب جاهز وتسوي مودات نسخ لصق وتروح , بكذا عمرك كله ماراح تتعلم حتى لو 5% واساسيات البرمجه بعد ء الله يهديك بس لازم تتعلم مو كل مره تطلب جاهز
  10. تراني مافهمت قصدك بالضبط , ياليت تقوله حطها كذا بجانب كلنت Command = "F10" bindKey ( Command, "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end )
  11. بالطريقه ذي ينفع ايه
  12. تفضل , جرب wnd1 , wnd2 ولا تحط لوكال على wnd1 = createOrderWindow_BTN = "F10" wnd2 = manageRent = "manageRent" bindKey ( createOrderWindow_BTN, "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) addCommandHandler ( manageRent, function ( ) guiSetVisible ( GUIEditor.window[2], not guiGetVisible ( GUIEditor.window[2]) ) showCursor ( guiGetVisible ( GUIEditor.window[2] ) ) end ) الاعدادات Settings = { wnd1 = "F10", wnd2 = "manageRent" } اذا قصدك يغير الزر او الكوماند من لوحة الادمنيه ضيف هذا لـ الميتا "*wnd1" value = "F10" desc = "Key to Open Window."/> "*wnd2" value = "manageRent" desc = "Command to Open Window."/>
  13. خذ ذا مثال ع طلبك اي شيء منت فاهمه , تفضل اسأل thePhoto = guiCreateStaticImage ( ... ) local PlayersAndPhotos = { { "Mr.R", "1.png" }, { "Le3bA", "2.png" }, { "Adham", "3.png" } } addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GridList ) then if ( guiGridListGetSelectedItem ( GridList ) ~= -1 ) then local GetSelected = guiGridListGetItemText ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ) if ( GetSelected ~= '' ) then guiStaticImageLoadImage ( thePhoto, " ".. GetSelected .." .png" ) end else guiStaticImageLoadImage ( thePhoto, "0.png" ) end end end )
  14. الله يهديك , ماقلت لك اطرح اكواد اللوحه , اطرح محاولتك عن الشيء الي تبي تسويه , وآبشر
  15. أطرح محاولتك , وبساعدك
  16. والله مدري ولاكن جرب كذا , حسب الي فهمته من الويكي انه يقول تحقق من رصاص السلاح addEventHandler ( "onClientMarkerHit", root, function ( hitting ) if ( source == woodMark ) and ( hitting == localPlayer ) then if ( getElementData ( hitting, "Occupation" ) == "Wood-Jop" ) and not ( isPedInVehicle ( hitting ) )then if ( getPedTotalAmmo ( hitting ) == nil ) then return end if ( getPedWeapon ( hitting ) and ( getPedWeaponSlot ( hitting ) ) == 9 ) then bindKey ( "N","down", startJob2 ) end end end end )
  17. local marker = createMarker ( 3050.78467, -1484.73096, 16.32500, "arrow", 2, 255, 255, 0 ) createBlipAttachedTo ( marker, 53 ) addEventHandler ( "onMarkerHit", marker, function ( player ) if ( getElementType ( player ) == "player" ) then if ( getElementDimension ( player ) == 0 ) then setElementDimension ( player, 30 ) setElementPosition ( player, 3160.18994, -1703.16089, 1.31431 ) end end end, false )
  18. اتوقع الكود كذا < ماني متأكد ياليت تشوف دايماً قبل لا تفكر تسوي شيء , امثله الويكي لانها غالبا نفس طلبك addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) if ( isTransferBoxActive ( ) == true ) then fadeCamera ( false ) else fadeCamera ( true ) end end )
  19. ^ تم التعديل السطر الاول تحقق لا اكثر بس عدلناهـ ولا تزعل <3
  20. Mr.R

    مشكلة

    تفضل الاكواد مجربه #Client GUIEditor = { window = { } } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow ( 171, 199, 476, 149, "Car", false ) guiWindowSetSizable ( GUIEditor.window[1], false ) guiSetVisible ( GUIEditor.window[1], false ) Repair = guiCreateButton ( 40, 60, 162, 38, "Repair", false, GUIEditor.window[1] ) guiSetProperty ( Repair, "NormalTextColour", "FFAAAAAA") Nitro = guiCreateButton ( 257, 60, 162, 38, "Nitro", false, GUIEditor.window[1] ) guiSetProperty ( Nitro, "NormalTextColour", "FFAAAAAA" ) end ) bindKey ( "F5", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) addEventHandler("onClientGUIClick",root, function ( ) if ( source == Repair ) then triggerServerEvent ( "buyRpr", localPlayer ) elseif ( source == Nitro ) then triggerServerEvent ( "buyNitro", localPlayer ) end end ) #Server addEvent ( "buyRpr", true) addEventHandler ( "buyRpr", root, function ( ) if ( isPedInVehicle ( source ) ) then if ( getPlayerMoney ( source ) >= 5000 ) then takePlayerMoney ( source, 5000 ) fixVehicle ( getPedOccupiedVehicle ( source ) ) outputChatBox ( getPlayerName ( source ) .." Has bought [ Repair ]", root, 255, 255, 255, true ) end end end ) addEvent ( "buyNitro", true) addEventHandler ( "buyNitro", root, function ( ) if ( isPedInVehicle ( source ) ) then if ( getPlayerMoney ( source ) >= 5000 ) then takePlayerMoney ( source, 5000 ) addVehicleUpgrade ( getPedOccupiedVehicle ( source ), 1010 ) outputChatBox ( getPlayerName ( source ) .." Has bought [ Nitro ]", root, 255, 255, 255, true ) end end end ) @Le3bA ناقصك اند , حطها سطر 24 ماهي معرفه rootElement و
×
×
  • Create New...