3ssol Posted June 17, 2013 Share Posted June 17, 2013 السلام عليكم شباب انا ابي شرح الحين اشوف بعض الافنت و الفنكشنات انا احط فيها سورس تخرب ولما يجي واحد يصلحها لي اشوفه يحط player وبعض الاحيان احط player يخرب واشوفه يحط source !! انلحست يعني وش فنكشنات او افنتات محدده ماتقبل الا سورس مثلا ! تكفون واحد يشرحلي Link to comment
TAPL Posted June 17, 2013 Share Posted June 17, 2013 هذا يعتمد على الأفنت نفسه تقدر تعرف من الويكي مثلاً الأفنت https://wiki.multitheftauto.com/wiki/OnMarkerHit هو الماركر الي دخلت فيه source في الأفنت ذا الـ وهو العنصر الي دخل الماركر hitElement أما البارتمر موجود العنصر ممكن يكون لاعب و ممكن يكون سيارة او حتى اوبجيكت + موجود شرح عن البارتمر هنا https://forum.multitheftauto.com/viewtopic.php?f=164&t=59629 Link to comment
3ssol Posted June 17, 2013 Author Share Posted June 17, 2013 والله للحين ماني عارف كيف اميز ان هذا احط بلاير وهذا احط سورس Link to comment
iPrestege Posted June 17, 2013 Share Posted June 17, 2013 هذا شيء محدد من الويكي كل حدث ولة سورس هذي بعض الامثلة حدث : 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
AboShanab Posted June 17, 2013 Share Posted June 17, 2013 مثلا onClientResourceStart https://wiki.multitheftauto.com/wiki/On ... ourceStart Source يقولك السورس له getRootElement( ) طيب Parameters startedResource: the resource that was started. ذا ضروري تحطه بالفكششن يعني يصير كذا function ( startedResource ) ونفس الحالة اللي عطاك اياه تابل hitElement اللي يلمسس الماركر وهيكك !! Link to comment
iPrestege Posted June 17, 2013 Share Posted June 17, 2013 مثلا onClientResourceStarthttps://wiki.multitheftauto.com/wiki/On ... ourceStart Source يقولك السورس له getRootElement( ) طيب Parameters startedResource: the resource that was started. ذا ضروري تحطه بالفكششن يعني يصير كذا function ( startedResource ) ونفس الحالة اللي عطاك اياه تابل hitElement اللي يلمسس الماركر وهيكك !! موهوب ضروري اذا تحتاجة استخدمة او حطة بـ معنى أوضح .. Link to comment
AboShanab Posted June 17, 2013 Share Posted June 17, 2013 يب بس يعتبر شرحي صحيح ولا لا ؟ Link to comment
iMr.3a[Z]eF Posted June 17, 2013 Share Posted June 17, 2013 ^^^ أي صح شرحك بس كاتب الموضوع يبي الشرح مفهووم للي ما يعرف يبرمج مثلاً EDIT: يطريقة أسهل أنه تحط بلاير في السيرفر واللوكال بلاير بالكلاينت 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