THEKILIER Posted July 24, 2014 Share Posted July 24, 2014 السلام عليكم ورحمة الله وبركاته مثل ماتشوفون من العنوان بغيت كود ماركر الي يلمسه ينقله الى مكان الاسلحه او مكان من اختياري انشاءالله تساعدوني Link to comment
The Killer Posted July 24, 2014 Share Posted July 24, 2014 Event # 'onMarkerHit' function# createMarker getElementType isPedInVehicle -- تحقق من الاعب اذا ماكان في السياره ينقله setElementInterior Link to comment
#DRAGON!FIRE Posted July 24, 2014 Share Posted July 24, 2014 Event # 'onMarkerHit' function# createMarker getElementType isPedInVehicle -- تحقق من الاعب اذا ماكان في السياره ينقله setElementInterior قالكـ ينقله لمكان مو انـترو . Link to comment
The Killer Posted July 24, 2014 Share Posted July 24, 2014 همم طيب هو قال مكان الاسلحه , مكان الاسلحه اكيد مبنى لو كان قصده كذا انا فهمته على انه كذا لأنه ما وضح عالم اصلي او مبنى Link to comment
Simba Posted July 24, 2014 Share Posted July 24, 2014 https://forum.multitheftauto.com/viewtopic.php?f=160&t=76728 Link to comment
THEKILIER Posted July 24, 2014 Author Share Posted July 24, 2014 بوضح لكم الي ابيه انا الحين ابي اسوي الي يدخل داخل الماركر ينقله الى داخل مكان الاسلحة وماركر ثاني حق الخروج من داخل محل الاسلحه Link to comment
ALw7sH Posted July 24, 2014 Share Posted July 24, 2014 addEventHandler('onClientMarkerHit',MarkerName, function(hitplr) if getElementType(hitplr) == "player" then setElementInterior(hitplr, int, x, y, z) end end ) Link to comment
SaRy,#DanGer Posted July 26, 2014 Share Posted July 26, 2014 اضن واحد طلب مثل طلبك ورديت عليه Client Side - # myMarker1 = createMarker( 1969.1489257813, -2188.0480957031, 13.546875, 'cylinder', 2, 255, 0, 0, 150 ) ---- احداثيات الماركر function MarkerHit1( player, matchingDimension ) setElementPosition ( player, 1408.2830810547, -2489.4736328125, 13.5546875) --- مكان اله ينقلك اليه ادا دخل الماركر setElementInterior ( player , 0 ) setElementDimension ( player , 0 ) end تبي تضيف علامه في الماركر ضيف هالكود createBlip ( 1969.1489257813, -2188.0480957031, 13.546875,41,رقم العلامه) ----- الاحداثيات , رقم العلامه Link to comment
Max+ Posted July 26, 2014 Share Posted July 26, 2014 اضن واحد طلب مثل طلبك ورديت عليهClient Side - # myMarker1 = createMarker( 1969.1489257813, -2188.0480957031, 13.546875, 'cylinder', 2, 255, 0, 0, 150 ) ---- احداثيات الماركر function MarkerHit1( player, matchingDimension ) setElementPosition ( player, 1408.2830810547, -2489.4736328125, 13.5546875) --- مكان اله ينقلك اليه ادا دخل الماركر setElementInterior ( player , 0 ) setElementDimension ( player , 0 ) end تبي تضيف علامه في الماركر ضيف هالكود createBlip ( 1969.1489257813, -2188.0480957031, 13.546875,41,رقم العلامه) ----- الاحداثيات , رقم العلامه 2nd هريسه Link to comment
SaRy,#DanGer Posted July 26, 2014 Share Posted July 26, 2014 اضن واحد طلب مثل طلبك ورديت عليهClient Side - # myMarker1 = createMarker( 1969.1489257813, -2188.0480957031, 13.546875, 'cylinder', 2, 255, 0, 0, 150 ) ---- احداثيات الماركر function MarkerHit1( player, matchingDimension ) setElementPosition ( player, 1408.2830810547, -2489.4736328125, 13.5546875) --- مكان اله ينقلك اليه ادا دخل الماركر setElementInterior ( player , 0 ) setElementDimension ( player , 0 ) end تبي تضيف علامه في الماركر ضيف هالكود createBlip ( 1969.1489257813, -2188.0480957031, 13.546875,41,رقم العلامه) ----- الاحداثيات , رقم العلامه 2nd هريسه كل مكان تطلع لي انت ضض اهم شي شغال وخلاص ._. Link to comment
SaRy,#DanGer Posted July 26, 2014 Share Posted July 26, 2014 لا مش شغال لانة فش حدث ارد اعيد نفس الكلام , وثانيا انت من حق تقرر شغال ومو شغال ادا انا مجربه بعيوني ._. مسوي فيها مبرمج ._. Link to comment
SaRy,#DanGer Posted July 26, 2014 Share Posted July 26, 2014 + خله يجربه ونشوف ادا مو شغال انا بنفسي اصحح له الكود ._. Link to comment
Max+ Posted July 26, 2014 Share Posted July 26, 2014 لا مش شغال لانة فش حدث ارد اعيد نفس الكلام , وثانيا انت من حق تقرر شغال ومو شغال ادا انا مجربه بعيوني ._. مسوي فيها مبرمج ._. يابعد راسي يادنجر حنا هنا نبي نفيدك ونعلمك الصح لازم تسوي تحقق من الاعب لمس الماركر + تضيف حدث onMarkerHit / onClientMarkerHit حسب السكربت كلينت او سيرفر Link to comment
SaRy,#DanGer Posted July 26, 2014 Share Posted July 26, 2014 سوري على الغلط وشكرآ على الافاده # Server Side # --- xm,ym,zm = 2 , 2 , 5 x,y,z = 0 , 0 , 5 model = 0 text = "لقد تم نقلك وتغيير شخصيتك" local myMarker = createMarker(xm , ym , zm , 'cylinder', 1, 255, 0, 0, 150) addEventHandler('onMarkerHit',myMarker, function ( hit ) if ( getElementType ( hit ) == "player" ) then setElementPosition ( hit , x,y,z ) setElementModel(hit,model) outputChatBox(text,hit,true,255,255,0) end end) اول سطر تكون احداثيات الماركر .. # ثاني سطر الاحداثيات الي بينقلها الى الاعب .. # و الثالث الشخصيه الي يبيها ادا دخل الماركر و الرابع تحط الكلام ادا دخل الماركر Link to comment
Max+ Posted July 26, 2014 Share Posted July 26, 2014 سوري على الغلط وشكرآ على الافاده #Server Side # --- xm,ym,zm = 2 , 2 , 5 x,y,z = 0 , 0 , 5 model = 0 text = "لقد تم نقلك وتغيير شخصيتك" local myMarker = createMarker(xm , ym , zm , 'cylinder', 1, 255, 0, 0, 150) addEventHandler('onMarkerHit',myMarker, function ( hit ) if ( getElementType ( hit ) == "player" ) then setElementPosition ( hit , x,y,z ) setElementModel(hit,model) outputChatBox(text,hit,true,255,255,0) end end) اول سطر تكون احداثيات الماركر .. # ثاني سطر الاحداثيات الي بينقلها الى الاعب .. # و الثالث الشخصيه الي يبيها ادا دخل الماركر و الرابع تحط الكلام ادا دخل الماركر عكست فنكشن اخراج الرسالة في الشات text: The text string that you wish to send to the chat window. If more than 128 characters it will not be showed in chat. Optional Arguments visibleTo: This specifies who the chat is visible to. Any players in this element will see the chat message. See visibility. r: The amount of red in the color of the text. Default value is 231. g: The amount of green in the color of the text. Default value is 217. b: The amount of blue in the color of the text. Default value is 176. colorCoded: A bool المفروض الالوان قبل كلمة true 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