Jump to content

متا احط player


Recommended Posts

السلام عليكم

شباب انا ابي شرح الحين اشوف بعض الافنت و الفنكشنات

انا احط فيها سورس تخرب

ولما يجي واحد يصلحها لي اشوفه يحط player

وبعض الاحيان احط player

يخرب واشوفه يحط

source

!! انلحست

يعني وش فنكشنات او افنتات محدده ماتقبل الا سورس مثلا !

تكفون واحد يشرحلي

Link to comment

هذا يعتمد على الأفنت نفسه

تقدر تعرف من الويكي

مثلاً الأفنت

https://wiki.multitheftauto.com/wiki/OnMarkerHit

هو الماركر الي دخلت فيه source في الأفنت ذا الـ

وهو العنصر الي دخل الماركر hitElement أما البارتمر موجود

العنصر ممكن يكون لاعب و ممكن يكون سيارة او حتى اوبجيكت

+

موجود شرح عن البارتمر هنا

https://forum.multitheftauto.com/viewtopic.php?f=164&t=59629

Link to comment

هذا شيء محدد من الويكي كل حدث ولة سورس هذي بعض الامثلة حدث :

onMarkerHit :

The source of this event is the marker that got hit by the element. ( الماركر اللي انلمس )

مكتوب بـ الويكي .. Source

onPlayerMarkerHit :

The source of this event is the player that hit the marker. ( الاعب اللي لمس الماركر )

من الويكي .. Source

onPlayerVehicleEnter :

The source of this event is the player that entered the vehicle. ( الاعب اللي دخل السيارهـ )

onVehicleEnter :

The source of this event is the vehicle that was entered. ( السيارهـ اللي دخلها الاعب )

أتمنى تكون فهمت السالفة .. :)

Link to comment

مثلا onClientResourceStart

https://wiki.multitheftauto.com/wiki/On ... ourceStart

Source

يقولك السورس له

getRootElement( )

طيب

Parameters

startedResource: the resource that was started.

ذا ضروري تحطه بالفكششن

يعني يصير كذا

function ( startedResource )

ونفس الحالة اللي عطاك اياه تابل

hitElement

اللي يلمسس الماركر

وهيكك !!

Link to comment
مثلا onClientResourceStart

https://wiki.multitheftauto.com/wiki/On ... ourceStart

Source

يقولك السورس له

getRootElement( )

طيب

Parameters

startedResource: the resource that was started.

ذا ضروري تحطه بالفكششن

يعني يصير كذا

function ( startedResource )

ونفس الحالة اللي عطاك اياه تابل

hitElement

اللي يلمسس الماركر

وهيكك !!

موهوب ضروري اذا تحتاجة استخدمة او حطة بـ معنى أوضح ..

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