KING#NSSER Posted June 19, 2014 Share Posted June 19, 2014 اريد ماركر انتقال اللاعبين كلهم مثلا الى مثل متجر الاسلحه هكذا يعني بالخارطه لا يوجد شيئ مثل هذه الصوره وشكرا Link to comment
ALw7sH Posted June 19, 2014 Share Posted June 19, 2014 createMarker Event: onClientMarkerHit setElementInterior setElementPosition Link to comment
Simba Posted June 19, 2014 Share Posted June 19, 2014 createMarker Event: onClientMarkerHit setElementInterior setElementPosition onMarkerHit Link to comment
K1NG Posted June 19, 2014 Share Posted June 19, 2014 createMarker Event: onClientMarkerHit setElementInterior setElementPosition setElementPosition + getElementType getPedOccupiedVehicle destroyElement Link to comment
KING#NSSER Posted June 20, 2014 Author Share Posted June 20, 2014 ما اريد هيج فكشنات اريد اكواد جاهزه بس احط الاحداثيات لاني ما افهم الفكشنات و شكرا Link to comment
KING#NSSER Posted June 21, 2014 Author Share Posted June 21, 2014 addEventHandler ( "onClientGUIClick", but5, getResourceRootElement(getThisResource()), function ( ) local player = getLocalPlayer() setElementPosition (player ,1355.9412841797, -1292.3513183594, 13.251474380493 ) end end ) ) مثلا هذا الكود يعني اريده مثله لكن هذا ما بيعمل اذا بتريد صلحه او عطني كو ثاني هذا اعمل الاحدائيات المحل لكن يبنقلني من فوق و اللاعب يسقط وشكرا Link to comment
KING#NSSER Posted June 21, 2014 Author Share Posted June 21, 2014 ولا اقول لكم ما اتعبكم عطوني فيديو اعمل عليه يعني الي عطيتوني هاي الفكشنات ( ما اعرف اسمها ) ذذ createMarker Event: onClientMarkerHit setElementInterior setElementPosition Link to comment
#DRAGON!FIRE Posted June 21, 2014 Share Posted June 21, 2014 انت تبي يوم يخش ماركر ولا يضغط زر ؟ ! Link to comment
Simba Posted June 21, 2014 Share Posted June 21, 2014 addEventHandler ( "onClientGUIClick", but5, getResourceRootElement(getThisResource()), function ( ) local player = getLocalPlayer() setElementPosition (player ,1355.9412841797, -1292.3513183594, 13.251474380493 ) end end ) ) مثلا هذا الكود يعني اريده مثله لكن هذا ما بيعمل اذا بتريد صلحه او عطني كو ثاني هذا اعمل الاحدائيات المحل لكن يبنقلني من فوق و اللاعب يسقط وشكرا انت هنا مسوي لما يضغط زر GUI ينقله لمكان Link to comment
KING#NSSER Posted June 21, 2014 Author Share Posted June 21, 2014 اريده عندما يتقرب اللاعب بيروح للمكان الي واضع احدائياته و شكرا Link to comment
Simba Posted June 22, 2014 Share Posted June 22, 2014 جرب ,, local x , y , z = -- احداثيات صنع الماركر local x2 , y2 , z2 = -- احاثيات لما يلمس الماركر ينقلك theMarker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 250 ) addEventHandler( "onMarkerHit", theMarker, function ( player ) if getElementType ( player ) == "player" then if isPedInVehicle ( player ) then return end setElementPosition ( player, x2 , y2 , z2 ) end end ) سطر 1 = احداثيات الماركر سطر 2 = احداثيات المكان الي ينقلك له ما رح ينقلك اذا معك سياره !! Link to comment
KING#NSSER Posted June 22, 2014 Author Share Posted June 22, 2014 بشكرك قبل التجربه لانني وائق في قدراتك Link to comment
KING#NSSER Posted June 22, 2014 Author Share Posted June 22, 2014 سطر الـ 4 ماذا نكتب به Link to comment
KING#NSSER Posted June 22, 2014 Author Share Posted June 22, 2014 هلا الكود يا اخي ما يعمل شوف الكو بعد التعديل local 1368.99402,-1279.65918,13.54688 = -- احداثيات صنع الماركر local 285.56036,-41.65447,1001.51563 = -- احاثيات لما يلمس الماركر ينقلك theMarker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 250 ) addEventHandler( "onMarkerHit", theMarker, function ( player ) if getElementType ( player ) == "player" then if isPedInVehicle ( player ) then return end setElementPosition ( player, x2 , y2 , z2 ) end end ) انا عدلت خطأ ولا الكود خطأ ولو تعبتك وياي Link to comment
™!>VàLéNTiNô<!™ Posted June 22, 2014 Share Posted June 22, 2014 اريد ماركر انتقال اللاعبين كلهم مثلا الى مثل متجر الاسلحه هكذا يعني بالخارطه لا يوجد شيئ مثل هذه الصوره وشكرا Interior المتجر يوجد بعالم الكود اللى فوق لو ضفت به احداثيات بدون رقم العالم بتلاقى نفسك فى فراغ + x, y, z تعديلك هريسة ليه ماكتبت الاحداثيات بعد علامة = ومسحت الكلام اللى موجود x2, y2, z2 Link to comment
KING#NSSER Posted June 22, 2014 Author Share Posted June 22, 2014 local 1368.99402,-1279.65918,13.54688 = local 285.56036,-41.65447,1001.51563 = theMarker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 250 ) addEventHandler( "onMarkerHit", theMarker, function ( player ) if getElementType ( player ) == "player" then if isPedInVehicle ( player ) then return end setElementPosition ( player, x2 , y2 , z2 ) end end ) يعني هكذا لازم يعمل ؟؟ انا جربه ما صار يا اخي سوي لجميع الاسطر شرح ولو تعبتكم Link to comment
Simba Posted June 22, 2014 Share Posted June 22, 2014 كذا يصير كودك local x2 , y2 , z2 = 1368.99402,-1279.65918,13.54688 local x , y , z = 285.56036,-41.65447,1001.51563 theMarker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 250 ) addEventHandler( "onMarkerHit", theMarker, function ( player ) if getElementType ( player ) == "player" then if isPedInVehicle ( player ) then return end setElementPosition ( player, x2 , y2 , z2 ) end end ) اذا كنت بنتقل لمتجر الاسلحة ف استخدم setElementInterior واحذف سطر 2 وسطر 13 -------- Link to comment
KING#NSSER Posted June 23, 2014 Author Share Posted June 23, 2014 سويت مثل ما قلت لي لكن يخرج الدنيه فارعه لايوجد شيئ هذه الصوره توضح ذلك Link to comment
Simba Posted June 23, 2014 Share Posted June 23, 2014 عرفت المشكلةةة اطرح الاكواد الي خلت الدنيا فارغه Link to comment
KING#NSSER Posted June 23, 2014 Author Share Posted June 23, 2014 local x2 , y2 , z2 = 285.56036,-41.65447,1002.51563 local x , y , z = 1368.99402,-1279.65918,13.54688 theMarker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 250 ) addEventHandler( "onMarkerHit", theMarker, function ( player ) if getElementType ( player ) == "player" then if isPedInVehicle ( player ) then return end setElementInterior ( player, 1368.99402,-1279.65918,13.54688 ) end end ) هذا الكود انا اريده ينقل الى متجر الاسلحه وشكرا Link to comment
Simba Posted June 23, 2014 Share Posted June 23, 2014 جرب ورد لي خبر local x , y , z = 1368.99402,-1279.65918,13.54688 -- هنا تحط احداثيات الماركر theMarker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 250 ) addEventHandler( "onMarkerHit", theMarker, function ( player ) if getElementType ( player ) == "player" then if isPedInVehicle ( player ) then return end setElementInterior ( player, 2, 285.98175,-85.31979,1001.51563) end end ) Link to comment
KING#NSSER Posted June 23, 2014 Author Share Posted June 23, 2014 لا يعمل هذا الكود اسف انا تعبتكم 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