ayman1998 Posted February 20, 2014 Author Share Posted February 20, 2014 عربي لو سمحت Link to comment
al-Kobra Posted February 20, 2014 Share Posted February 20, 2014 عربي لو سمحت مسوي له كوبي من الويكي + ماتعرف انجليزي ؟؟ Link to comment
K1NG Posted February 20, 2014 Share Posted February 20, 2014 spawnPlayer v setElementPosition Attention: Do not use this function to spawn a ped/player. It will cause problems with other functions like warpPedIntoVehicle. Use spawnPlayer and createPed instead. https://wiki.multitheftauto.com/wiki/SetElementPosition ومن قالكـ إنك تبي تسوي سباون للاعب؟ ! الحين اللاعب يوم يدخل الماركر بيكون معمول له سباون من قبل، ولا شلون بيدخل الماركر؟ سحر مثلاً . يكفي لنقله setElementPosition فلذلكـ فنكشن Link to comment
ayman1998 Posted February 20, 2014 Author Share Posted February 20, 2014 يا اخي بعرف كل هاد الشي بس المود يلي اعطاني اياه زاحف حملتة بس ما فهمت منة شي ممكن تشرحو و بل عربي و شو بسوي Link to comment
abu5lf Posted February 21, 2014 Share Posted February 21, 2014 يا اخي بعرف كل هاد الشي بس المود يلي اعطاني اياه زاحف حملتة بس ما فهمت منة شي ممكن تشرحو و بل عربي و شو بسوي يعنيابية ما ينقل الى وقت محدد مثل سيرفر سي اي تي و حرب العصابات زي المهمات كيف بنقلو كل ساعة بفتحو 5 دقائق و بعدين ببطلو ينقلو aMarker = createMarker( 0, 0, 0 ); addEventHandler( 'onMarkerHit', aMarker, function( hitElement ) if( getElementType( hitElement ) == 'player' )then if( getElementData( source, 'aMarkerData' ) )then spawnPlayer( hitElement, 10, 10, 3 ); end end end ) setElementData( aMarker, 'aMarkerData', true ); -- تفتحه setElementData( aMarker, 'aMarkerData', false ); -- تصكه استخدم معها setTimer شف هالمثال يابن الحلال Link to comment
ayman1998 Posted February 21, 2014 Author Share Posted February 21, 2014 سويت هيك صححلي aMarker = createMarker( 0, 0, 0 ) addEventHandler( 'onMarkerHit', aMarker, function( hitElement ) if( getElementType( hitElement ) == 'player' )then if( getElementData( source, 'aMarkerData' ) == true )then setElementPosition ( hitElement, X, Y, Z ) end end end ) setTimer ( function() setElementData( aMarker, 'aMarkerData', false ); end, 50*60*1000, 1 ) setTimer ( function() setElementData( aMarker, 'aMarkerData', true ); end, 5*60*1000, 1 ) setTimer ( function() setElementData( aMarker, 'aMarkerData', false ); end, 5*60*1000, 1 ) Link to comment
abu5lf Posted February 21, 2014 Share Posted February 21, 2014 سويت هيك صححلي aMarker = createMarker( 0, 0, 0 ) addEventHandler( 'onMarkerHit', aMarker, function( hitElement ) if( getElementType( hitElement ) == 'player' )then if( getElementData( source, 'aMarkerData' ) == true )then setElementPosition ( hitElement, X, Y, Z ) end end end ) setTimer ( function() setElementData( aMarker, 'aMarkerData', false ); end, 50*60*1000, 1 ) setTimer ( function() setElementData( aMarker, 'aMarkerData', true ); end, 5*60*1000, 1 ) setTimer ( function() setElementData( aMarker, 'aMarkerData', false ); end, 5*60*1000, 1 ) انت شايل الداتا حق الماركر ليه؟ if( getElementData( source, 'aMarkerData' ) == true )then مايحتاج تحط == true لأن لو قيمته صحيحة يتنفذ الشرط setElementPosition ( hitElement, X, Y, Z ) وين الاحداثيات هنا انا معطيك الكود الصح تروح تحذف وتعدل؟ + التايمر بطريقة هذا مايجيب اي فائدة انت علمني متهى تفتح ومتهى تصك من بعد ماتفتح؟ Link to comment
ayman1998 Posted February 21, 2014 Author Share Posted February 21, 2014 انا ابيه كل ساعة يفتح 5 دقائق و يجي في الشات كلام مثل الماركر مفتوح و بعد ما يخلصو ال 5 دقائق يسكر و يجي في الشات قد اغلق الماركر و يبطل ينقل Link to comment
abu5lf Posted February 21, 2014 Share Posted February 21, 2014 انا ابيه كل ساعة يفتح 5 دقائق و يجي في الشات كلام مثل الماركر مفتوحو بعد ما يخلصو ال 5 دقائق يسكر و يجي في الشات قد اغلق الماركر و يبطل ينقل شف هالمثال setTimer( function( ) setOpen( ) end, 3600000, 0 ) function setOpen( ) setElementData( aMarker, 'aMarkerData', true ); outputChatBox ' الماركر مفتوح ' setTimer( function( ) setElementData( aMarker, 'aMarkerData', false ); outputChatBox ' قد اغلق الماركر ' end, 300000, 1 ) end 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