MrCor
Members-
Posts
159 -
Joined
-
Last visited
Everything posted by MrCor
-
شباب أنا حاليا أتعلم وتعلمت الكثير منكم وبالأخص الأخ عناد و شكرا له بس أبي أعرف كيف استخدم الأند end وماهي الأكود الي لا أنهيها بأند وشكرا
-
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 ) المطلوب الآن معرفة الخطأ لأن البيد لا يظهر
-
انا شايف من قبل مود لوحه فيها فيديو بس ما حملته و لاشفت طريقة عمله
-
بسم الله الرحمن الرحيم اليوم سويت كود بس طلع غلط ما يشتغل و حاولت حل شي و هذا الكود شوفوه 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 ) عمل الكود : بيد أذا أحد تقرب منه بسياره و شرطي يسوي أنميشن
-
عناد ليش لم يطلق على أحد بس هو الي يشوفه يطلق من ملف الكلنت ؟؟
-
خلاص عناد تم حل كل المشاااكل شكرا عناد أنت أحسن واااحد
-
عناد عرفت المشكلة مايقتل أنه يحاول يطلق بس ما يطلق لازم تستنى شوي عشان يرجع يطلق
-
أسف عناد تم حل كل المشاكل بس باقي التيم حطيت أسم اليتم صار ما يقتل أحد و أكتشفت مشكلة جديد أنه أذا يطلق على واحد أنا ما أشوفه يطلق بس هو
-
الحين أنحلت بس مشكلة وحده الحين صار يقتل على طول من تدخل الدائرة . زين بس للحين من يقتل واحد خلاص ما يطلق !!
-
أنا سويت كود من قبل و طلع طله أخطااء و قلت مافي الا المنتدى يساعدني أنتظر الأخ عناد
-
أنا أعرف أسوي أكواد عاديه بس هذا ما عرفت له صعب عشان كذا سويت الموضوع أنا من الخبر
-
خوك أنت مسوي كيل تايمر حق أعطاء السلاح
-
هذا الكود المطلوب : أبي البيد يقتل تيم معين أبيه يقتل الي يدش الماركر على طول هو الحين يقتل الي يضربه داخل الماركر مشكلة : البيد لم أحد يضربه يطلق عليه ويقتله وبعدين خلاص يوقف مايطلق على أحد حتى لو ضربه 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 )
-
ما أقصد كذا أنا جربته في سيرفر رحت حق الماركر ما ضربني ضربته طلق علي و بعدين يوقف خلااص يعني لم يقتل واحد خلاص يصير ما يطلق
-
لا ... هو يقتل أي أحد يضربه في الماركر أنا جربته
-
شكرا خوك الحين باقي أبيه يقتل على طول من أحد يدش الماركر
-
هذا الكود سويته حق التيم وصارت فيه مشكلة أرجو التعديل الكود من سواه طلال ليي و عدل عليه عناد المطلوب : البيد يطلق على اللاعب من يدخل الماركر على طول البيد يقتل تيم معين 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 )