baba Posted May 4, 2016 Share Posted May 4, 2016 سلام عليكم شباب شباب ابي كود ماركر انتقال خاص للسيارات ارجو التوضيح Link to comment
mouamle Posted May 4, 2016 Share Posted May 4, 2016 Event https://wiki.multitheftauto.com/wiki/OnMarkerHit function https://wiki.multitheftauto.com/wiki/SetElementPosition Link to comment
baba Posted May 4, 2016 Author Share Posted May 4, 2016 Event https://wiki.multitheftauto.com/wiki/OnMarkerHitfunction https://wiki.multitheftauto.com/wiki/SetElementPosition local myMarker = createMarker(-715.86469, 963.50842, 12.19479, 'cylinder', 2.0, 255, 56, 58, 150) -- create myMarker function MarkerHit( hitElement, matchingDimension ) -- define MarkerHit function for the handler local elementType = getElementType( hitElement ) -- get the hit element's type outputChatBox( elementType.." inside myMarker", getRootElement(), 255, 255, 0 ) -- attach the element's type with the text, and output it end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) -- attach onMarkerHit event to MarkerHit function ---------------------------------------------------------------------------------------------------- function consoleSetPlayerPosition ( source, myMarker, -672.51758, 950.81012, 12.13281 ) setElementPosition ( source, -672.51758, 950.81012, 12.13281 ) end addCommandHandler ( "setpos", consoleSetPlayerPosition ) انا سويت الكود كذا وجربتو بس ما طلع لي شي Link to comment
#Basel Posted May 4, 2016 Share Posted May 4, 2016 marker = createMarker(x, y, z, 'cylinder', 2.0, 255, 0, 0, 150) addEventHandler( "onMarkerHit",marker, function (thePlayer) setElementPosition (thePlayer,x,y,z) end ) Link to comment
baba Posted May 4, 2016 Author Share Posted May 4, 2016 marker = createMarker(x, y, z, 'cylinder', 2.0, 255, 0, 0, 150) addEventHandler( "onMarkerHit",marker, function (thePlayer) setElementPosition (thePlayer,x,y,z) end ) الماركر بين بس لما ادخل عليه ما يوسي شي يعني ما ينقلني على المكان الي انا حطيت احداثياته marker = createMarker(-715.86469, 963.50842, 11.19479, 'cylinder', 2.5, 255, 0, 0, 150) addEventHandler( "onMarkerHit",marker, function (thePlayer) setElementPosition (thePlayer,-672.51758, 950.81012, 11.13281) end ) Link to comment
#Basel Posted May 4, 2016 Share Posted May 4, 2016 (edited) انت حاطط الاحداثيات فيه مكان من لوحه الادمنيه ؟ ولا محل عادي ..؟ Edited May 4, 2016 by Guest Link to comment
baba Posted May 4, 2016 Author Share Posted May 4, 2016 انت حاطط الاحداثيات فيه مكان من لوحه الادمنيه ؟ ولا محل عادي ..؟ t/gp مكان عادي Link to comment
#Basel Posted May 4, 2016 Share Posted May 4, 2016 (edited) marker = createMarker(-2520.39208, -624.05493, 132.78263, 'cylinder', 2.0, 255, 0, 0, 150) addEventHandler( "onMarkerHit",marker, function (thePlayer) setElementPosition (thePlayer,771.26550,0.78333,1000.72344) setElementInterior ( thePlayer,Interior) end ) Edited May 4, 2016 by Guest Link to comment
baba Posted May 4, 2016 Author Share Posted May 4, 2016 لمكان الى بدك تنتقل له من لوحه الادمنيه ؟؟؟ لا مكان عادي في مدينة lv Link to comment
#Basel Posted May 4, 2016 Share Posted May 4, 2016 marker = createMarker(x, y, z, 'cylinder', 2.0, 255, 0, 0, 150) addEventHandler( "onMarkerHit",marker, function (thePlayer) setElementPosition (thePlayer,x,y,z) end ) الماركر بين بس لما ادخل عليه ما يوسي شي يعني ما ينقلني على المكان الي انا حطيت احداثياته marker = createMarker(-715.86469, 963.50842, 11.19479, 'cylinder', 2.5, 255, 0, 0, 150) addEventHandler( "onMarkerHit",marker, function (thePlayer) setElementPosition (thePlayer,-672.51758, 950.81012, 11.13281) end ) كود دا شغال تاكد من الميتا Link to comment
#Basel Posted May 4, 2016 Share Posted May 4, 2016 كلينت صح؟ onMarkerHit Serverside event 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