z24d Posted July 28, 2015 Share Posted July 28, 2015 هلا وشالغلط بالله ردو سريع مايبيلها تأخير ++ لاتعدلون قولولي وش الغلط ولو عدلتو عدلو الغلط بسس local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( isPedInVehicle ( player ) ) then return end if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) end end ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( isPedInVehicle ( player ) ) then return end if ( getElementType ( player ) == "player" ) and ( source == newmarker ) then setElementDimension ( newmarker, 20 ) setElementInterior ( player ,1459.34265 ,2773.37231 ,10.82031 ) setElementPosition ( player, 1262.08911, -785.57843, 1091.90625 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) end end ) الماركر برا البيت طالع بس! Link to comment
!#NssoR_) Posted July 28, 2015 Share Posted July 28, 2015 ماشوف اي خطأ بس لو تلاحظ في سطر 17 ان الي راح ينتقل للعالم الوهمي هو الماركر الي لمسته مو اللاعب + مافهمت وش تبي بضبط جرب local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) end end ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == newmarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( player, 20 ) setElementInterior ( player ,1459.34265 ,2773.37231 ,10.82031 ) setElementPosition ( player, 1262.08911, -785.57843, 1091.90625 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) end end ) Link to comment
z24d Posted July 28, 2015 Author Share Posted July 28, 2015 نصور انا ابي اذا دخل الماركر من برا يكون طالعله ماركر ثاني يطله منالأنتيريور Link to comment
z24d Posted July 28, 2015 Author Share Posted July 28, 2015 local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) end end ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == newmarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) setElementPosition ( player, 1262.08911, -785.57843, 1091.90625 ) setElementInterior ( player , 0 ) setElementDimension ( player, 0 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) end end ) بقي ماطلعلي الماركر بالانتيريور Link to comment
Simple. Posted July 28, 2015 Share Posted July 28, 2015 setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) حطها برا الحدث خلها تحت createMarker Link to comment
z24d Posted July 29, 2015 Author Share Posted July 29, 2015 local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) end end ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == newmarker ) then if ( isPedInVehicle ( player ) ) then return end setElementPosition ( player, 1262.08911, -785.57843, 1091.90625 ) setElementInterior ( player , 0 ) setElementDimension ( player, 0 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) end end ) function () setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) end Link to comment
z24d Posted July 29, 2015 Author Share Posted July 29, 2015 الماركر مو موجود بالمبنى ليه؟ Link to comment
Naif Posted July 29, 2015 Share Posted July 29, 2015 local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) end end ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == newmarker ) then if ( isPedInVehicle ( player ) ) then return end setElementPosition ( player, 1262.08911, -785.57843, 1091.90625 ) setElementInterior ( player , 0 ) setElementDimension ( player, 0 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) end end ) Link to comment
z24d Posted July 29, 2015 Author Share Posted July 29, 2015 الله يعطيك العافية ماقصرت ^^ انا زودت كم شيء يعني عل مود انو تفتحلي بوابة وانا بالقصر يعني اخش الماركر يسوي موف اوبجكت لاكن ماضبط ! local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) end end ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == newmarker ) then if ( isPedInVehicle ( player ) ) then return end setElementPosition ( player, 1456.13135 ,2773.33740 ,11.68110 ) setElementInterior ( player , 0 ) setElementDimension ( player, 0 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) end end ) local gatemarker = createMarker ( 1282.0999755859, -782, 1089.9000244141, "corona", 1.2, 254, 120, 0, 0 ) setElementDimension ( gatemarker, 20 ) setElementInterior ( gatemarker , 5 ) local myObjects = createObject (, 1283.1999511719, -783.79998779297, 1091.6999511719 ) setElementDimension ( myObjects, 20 ) setElementInterior ( myObjects , 5 ) function MarkerHit ( player ) outputChatBox( "*Console Has Been Opened the Gate", player, 254, 120, 0,false) if ( getElementType ( player ) == "player" ) and ( source == gatemarker ) then if ( isPedInVehicle ( player ) ) then return end moveObject ( myObjects, 300, 1285.1999511719, -783.59997558594, 1094.4000244141 ) end addEventHandler ( "onMarkerHit" , MarkerHit ) Link to comment
z24d Posted July 29, 2015 Author Share Posted July 29, 2015 [01:20:08] SCRIPT ERROR: sasa\server.lua:30: unexpected symbol near ',' [01:20:08] ERROR: Loading script failed: sasa\server.lua:30: unexpected symbol near ',' بالكونسل Link to comment
#DRAGON!FIRE Posted July 29, 2015 Share Posted July 29, 2015 في فاصلة بعد القوس سطر 30 شيلها Link to comment
z24d Posted July 30, 2015 Author Share Posted July 30, 2015 في فاصلة بعد القوس سطر 30 شيلها محترف جابك الله اسمع انا سويت ماركر جوا البيت وضيفتة يوخر الابجكت وماجاني الابجكت اساساًً بالبيت ! الكود local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) end end ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == newmarker ) then if ( isPedInVehicle ( player ) ) then return end setElementPosition ( player, 1456.13135 ,2773.33740 ,11.68110 ) setElementInterior ( player , 0 ) setElementDimension ( player, 0 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) end end ) local gatemarker = createMarker ( 1282.0999755859, -782, 1089.9000244141, "corona", 1.2, 254, 120, 0, 0 ) setElementDimension ( gatemarker, 20 ) setElementInterior ( gatemarker , 5 ) local myObjects = createObject ( 1283.1999511719, -783.79998779297, 1091.6999511719 ) setElementDimension ( myObjects, 20 ) setElementInterior ( myObjects , 5 ) function MarkerHit ( player ) outputChatBox( "*Console Has Been Opened the Gate", player, 254, 120, 0,false) if ( getElementType ( player ) == "player" ) and ( source == gatemarker ) then if ( isPedInVehicle ( player ) ) then return end moveObject ( myObjects, 300, 1285.1999511719, -783.59997558594, 1094.4000244141 ) end end addEventHandler ( "onMarkerHit" , MarkerHit ) Link to comment
#DRAGON!FIRE Posted July 30, 2015 Share Posted July 30, 2015 رتبت + اختصرت لكـ الكود .. بـ اي دي الاوبجكت اللي يناسبكـ oID بالنسبة للاوبجكت انت كنت ناسي اي دي الاوبجكت .. استبدل ملاحظة: سويت المسج حق يوم يحرك الاوبجكت للكل لان المفروض ع ما اعتقد تكون للكل لو تبيها للاعب نفسه حط بلير بدال روت وباقي المسجات كلها للاعب نفسه بس local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) local gatemarker = createMarker ( 1282.0999755859, -782, 1089.9000244141, "corona", 1.2, 254, 120, 0, 0 ) local myObjects = createObject ( oID, 1283.1999511719, -783.79998779297, 1091.6999511719 ) setElementDimension ( gatemarker, 20 ) setElementInterior ( gatemarker , 5 ) setElementDimension ( myObjects, 20 ) setElementInterior ( myObjects , 5 ) setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) then if ( isPedInVehicle ( player ) ) then return end if ( source == TheMarker ) then setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) elseif ( source == newmarker ) then setElementPosition ( player, 1456.13135 ,2773.33740 ,11.68110 ) setElementInterior ( player, 0 ) setElementDimension ( player, 0 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) elseif ( source == gatemarker ) then outputChatBox( "*Console Has Been Opened the Gate", root, 254, 120, 0,false) moveObject ( myObjects, 300, 1285.1999511719, -783.59997558594, 1094.4000244141 ) end end end ) Link to comment
z24d Posted July 30, 2015 Author Share Posted July 30, 2015 رتبت + اختصرت لكـ الكود ..بـ اي دي الاوبجكت اللي يناسبكـ oID بالنسبة للاوبجكت انت كنت ناسي اي دي الاوبجكت .. استبدل ملاحظة: سويت المسج حق يوم يحرك الاوبجكت للكل لان المفروض ع ما اعتقد تكون للكل لو تبيها للاعب نفسه حط بلير بدال روت وباقي المسجات كلها للاعب نفسه بس local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) local gatemarker = createMarker ( 1282.0999755859, -782, 1089.9000244141, "corona", 1.2, 254, 120, 0, 0 ) local myObjects = createObject ( oID, 1283.1999511719, -783.79998779297, 1091.6999511719 ) setElementDimension ( gatemarker, 20 ) setElementInterior ( gatemarker , 5 ) setElementDimension ( myObjects, 20 ) setElementInterior ( myObjects , 5 ) setElementDimension ( newmarker, 20 ) setElementInterior ( newmarker , 5 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) then if ( isPedInVehicle ( player ) ) then return end if ( source == TheMarker ) then setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) elseif ( source == newmarker ) then setElementPosition ( player, 1456.13135 ,2773.33740 ,11.68110 ) setElementInterior ( player, 0 ) setElementDimension ( player, 0 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) elseif ( source == gatemarker ) then outputChatBox( "*Console Has Been Opened the Gate", root, 254, 120, 0,false) moveObject ( myObjects, 300, 1285.1999511719, -783.59997558594, 1094.4000244141 ) end end end ) Ty man : ) 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