Jump to content

Mr.R

Members
  • Posts

    775
  • Joined

  • Last visited

Everything posted by Mr.R

  1. هذا طلبك كامل + لم تتم التجربه 12, 19, 27 في سطر Number باحداثيات المكان الي تبي الاعب ينتقل لها + بدل كلمة x, y, z ملاحظه : سطر 10 بدل برقم الدمنيشين الي تبيه local marker = createMarker ( 9138, -2871.1999511719, 1.6000000238419, "cylinder", 3, 25, 151, 178, 255 ) local Vehicles = { 480, 411, 412, 413, 414, 415 }; local VehiclePlayer = { }; addEventHandler ( "onMarkerHit", marker, function ( player ) if ( getElementType ( player ) == "player" ) then if not ( isPedInVehicle ( player ) ) then setElementPosition ( player, x, y, z ) if ( getElementDimension ( player ) == 0 ) then setElementDimension ( player, Number ) if ( isElement ( VehiclePlayer [ player ] ) ) then destroyElement ( VehiclePlayer [ player ] ) end local Model = Vehicles [ math.random ( #Vehicles ) ] VehiclePlayer [ player ] = createVehicle ( Model, 9138, -2871.1999511719, 1.6000000238419 ) warpPedIntoVehicle ( player, VehiclePlayer [ player ] ) setElementDimension ( VehiclePlayer [ player ], Number ) end end end end, false ) addEventHandler ( "onVehicleStartExit", resourceRoot, function ( player ) if ( getElementDimension ( VehiclePlayer [ player ] ) == Number ) and ( getElementDimension ( player ) == Number ) then cancelEvent ( ) end if ( isElementInWater ( player ) ) then killPed ( player ) end end ) @Abdul KariM This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. Please use isElementInWater instead.
  2. ويحتاج جدول عشان السياره لان السياره مو له بس الكل بيقدر ياخذ سيارهـ table أطرح محاولتك ,
  3. قصدك سيارهـ خاصه فيك ؟ وماتتفجر ؟ هذي الفنكشنات addCommandHandler isElement getPlayerSerial createVehicle setElementPosition setVehicleDamageProof outputChatBox -- وبالنسبه , ان الاعب مايموت داخل السيارهـ تسختدم هذي الفنكشنات triggerClientEvent Event : "onClientPlayerDamage" isPedInVehicle cancelEvent ( ) اطرح محاولتك ء
  4. if ( getElementDimension ( Player) == 30 ) then outputChatBox("تم دخول الديربي بنجاح",255,0,0) end ) كذا مظبوط ؟ وين الحدث + الوظيفه البلاير مو معرف لازم تعرفه زي كذا مثلا function ( Player )
  5. Mr.R

    كود

    عهههههههههههههههههههههههههههههه تخيلت كلام شاطح هههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه
  6. Mr.R

    طلب

    طيب على الاقل حاول ونصحح لك -_____-" كل مره بتطلب جاهز ماراح تتعلم ولا راح تكسب خبره ولو كانت بسيطه ولا اي شيء
  7. Mr.R

    تعديل#

    طيب هذا الكود , صلحته وجربته اشتغل تمام , بس فيه مشكله وحده ماعرفت احلها وتواجهني دايماً وهي اي شيء اضغطه يطفي الصوت , المفروض الزر نفسه لما اضغطه مره ثانيه يطفي الصوت ^ ياليت تفيدنا addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then if not ( isPedInVehicle ( localPlayer ) ) then return outputChatBox ( "* الرجاء ركوب السيارهـ", 255, 255, 255, true ) end if isElement ( Sound ) then destroyElement ( Sound ) end Sound = playSound ( "مسار الصوت" ) else if isElement ( Sound ) then stopSound ( Sound ) Sound = nil end end end )
  8. Mr.R

    تعديل#

    نخليه يحآول , ونخلي غيره يحاول ولا تزعل وش الخطأ -____- >??
  9. Mr.R

    تعديل#

    الي فهمته من كودك وكلامك انك تبيه يشغل ويطفي الصوت من نفس الزر + مايشتغل الصوت الا اذا كان الاعب داخل سياره جرب #Client addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then if not ( isPedInVehicle ( localPlayer ) ) then return outputChatBox ( "* الرجاء ركوب السيارهـ", 255, 255, 255, true ) end if isElement ( Sound ) then destroyElement ( Sound ) end Sound = playSound ( "مسار الصوت", true ) else if isElement ( Sound ) then destroyElement ( Sound ) Sound = nil end end end )
  10. انا اكتبه فالنوت باد ويعطيني خيارات واخترت ذا سريع سريع وهي تتشابه بعد عرفت ههههههء تم التعديل ومشكور عالتنبيه ^
  11. Event : "onPlayerLogin" -- حدث اول مايسجل triggerClientEvent -- ترايقر لـ كلنت guiSetEnabled -- تفتح له الزر
  12. خل التاج له حد معين يعني مثلا مايتعدا 12 حروف , مافيه الا ذا الحل اسم الاعب الافتراضي من اللعبه نفسها 21 حرف ( للمعلوميه بس ) ء
  13. عندكـ خطأ بسـيط في الحـدث والتـحقق: addEventHandler ( 'onClientMarkerHit', resourceRoot, function ( player ) if (source == marker and getElementType (player) == 'player' and player == localPlayer) then setElementFrozen (player, true) end end) الكود مايبيله شي , خخخخ الحدث نسخته ونسيت اعدله , ماني فاضي اكتبه مشكور
  14. واي فاي كودك غلط اولاً البلاير مو معرف ثانياً ماتحققت ان الي دخل الماركر لاعب تفضل ياصاحب الموضوع , حطه من جانب كلينت local marker = createMarker ( x, y, z, "type", size, r, g, b, alpha ) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( player ) if ( player == localPlayer ) then if ( source == marker ) and ( getElementType ( player ) == "player" ) then setElementFrozen ( player, true ) end end end ) x, y, z = احداثيات الماركر type = نوع الماركر size = حجم الماركر r, g, b = الوان الماركر alpha = شفافية الماركر Ex. createMarker ( 931.78, 1564.12, 16.96, "cylinder", 2, 255, 0, 255, 0 )
  15. ^ سطر 9 امسح اسم الوظيفه
  16. صراحه جبت الواقع 100% ياكور ههههههههههههههههههههههه وانا متأكد انك تعرف للفنشكن هذا setPlayerName لانه من اسهل الفنكشنات ولاكن زي ماقلت انت
  17. تسويه بهذا الفنكشن setTimer أطرح محاولتك , وانشاء الله بساعدك
  18. addEventHandler ( "onPlayerChat", root, function ( Message, type ) if not ( isGuestAccount ( getPlayerAccount ( source ) ) ) then if ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Police" ) ) ) then if ( type == 0 ) then if ( Message:find ( "تنظيم" ) ) then setElementModel ( source, رقم السكن ) outputChatBox ( "لقد حصلت على سكن", source, 0, 255, 0, true ) end end end end end )
  19. تمام بس بدي كل دقيقه يتغير بروحه بدون ما اكتب في اف8كيف ؟؟ هذا مجرد مثال أطرح محاولتك وبساعدك انشاء الله
  20. ممكن مثل او شرح ؟ : مثال addCommandHandler ( "تغيير", function ( ) outputChatBox ( "! تم تغيير الكلام", 255, 255, 255, true ) setTimer ( function ( ) guiSetText ( اسم الليبل, "الكلام الي تبيه يتغير" ) end, 5000, 0 ) end )
×
×
  • Create New...