Jump to content

مساعده


Recommended Posts

بسم الله الرحمن الرحيم

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

انا خلقت بيد وابيه يدور بمكانه كيف؟ يعني انا الحين خلقته وخليته بمكان معين ابيه يدور مابيه يوقف يدور بدون مايمشي

يعني هو واقف يدور + كيف اخلي ألأنفجار مايأثر فيه ومشكورين مقدما

Link to comment

x , y , z جرب ذا بتغيير الإحداثيات

  
ped = createPed ( 120 , x , y , z ) 
setCameraTarget(ped) 
  

او

  
ped = createPed ( 120 , x , y , z ) 
pX , pY , pZ = getElementPosition ( ped ) 
setCameraMatrix(source , pX , pY , pZ) 
  

Link to comment
x , y , z جرب ذا بتغيير الإحداثيات
  
ped = createPed ( 120 , x , y , z ) 
setCameraTarget(ped) 
  

او

  
ped = createPed ( 120 , x , y , z ) 
pX , pY , pZ = getElementPosition ( ped ) 
setCameraMatrix(source , pX , pY , pZ) 
  

هذا يجي برا النافذه او برا الصوره انا يكون داخل الصوره او النافذه

او يعني مو لازم يكون مربوط في النافذه يكون فوق النافذه او فوق الصوره ياريت فهمت علي

ولاهنت على الرد

Link to comment

إيه نفس الطريقة لكن الفرق انكـ تخليه يطير بالجو و تجمده على شأن مايطيح

  
  ped = createPed( 120, x , y , z ) 
  setElementFrozen(ped, true) 
  pX , pY , pZ = getElementPosition(ped) 
  setCameraMatrix ( source , pX , pY , pZ ) 
  

وإذا تبيه يتحرك استخدم معه ذا

setPedAnimation 

Link to comment
إيه نفس الطريقة لكن الفرق انكـ تخليه يطير بالجو و تجمده على شأن مايطيح
  
  ped = createPed( 120, x , y , z ) 
  setElementFrozen(ped, true) 
  pX , pY , pZ = getElementPosition(ped) 
  setCameraMatrix ( source , pX , pY , pZ ) 
  

وإذا تبيه يتحرك استخدم معه ذا

setPedAnimation 

او حلو بصراحه وماقصرت لاكن

  ped = createPed( 120, -322.06091308594 , 952.46911621094 , 12.1328125 ) 
  setElementFrozen(ped, true) 
  pX , pY , pZ = getElementPosition(ped) 
  setCameraMatrix ( source , pX , pY , pZ ) 

مايوجه الكاميرا على البيد ! جربت كلينت وسيرفر

Link to comment
انت حاط بس
ped = createPed( 120, -322.06091308594 , 952.46911621094 , 12.1328125 ) 
  setElementFrozen(ped, true) 
  pX , pY , pZ = getElementPosition(ped) 
  setCameraMatrix ( source , pX , pY , pZ ) 

؟

سؤال بايخ يب بس هذا يعني وش تبيني احط زياده عليه ؟ بهار ؟ كتشب ؟

Link to comment

ججرب ذا ..

  
addEventHandler("onPlayerJoin",root, 
    function () 
        ped = createPed( 120, -322.06091308594 , 952.46911621094 , 12.1328125 ) 
        setElementFrozen( ped, true ) 
        fadeCamera ( source , true ) 
        pX , pY , pZ = getElementPosition ( ped ) 
        setTimer ( setCameraMatrix , 1000 , 1 , source , pX , pY + 2 , pZ ) 
    end 
) 
  

Link to comment
ججرب ذا ..
  
addEventHandler("onPlayerJoin",root, 
    function () 
        ped = createPed( 120, -322.06091308594 , 952.46911621094 , 12.1328125 ) 
        setElementFrozen( ped, true ) 
        fadeCamera ( source , true ) 
        pX , pY , pZ = getElementPosition ( ped ) 
        setTimer ( setCameraMatrix , 1000 , 1 , source , pX , pY + 2 , pZ ) 
    end 
) 
  

توني كنت بكتبها

و اسف على السؤال البايخ

Link to comment
ججرب ذا ..
  
addEventHandler("onPlayerJoin",root, 
    function () 
        ped = createPed( 120, -322.06091308594 , 952.46911621094 , 12.1328125 ) 
        setElementFrozen( ped, true ) 
        fadeCamera ( source , true ) 
        pX , pY , pZ = getElementPosition ( ped ) 
        setTimer ( setCameraMatrix , 1000 , 1 , source , pX , pY + 2 , pZ ) 
    end 
) 
  

:oops: موشغال :cry:

Link to comment

onPlayerJoin هذا مع إيفنت

يعني إذا دخلت تبدأ ..

مجربه عندي و شغآل =]

getElementPosition و إحداثيات الككآم تقدر تغير فيهآ بدآل

حط الإحداثيات مبآشرة ..

و هذي أكواد سيرفر +

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...