Jump to content

تعدديل كوود


Recommended Posts

السسلام عليككم ورحمةة الله

ابي تعديل لهاذا الكود

function walktheprisoner(theplayer, dog1) 
        local playerx, playery, playerz = getElementPosition ( theplayer ) 
        local dogx, dogy, dogz = getElementPosition ( dog1 ) 
        playerangle = ( 360 - math.deg ( math.atan2 ( ( copx - dogx ), ( copy - dogy ) ) ) ) % 360 
        setPedRotation ( dog1, playerangle ) 
        setCameraTarget ( dog1, dog1 ) 
        local dist = getDistanceBetweenPoints2D ( copx, copy, dogx, dogy ) 
        if ( dist > 16 ) then 
            freetheguy ( dog1 ) --FREES PRISONER IF HE GETS FAR AWAY 
        elseif ( dist > 12 ) then 
            setControlState ( dog1, "sprint", true ) 
            setControlState ( dog1, "walk", false ) 
            setControlState ( dog1, "forwards", true ) 
            local zombify = setTimer ( walkdog1, 500, 1, theplayer, dog1 ) 
    end 
end 

انا ماخذة من مود وعدلت عليه عشان يكون الى شخصية وهمية هو كان في مود شرطه

احين يوم تشتري الشخصيه تطلع جنبك بس ماتلحقك ابي تعديل للكود عشان تلحقك الشخصيه

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...