#Rmad~> Posted March 28, 2014 Share Posted March 28, 2014 السلام عليكم ورحمة الله وبركاته ياخوان الحين انا سويت مطعم بساحة البداية عندي مثلا وابيه لما اشغل مود الانترور اسير اقدر ادخل المطعم وش احتاج فنكشات ؟ قالولي عن setElementInterior وجربتها وولا ظبطت هاذي التجربة marker = createMarker( 106.92246246338, 1835.6004638672, 16.640625, "cylinder", 2, 255, 255, 0, 255 ) addEventHandler ( "onMarkerHit", marker, function ( element ) if ( getElementType ( element ) == "player" ) then setElementInterior ( element,0,289.7870,-35.7190,1003.5160) setElementPosition ( element, 123.30613708496,1854.7706298828,17.723588943481 ) end end) Link to comment
#DRAGON!FIRE Posted March 28, 2014 Share Posted March 28, 2014 لزوم تكون الاوبجكتات والمطعم كله بـ الانترو نفسه ذذ Link to comment
#Rmad~> Posted March 28, 2014 Author Share Posted March 28, 2014 لزوم تكون الاوبجكتات والمطعم كله بـ الانترو نفسه ذذ اي نعم بالانترور يازاحف , الاحداثيات Link to comment
ΞĪŚŚÀ Posted March 28, 2014 Share Posted March 28, 2014 Meta.xml جرب في resource="interiors"/> Link to comment
#Rmad~> Posted March 28, 2014 Author Share Posted March 28, 2014 Meta.xml جرب في resource="interiors"/> جربت وماظبط Link to comment
al-Kobra Posted March 28, 2014 Share Posted March 28, 2014 https://wiki.multitheftauto.com/wiki/Interior_IDs Link to comment
#Rmad~> Posted March 28, 2014 Author Share Posted March 28, 2014 marker = createMarker( 106.92246246338, 1835.6004638672, 16.640625, "cylinder", 2, 255, 255, 0, 255 ) addEventHandler ( "onMarkerHit", marker, function ( element ) if ( getElementType ( element ) == "player" ) then setElementInterior (element,0,289.7870,-35.7190,1003.5160) setElementPosition ( element, 123.30613708496,1854.7706298828,17.723588943481 ) end end) setElementInterior (element,0,289.7870,-35.7190,1003.5160) Link to comment
#Rmad~> Posted March 28, 2014 Author Share Posted March 28, 2014 جربت اسوي كذا وماظبط marker = createMarker( 106.92246246338, 1835.6004638672, 16.640625, "cylinder", 2, 255, 255, 0, 255 ) markerr = createMarker ( 121.22229766846, 1858.3297119141, 16.751111984253, "cylinder", 2, 255, 255, 0, 255 ) setElementInterior ( markerr, 9 ) addEventHandler ( "onMarkerHit", root, function ( restaurant ) if ( getElementType ( restaurant ) == "player" and not isPedInVehicle ( restaurant ) ) then if ( source == marker ) then setElementInterior ( restaurant, 9,366.4220,-73.4700,1001.5080 ) setElementPosition ( restaurant, 123.30613708496,1854.7706298828,17.723588943481 ) elseif ( source == markerr ) then setElementInterior ( restaurant, 0 ) setElementPosition ( restaurant, 107.76741790771, 1848.0799560547, 17.649194717407 ) end end end ) Link to comment
فاّرس Posted March 29, 2014 Share Posted March 29, 2014 ؟ setElementPosition ليه مستخدم Link to comment
#Rmad~> Posted March 29, 2014 Author Share Posted March 29, 2014 ؟ setElementPosition ليه مستخدم عشان يدخله جوا المحل <> Link to comment
فاّرس Posted March 29, 2014 Share Posted March 29, 2014 -- Server Side # local marker = createMarker( 106.92246246338, 1835.6004638672, 16.640625, "cylinder", 2, 255, 255, 0) local markerr = createMarker ( 121.22229766846, 1858.3297119141, 16.751111984253, "cylinder", 2, 255, 255, 0) setElementInterior ( markerr, 9 ) addEventHandler ( "onMarkerHit", root,function ( restaurant ) if ( getElementType ( restaurant ) == "player" and not isPedInVehicle ( restaurant ) ) then if ( source == marker ) then setElementInterior ( restaurant, 9,123.30613708496,1854.7706298828,17.723588943481 ) elseif ( source == markerr ) then setElementInterior ( restaurant, 0 , 107.76741790771, 1848.0799560547, 17.649194717407 ) end end end ) Link to comment
#Rmad~> Posted March 29, 2014 Author Share Posted March 29, 2014 -- Server Side # local marker = createMarker( 106.92246246338, 1835.6004638672, 16.640625, "cylinder", 2, 255, 255, 0) local markerr = createMarker ( 121.22229766846, 1858.3297119141, 16.751111984253, "cylinder", 2, 255, 255, 0) setElementInterior ( markerr, 9 ) addEventHandler ( "onMarkerHit", root,function ( restaurant ) if ( getElementType ( restaurant ) == "player" and not isPedInVehicle ( restaurant ) ) then if ( source == marker ) then setElementInterior ( restaurant, 9,123.30613708496,1854.7706298828,17.723588943481 ) elseif ( source == markerr ) then setElementInterior ( restaurant, 0 , 107.76741790771, 1848.0799560547, 17.649194717407 ) end end end ) يدخلني عالم فاضي وفيه ماركر الخروج فقط Link to comment
' ρяofзśŝoя 亗 Posted March 29, 2014 Share Posted March 29, 2014 انا م فهمت وش تبي الي فهمت انك مسوي مطعمم وتبي عليه ماركر يدخلك المطعمم # اذ كانن هيك قصدككءَ ~ سوي الماركر وفنكشات الماركر سهله الي يلسمه ينتقل مكانن بس استخدمم setElementInterior setElementDimension وحدد احداثيات المطاعمم .. الاصليه ،وبس ذذ Link to comment
#Rmad~> Posted March 29, 2014 Author Share Posted March 29, 2014 انا م فهمت وش تبي الي فهمت انك مسوي مطعمم وتبي عليه ماركر يدخلك المطعمم # اذ كانن هيك قصدككءَ ~ سوي الماركر وفنكشات الماركر سهله الي يلسمه ينتقل مكانن بس استخدمم setElementInterior setElementDimension وحدد احداثيات المطاعمم .. الاصليه ،وبس ذذ ايه هاذا الي اقصدةة + مافي داعي للعالم الوهمي سويت كذا local marker = createMarker( 106.92246246338, 1835.6004638672, 16.640625, "cylinder", 2, 255, 255, 0) local markerr = createMarker ( 121.22229766846, 1858.3297119141, 16.751111984253, "cylinder", 2, 255, 255, 0) setElementInterior ( markerr, 9 ) addEventHandler ( "onMarkerHit", root, function ( restaurant ) if ( getElementType ( restaurant ) == "player" and not isPedInVehicle ( restaurant ) ) then if ( source == marker ) then setElementInterior ( restaurant, 9,366.4220,-73.4700,1001.5080 ) elseif ( source == markerr ) then setElementInterior ( restaurant, 0 ) end end end ) صار ينقلني وسرت اشوف المطعم قدامي بس مقدر ادخله Link to comment
فاّرس Posted March 29, 2014 Share Posted March 29, 2014 -- Server Side # local marker = createMarker( 106.92246246338, 1835.6004638672, 16.640625, "cylinder", 2, 255, 255, 0) local markerr = createMarker ( 121.22229766846, 1858.3297119141, 16.751111984253, "cylinder", 2, 255, 255, 0) setElementInterior ( markerr, 9 ) addEventHandler ( "onMarkerHit", root,function ( restaurant ) if ( getElementType ( restaurant ) == "player" and not isPedInVehicle ( restaurant ) ) then if ( source == marker ) then setElementInterior ( restaurant, 9 ) elseif ( source == markerr ) then setElementInterior ( restaurant, 0 ) end end end ) Link to comment
' ρяofзśŝoя 亗 Posted March 29, 2014 Share Posted March 29, 2014 -- Server Side # local marker = createMarker( 106.92246246338, 1835.6004638672, 16.640625, "cylinder", 2, 255, 255, 0) local markerr = createMarker ( 121.22229766846, 1858.3297119141, 16.751111984253, "cylinder", 2, 255, 255, 0) setElementInterior ( markerr, 9 ) addEventHandler ( "onMarkerHit", root,function ( restaurant ) if ( getElementType ( restaurant ) == "player" and not isPedInVehicle ( restaurant ) ) then if ( source == marker ) then setElementInterior ( restaurant, 9 ) elseif ( source == markerr ) then setElementInterior ( restaurant, 0 ) end end end ) + setElementDimension Link to comment
#Rmad~> Posted March 29, 2014 Author Share Posted March 29, 2014 -- Server Side # local marker = createMarker( 106.92246246338, 1835.6004638672, 16.640625, "cylinder", 2, 255, 255, 0) local markerr = createMarker ( 121.22229766846, 1858.3297119141, 16.751111984253, "cylinder", 2, 255, 255, 0) setElementInterior ( markerr, 9 ) addEventHandler ( "onMarkerHit", root,function ( restaurant ) if ( getElementType ( restaurant ) == "player" and not isPedInVehicle ( restaurant ) ) then if ( source == marker ) then setElementInterior ( restaurant, 9 ) elseif ( source == markerr ) then setElementInterior ( restaurant, 0 ) end end end ) نفس الشئ Link to comment
' ρяofзśŝoя 亗 Posted March 29, 2014 Share Posted March 29, 2014 (edited) local marker1 = createMarker( 246.4450378418, 88.006828308105, 1004.4, 'arrow', 1.6, 255, 255, 0, 255 ) setElementDimension ( marker1, 1 ) setElementInterior ( marker1, 6 ) addEventHandler ( "onClientMarkerHit", marker1, function ( player ) fadeCamera(false) setTimer(function() fadeCamera(true) setElementPosition(player, 1586.9841308594,-1664.6889648438,290.35626220703) setElementDimension ( player, 0 ) setElementInterior ( player, 0 ) end,2000,1,player) end ) * غير احداثيات الماركر والانترو والدمينشن * وعدل احداثيات النقل والانترو والدمينشن fadeCamera بخصوص اول م تلمس الماركر تختفي الشاشه وترجعع ! مثل اي مطعمم .. ومحل Edited March 29, 2014 by Guest Link to comment
' ρяofзśŝoя 亗 Posted March 29, 2014 Share Posted March 29, 2014 مافي داعي للعالم الوهمي كل المطاعمم الاصليه على عوالم وهميه وتقدر تشوفها من الادمنيه ادخل اي محل وشوف العالم الوهمي والاحداثيات .. Link to comment
#Rmad~> Posted March 29, 2014 Author Share Posted March 29, 2014 local marker = createMarker( 106.92246246338, 1835.6004638672, 16.640625, "cylinder", 2, 255, 255, 0) local markerr = createMarker ( 362.83898925781,-75.111831665039,1001.5078125, "cylinder", 2, 255, 255, 0) setElementInterior ( markerr, 10 ) setElementDimension ( markerr, 33 ) addEventHandler ( "onMarkerHit", root, function ( restaurant ) if ( getElementType ( restaurant ) == "player" and not isPedInVehicle ( restaurant ) ) then if ( source == marker ) then setElementDimension ( restaurant, 33 ) setElementInterior ( restaurant, 10,366.4220,-73.4700,1001.5080 ) elseif ( source == markerr ) then setElementInterior ( restaurant, 0 ) setElementDimension ( restaurant, 0 ) setElementPosition ( restaurant, 103.90288543701,1831.6501464844,17.640625 ) end end end ) ^ظبط ممكن تسون تايمر لثانيتين كل مايطلع ويخش فيد كاميرا حاولت فيه وماظبط معي Link to comment
' ρяofзśŝoя 亗 Posted March 29, 2014 Share Posted March 29, 2014 (edited) جرب هيككءَ local marker = createMarker( 106.92246246338, 1835.6004638672, 16.640625, "cylinder", 2, 255, 255, 0) local markerr = createMarker ( 362.83898925781,-75.111831665039,1001.5078125, "cylinder", 2, 255, 255, 0) setElementInterior ( markerr, 10 ) setElementDimension ( markerr, 33 ) addEventHandler ( "onMarkerHit", root, function ( restaurant ) if ( getElementType ( restaurant ) == "player" and not isPedInVehicle ( restaurant ) ) then if ( source == marker ) then fadeCamera(false) setTimer(function() fadeCamera(true) setElementDimension ( restaurant, 33 ) setElementInterior ( restaurant, 10,366.4220,-73.4700,1001.5080 ) end,2000,1,player) elseif ( source == markerr ) then setElementInterior ( restaurant, 0 ) setElementDimension ( restaurant, 0 ) setElementPosition ( restaurant, 103.90288543701,1831.6501464844,17.640625 ) end end end ) Edited March 29, 2014 by Guest Link to comment
#Rmad~> Posted March 29, 2014 Author Share Posted March 29, 2014 جرب هيككءَ local marker = createMarker( 106.92246246338, 1835.6004638672, 16.640625, "cylinder", 2, 255, 255, 0) local markerr = createMarker ( 362.83898925781,-75.111831665039,1001.5078125, "cylinder", 2, 255, 255, 0) setElementInterior ( markerr, 10 ) setElementDimension ( markerr, 33 ) addEventHandler ( "onMarkerHit", root, function ( restaurant ) if ( getElementType ( restaurant ) == "player" and not isPedInVehicle ( restaurant ) ) then if ( source == marker ) then fadeCamera(false) setTimer(function() fadeCamera(true) setElementDimension ( restaurant, 33 ) setElementInterior ( restaurant, 10,366.4220,-73.4700,1001.5080 ) elseif ( source == markerr ) then setElementInterior ( restaurant, 0 ) setElementDimension ( restaurant, 0 ) setElementPosition ( restaurant, 103.90288543701,1831.6501464844,17.640625 ) end,2000,1,player) end end end ) ماظبط Link to comment
' ρяofзśŝoя 亗 Posted March 29, 2014 Share Posted March 29, 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