Jump to content

MrCor

Members
  • Posts

    159
  • Joined

  • Last visited

Everything posted by MrCor

  1. شباب أنا حاليا أتعلم وتعلمت الكثير منكم وبالأخص الأخ عناد و شكرا له بس أبي أعرف كيف استخدم الأند end وماهي الأكود الي لا أنهيها بأند وشكرا
  2. marker1 = createMarker ( 1544.7, -1721.4, 13.55, 'cylinder', 5, 255, 0, 0, 150 ) Ped1 = createPed ( 280, 1544.7, -1721.4, 13.55 ) attachElements ( marker1, Ped1, 0, 0, -1 ) function MarkerHit ( hitElement, matchingDimension ) if ( getElementType ( hitElement ) == "player" and isPedInVehicle ( hitElement ) ) then if ( getPlayerTeam ( hitElement ) == getTeamFromName ( "police" ) ) then setPedAnimation ( ped1, "ped", "CopTraf_Come" ) end end end addEventHandler ( "onMarkerHit", marker1, MarkerHit ) المطلوب الآن معرفة الخطأ لأن البيد لا يظهر
  3. بدوره لك أنشاء الله أحصله
  4. انا شايف من قبل مود لوحه فيها فيديو بس ما حملته و لاشفت طريقة عمله
  5. شباب أحد يسوي ليي كود الخروج من الماركر حق نفس الكود
  6. أنت شوف الكود وبتفهم ! أنا أبيه اذا أحد قرب من البيد و كان عنده سياره و من تيم معين يسوي البيد أنميشن
  7. بسم الله الرحمن الرحيم اليوم سويت كود بس طلع غلط ما يشتغل و حاولت حل شي و هذا الكود شوفوه marker1 = createMarker(1544.7, -1721.4, 13.55, 'cylinder', 5, 255, 0, 0, 150) Ped1 = createPed ( 280, 1544.7, -1721.4, 13.55 ) attachElements ( marker1, Ped1, 0, 0, -1 ) function MarkerHit( hitElement, matchingDimension ) local elementType = getElementType( hitElement ) if isPedInVehicle ( thePlayer ) then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "police" ) then setPedAnimation( ped1, "ped", "CopTraf_Come") end end addEventHandler( "onMarkerHit", marker1, MarkerHit ) عمل الكود : بيد أذا أحد تقرب منه بسياره و شرطي يسوي أنميشن
  8. تسلم عاشق الشرق
  9. أحد يقول ليي كيف أحط له الأحداثيات لأن المثال الموجود مو موضح كيف
  10. السلام عليكم ورحمة الله و بركاته شباب أبي كود يحد أتجاه البيد يعني مثلا أنا أبي أفره لليمين شوي وشكرا
  11. عناد ليش لم يطلق على أحد بس هو الي يشوفه يطلق من ملف الكلنت ؟؟
  12. خلاص عناد تم حل كل المشاااكل شكرا عناد أنت أحسن واااحد
  13. عناد عرفت المشكلة مايقتل أنه يحاول يطلق بس ما يطلق لازم تستنى شوي عشان يرجع يطلق
  14. أسف عناد تم حل كل المشاكل بس باقي التيم حطيت أسم اليتم صار ما يقتل أحد و أكتشفت مشكلة جديد أنه أذا يطلق على واحد أنا ما أشوفه يطلق بس هو
  15. الحين أنحلت بس مشكلة وحده الحين صار يقتل على طول من تدخل الدائرة . زين بس للحين من يقتل واحد خلاص ما يطلق !!
  16. أنا سويت كود من قبل و طلع طله أخطااء و قلت مافي الا المنتدى يساعدني أنتظر الأخ عناد
  17. أنا أعرف أسوي أكواد عاديه بس هذا ما عرفت له صعب عشان كذا سويت الموضوع أنا من الخبر
  18. خوك ؟؟ انت منين ؟ السعوديه
  19. خوك أنت مسوي كيل تايمر حق أعطاء السلاح
  20. هذا الكود المطلوب : أبي البيد يقتل تيم معين أبيه يقتل الي يدش الماركر على طول هو الحين يقتل الي يضربه داخل الماركر مشكلة : البيد لم أحد يضربه يطلق عليه ويقتله وبعدين خلاص يوقف مايطلق على أحد حتى لو ضربه Server : x, y, z = 1513.3770751953, -1677.8481445313, 14.046875 thePed = createPed ( 282, x, y, z ) theMarker = createMarker ( 0, 0, 0, "cylinder", 15, 0, 0, 0, 0 ) attachElements ( theMarker, thePed, 0, 0, -1 ) setTimer ( giveWeapon, 500, 1, thePed, 30, 999, true ) addEventHandler ( "onMarkerHit", theMarker, function ( thePlayer ) if getElementType(thePlayer) == 'player' then triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePed ) outputChatBox ( "* Start Shooting !!!", thePlayer, 255, 255, 0, true ) end end ) addEventHandler ( "onMarkerLeave", theMarker, function ( thePlayer ) if getElementType(thePlayer) == 'player' then triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePed ) outputChatBox ( "* Stop Shooting !!!", thePlayer, 255, 255, 0, true ) end end ) addEvent ( "setPedWeaponAmmo", true ) addEventHandler ( "setPedWeaponAmmo", root, function ( ) setWeaponAmmo ( thePed, 30, 999 ) end ) Client addEvent ( "setPedAttacking", true ) addEventHandler ( "setPedAttacking", root, function ( thePed ) setTimer ( function ( ) x, y, z = getElementPosition ( localPlayer ) setPedAimTarget ( thePed, x, y, z ) end , 100, 0 ) setPedControlState ( thePed, "fire", true ) end ) addEvent ( "setPedStanding", true ) addEventHandler ( "setPedStanding", root, function ( thePed ) setPedControlState ( thePed, "fire", false ) for _, x3NAD in ipairs ( getTimers ( 100 ) ) do killTimer ( x3NAD ) end triggerServerEvent ( "setPedWeaponAmmo", localPlayer ) end )
  21. ما أقصد كذا أنا جربته في سيرفر رحت حق الماركر ما ضربني ضربته طلق علي و بعدين يوقف خلااص يعني لم يقتل واحد خلاص يصير ما يطلق
  22. لا ... هو يقتل أي أحد يضربه في الماركر أنا جربته
  23. شكرا خوك الحين باقي أبيه يقتل على طول من أحد يدش الماركر
  24. هذا الكود سويته حق التيم وصارت فيه مشكلة أرجو التعديل الكود من سواه طلال ليي و عدل عليه عناد المطلوب : البيد يطلق على اللاعب من يدخل الماركر على طول البيد يقتل تيم معين Server : x, y, z = 1513.3770751953, -1677.8481445313, 14.046875 thePed = createPed ( 282, x, y, z ) theMarker = createMarker ( 0, 0, 0, "cylinder", 15, 0, 0, 0, 0 ) attachElements ( theMarker, thePed, 0, 0, -1 ) setTimer ( giveWeapon, 500, 1, thePed, 30, 999, true ) addEventHandler ( "onMarkerHit", theMarker, function ( thePlayer ) if getElementType(thePlayer) == 'player' then if ( getPlayerTeam ( localPlayer ) == getTeamFromName ( "Skulls" ) ) then triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePed ) outputChatBox ( "* Start Shooting !!!", thePlayer, 255, 255, 0, true ) end end ) addEventHandler ( "onMarkerLeave", theMarker, function ( thePlayer ) if getElementType(thePlayer) == 'player' then triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePed ) outputChatBox ( "* Stop Shooting !!!", thePlayer, 255, 255, 0, true ) end end ) addEvent ( "setPedWeaponAmmo", true ) addEventHandler ( "setPedWeaponAmmo", root, function ( ) setWeaponAmmo ( thePed, 30, 999 ) end ) Client addEvent ( "setPedAttacking", true ) addEventHandler ( "setPedAttacking", root, function ( thePed ) setTimer ( function ( ) x, y, z = getElementPosition ( localPlayer ) setPedAimTarget ( thePed, x, y, z ) end , 100, 0 ) setPedControlState ( thePed, "fire", true ) end ) addEvent ( "setPedStanding", true ) addEventHandler ( "setPedStanding", root, function ( thePed ) setPedControlState ( thePed, "fire", false ) for _, x3NAD in ipairs ( getTimers ( 100 ) ) do killTimer ( x3NAD ) end triggerServerEvent ( "setPedWeaponAmmo", localPlayer ) end )
×
×
  • Create New...