ALw7sH Posted March 1, 2013 Share Posted March 1, 2013 السسلام عليككم ورحمةة الله ابي تعديل لهاذا الكود 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
iPrestege Posted March 1, 2013 Share Posted March 1, 2013 وين اللي يلحقك اصلا؟ وكيف يلحقك؟ ؟ Link to comment
ALw7sH Posted March 2, 2013 Author Share Posted March 2, 2013 قصده يتبعه مثل الحارس يب Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now