Jump to content

Master_MTA

Members
  • Posts

    3,389
  • Joined

  • Last visited

  • Days Won

    55

Master_MTA last won the day on June 30 2020

Master_MTA had the most liked content!

About Master_MTA

  • Birthday 13/05/1999

Details

  • Gang
    N/A
  • Location
    Egypt
  • Occupation
    -
  • Interests
    Programming

Recent Profile Visitors

11,417 profile views

Master_MTA's Achievements

Hoo-Rider

Hoo-Rider (42/54)

1.1k

Reputation

  1. استخدم getElementData في هذا الايفنت onClientPlayerWeaponSwitch عشان تشيك عليه هوا برا ولا داخل الدايره لو انت ما تبي تسحب كل اسلحته فاستخدم getElementData+ cancelEvent
  2. onMarkerHit -- لما يخش الماركر onMarkerLeave -- لما يطلع من الماركر takeAllWeapons -- لو تبي انه يشيل كل اسلحته وما ترجعله setPedWeaponSlot -- لو تبي يحطله faist setElementData -- عشان تحط عليه داتا لما يطلع removeElementData -- عشان تشيل الداتا من عليه لما يخش الماركر onClientPlayerWeaponSwitch -- لما يغير السلاح cancelEvent -- عشان يكنسل الايفنت بالتوفيق
  3. اقدر جهدك لكن هذي خبصه يا غالي الفنكشن اولا لازم يكون له نوع معرفه وهو asynchronous او الغير متزامن اتوقع كذه ترجمته المهم لصاحب الموضوع تفضل هالرابط بيفيدك باذن الله https://stackoverflow.com/questions/33234403/using-setinterval-in-c بالتوفيق للجميع
  4. other sol you can use ajax but it's not that good idea
  5. عودة شامله من جديد للاستضافه حياكم الله الصفحه الرئيسية https://www.facebook.com/Masters-Host-517054055366086/ 2- الدسكورد https://discord.gg/5v3TJQa 3- اللوحة http://161.97.90.192/ يرجى التواصل معنا عبر هذي ال 3 صفحات فقط الى حين الانتهاء من الموقع http://masters-host.com/ الان العرض الخرافي اي سيرفر باي خطه كل شي ب 0.99 للشهر الاول يب زي ما سمعتم ب 10 ريال سوا ب 20 جنيه فودافون مصري والافظع مب صافي فقط كرتين فودافون 10 ما يحتاج صافي والسوا نفس الشي بطاقه 1 فقط paypal-0.99 skrill-0.99 لكم ان تتخيلو five m - mta sa -counter strike -mine craft - اي لعبة في ogp باذن الله نقوم بتوفيرها اذا كان بالامكان 8 gb ram shared 4 core cpu share storage up to 190 gb shared مب بس كذا لا نوفر ايضا تجربة الخدمة المراده قبل الشراء لمدة 1 ساعه وتقرر هل تشتري او لا ما ادري وش اللي يخليكم ما تشترو خدمه مثل كذا وكما عودناكم باذن الله الخادم ربع سنوي شارينه لمدة 3 شهور عشان حقوق الناس وفقنا الله واياكم يا رب
  6. yeah that will solve the problem but not gonna fix the function this function need to be fixed
  7. function getPositionBackOfElement(element, meters) if (not element or not isElement(element)) then return false end local meters = (type(meters) == "number" and meters) or 3 local posX, posY, posZ = getElementPosition(element) local _, _, rotation = getElementRotation(element) posX = posX + math.sin(math.rad(rotation)) * meters posY = posY - math.cos(math.rad(rotation)) * meters rot = rotation - math.cos(math.rad(rotation)) return posX, posY, posZ , rot end function getPositionFrontOfElement(element, meters) if (not element or not isElement(element)) then return false end local meters = (type(meters) == "number" and meters) or 3 local posX, posY, posZ = getElementPosition(element) local _, _, rotation = getElementRotation(element) posX = posX - math.sin(math.rad(rotation)) * meters posY = posY + math.cos(math.rad(rotation)) * meters rot = rotation + math.cos(math.rad(rotation)) return posX, posY, posZ , rot end function isPlayerBehindPlayer( source,player ) local x,y,z = getElementPosition( source ) local x1,y1,z1 = getElementPosition( player ) local cx,cy,cz=getPositionBackOfElement(source, 500) local dist = getDistanceBetweenPoints3D( x,y,z,cx,cy,cz ) local dist1 = getDistanceBetweenPoints3D( x1,y1,z1,cx,cy,cz ) if dist1<dist then return true end return false end function isPlayerInFrontPlayer( source,player ) local x,y,z = getElementPosition( source ) local x1,y1,z1 = getElementPosition( player ) local cx,cy,cz=getPositionFrontOfElement(source, 500) local dist = getDistanceBetweenPoints3D( x,y,z,cx,cy,cz ) local dist1 = getDistanceBetweenPoints3D( x1,y1,z1,cx,cy,cz ) if dist1<dist then return true end return false end يتحقق اذا كان اللاعب اللي تبي قدام او ورا اللاعب اللي تبي
  8. i did it by another way and i would like to share it function getPositionBackOfElement(element, meters) if (not element or not isElement(element)) then return false end local meters = (type(meters) == "number" and meters) or 3 local posX, posY, posZ = getElementPosition(element) local _, _, rotation = getElementRotation(element) posX = posX + math.sin(math.rad(rotation)) * meters posY = posY - math.cos(math.rad(rotation)) * meters rot = rotation - math.cos(math.rad(rotation)) return posX, posY, posZ , rot end function isPlayerBehindPlayer( source,player ) local x,y,z = getElementPosition( source ) local x1,y1,z1 = getElementPosition( player ) local cx,cy,cz=getPositionBackOfElement(source, 500) local dist = getDistanceBetweenPoints3D( x,y,z,cx,cy,cz ) local dist1 = getDistanceBetweenPoints3D( x1,y1,z1,cx,cy,cz ) if dist1<dist then return true end return false end ++ https://wiki.multitheftauto.com/wiki/GetPedTarget ++ https://wiki.multitheftauto.com/wiki/OnPlayerWeaponFire ++ https://wiki.multitheftauto.com/wiki/KillPed and health functions and so on
×
×
  • Create New...