./BlackBird# Posted August 13, 2012 Share Posted August 13, 2012 اتوقع العنوان واضح شوي انا سويت هذا المود عشان يحرك الاشياء بس فيه خطأ لا هنتم ابيكم تصححوه و تقولون وش الخطأ عشان اتعلم root = getRootElement () a1 = createObject ( 2938, 907.19921875, 1841.5, 15.699999809265, 0, 0, 265.99548339844) b1 = createObject ( 3095, 868.29998779297, 1728.4000244141, 30.10000038147, 0, 0, 2) c1 = createObject ( 2959, 892, 1764.1999511719, 31.799999237061, 0, 0, 269.5) function Open ( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then moveObject (a1, 300, 907.19921875, 1841.5, 19.699998855591) moveObject (b1, 300, 872.29998779297, 1728.0999755859, 30.10000038147) moveObject (c1, 2500, 890.5, 1764.1999511719, 31.799999237061) end end end addEventHandler ( "onColShapeHit", Open) function Close ( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then moveObject (a1, 300, 907.19921875, 1841.5, 15.699999809265) moveObject (b1, 300, 868.29998779297, 1728.4000244141.7998046875, 30.10000038147) moveObject (c1, 2500, 892, 1764.1999511719, 31.799999237061) end end end addEventHandler ( "onColShapeLeave", Close ) يخلي الاوبجيكت يتحرك لما يقرب الادمن Link to comment
3NAD Posted August 13, 2012 Share Posted August 13, 2012 سطر 9 و 20 مو ضروري تحطهم + عندكـ خطأ بـ الإيفنت + اللي رآحح تلمسه على شأن تبدأ الوظيفة ؟ ColShape وين الـ Link to comment
./BlackBird# Posted August 13, 2012 Author Share Posted August 13, 2012 والله ي اخوي ما عرفت وش هو Colshep و مشكور Link to comment
hassan.k.s.a Posted August 13, 2012 Share Posted August 13, 2012 اعملك ماركر عند المس تبدأ الوضيفه اتوقع يكون افضل Link to comment
./BlackBird# Posted August 13, 2012 Author Share Posted August 13, 2012 وظح اكثر و وين احط الماركر Link to comment
hassan.k.s.a Posted August 13, 2012 Share Posted August 13, 2012 جرب هذا a1 = createObject ( 2938, 907.19921875, 1841.5, 15.699999809265, 0, 0, 265.99548339844) b1 = createObject ( 3095, 868.29998779297, 1728.4000244141, 30.10000038147, 0, 0, 2) c1 = createObject ( 2959, 892, 1764.1999511719, 31.799999237061, 0, 0, 269.5) local Marker = createMarker ( 1876.2318115234, 243.9450378418, 225.65536499023, "cylinder", 2, 255, 255, 0, 150 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then moveObject (a1, 300, 907.19921875, 1841.5, 19.699998855591) moveObject (b1, 300, 872.29998779297, 1728.0999755859, 30.10000038147) moveObject (c1, 2500, 890.5, 1764.1999511719, 31.799999237061) setTimer(moveObject,5000,1,servera1,false) setTimer(moveObject,5000,1,serverb1,false) setTimer(moveObject,5000,1,serverc1,false) end end ) Link to comment
./BlackBird# Posted August 13, 2012 Author Share Posted August 13, 2012 بس انا ابي بس الي بقروب Admin ينفتح بس Link to comment
hassan.k.s.a Posted August 13, 2012 Share Posted August 13, 2012 اوك جرب هذا جرب هذا a1 = createObject ( 2938, 907.19921875, 1841.5, 15.699999809265, 0, 0, 265.99548339844) b1 = createObject ( 3095, 868.29998779297, 1728.4000244141, 30.10000038147, 0, 0, 2) c1 = createObject ( 2959, 892, 1764.1999511719, 31.799999237061, 0, 0, 269.5) local Marker = createMarker ( 1876.2318115234, 243.9450378418, 225.65536499023, "cylinder", 2, 255, 255, 0, 150 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(hitPlayer)), aclGetGroup ( "Admin" ) ) then moveObject (a1, 300, 907.19921875, 1841.5, 19.699998855591) moveObject (b1, 300, 872.29998779297, 1728.0999755859, 30.10000038147) moveObject (c1, 2500, 890.5, 1764.1999511719, 31.799999237061) setTimer(moveObject,5000,1,servera1,false) setTimer(moveObject,5000,1,serverb1,false) setTimer(moveObject,5000,1,serverc1,false) end end ) Link to comment
./BlackBird# Posted August 13, 2012 Author Share Posted August 13, 2012 ما اشتغل للاسف Link to comment
TAPL Posted August 13, 2012 Share Posted August 13, 2012 isObjectInACLGroup سيرفر onClientMarkerHit كلينت Link to comment
./BlackBird# Posted August 13, 2012 Author Share Posted August 13, 2012 isObjectInACLGroup سيرفرonClientMarkerHit كلينت ?? ما فهمت Link to comment
hassan.k.s.a Posted August 13, 2012 Share Posted August 13, 2012 --client side-- a1 = createObject ( 2938, 907.19921875, 1841.5, 15.699999809265, 0, 0, 265.99548339844) b1 = createObject ( 3095, 868.29998779297, 1728.4000244141, 30.10000038147, 0, 0, 2) c1 = createObject ( 2959, 892, 1764.1999511719, 31.799999237061, 0, 0, 269.5) local Marker = createMarker ( 1876.2318115234, 243.9450378418, 225.65536499023, "cylinder", 2, 255, 255, 0, 150 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then moveObject (a1, 300, 907.19921875, 1841.5, 19.699998855591) moveObject (b1, 300, 872.29998779297, 1728.0999755859, 30.10000038147) moveObject (c1, 2500, 890.5, 1764.1999511719, 31.799999237061) setTimer(moveObject,5000,1,servera1,false) setTimer(moveObject,5000,1,serverb1,false) setTimer(moveObject,5000,1,serverc1,false) end end ) --server side-- if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(hitPlayer)), aclGetGroup ( "Admin" ) ) then meta Link to comment
TAPL Posted August 13, 2012 Share Posted August 13, 2012 --client side-- a1 = createObject ( 2938, 907.19921875, 1841.5, 15.699999809265, 0, 0, 265.99548339844) b1 = createObject ( 3095, 868.29998779297, 1728.4000244141, 30.10000038147, 0, 0, 2) c1 = createObject ( 2959, 892, 1764.1999511719, 31.799999237061, 0, 0, 269.5) local Marker = createMarker ( 1876.2318115234, 243.9450378418, 225.65536499023, "cylinder", 2, 255, 255, 0, 150 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then moveObject (a1, 300, 907.19921875, 1841.5, 19.699998855591) moveObject (b1, 300, 872.29998779297, 1728.0999755859, 30.10000038147) moveObject (c1, 2500, 890.5, 1764.1999511719, 31.799999237061) setTimer(moveObject,5000,1,servera1,false) setTimer(moveObject,5000,1,serverb1,false) setTimer(moveObject,5000,1,serverc1,false) end end ) --server side-- if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(hitPlayer)), aclGetGroup ( "Admin" ) ) then meta ههههههههههه وش تخربط ياخوي بالأساس حتى التايمر خطأ Link to comment
hassan.k.s.a Posted August 13, 2012 Share Posted August 13, 2012 (edited) ض1 عارف لاكن انتضر حد يصححه له ولازم اخطأ مره مرتين ثلاث اربع .. عشر لأني لسى شبه مبتدأ Edited August 13, 2012 by Guest Link to comment
3NAD Posted August 13, 2012 Share Posted August 13, 2012 ججرب ذا سيرفر a1 = createObject ( 2938, 907.19921875, 1841.5, 15.699999809265, 0, 0, 265.99548339844) b1 = createObject ( 3095, 868.29998779297, 1728.4000244141, 30.10000038147, 0, 0, 2) c1 = createObject ( 2959, 892, 1764.1999511719, 31.799999237061, 0, 0, 269.5) local Marker = createMarker ( 1876.2318115234, 243.9450378418, 225.65536499023, "cylinder", 2, 255, 255, 0, 150 ) addEventHandler('onMarkerHit', Marker, function ( hitPlayer ) local accName = getAccountName ( getPlayerAccount ( hitPlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then moveObject (a1, 300, 907.19921875, 1841.5, 19.699998855591) moveObject (b1, 300, 872.29998779297, 1728.0999755859, 30.10000038147) moveObject (c1, 2500, 890.5, 1764.1999511719, 31.799999237061) setTimer(moveObject,12000,1,a1,7000,907.19921875, 1841.5, 15.699999809265) setTimer(moveObject,12000,1,b1,7000,868.29998779297, 1728.4000244141, 30.10000038147) setTimer(moveObject,12000,1,c1,7000,892, 1764.1999511719, 31.799999237061) end end ) Link to comment
hassan.k.s.a Posted August 13, 2012 Share Posted August 13, 2012 ججرب ذا سيرفر a1 = createObject ( 2938, 907.19921875, 1841.5, 15.699999809265, 0, 0, 265.99548339844) b1 = createObject ( 3095, 868.29998779297, 1728.4000244141, 30.10000038147, 0, 0, 2) c1 = createObject ( 2959, 892, 1764.1999511719, 31.799999237061, 0, 0, 269.5) local Marker = createMarker ( 1876.2318115234, 243.9450378418, 225.65536499023, "cylinder", 2, 255, 255, 0, 150 ) addEventHandler('onMarkerHit', Marker, function ( hitPlayer ) local accName = getAccountName ( getPlayerAccount ( hitPlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then moveObject (a1, 300, 907.19921875, 1841.5, 19.699998855591) moveObject (b1, 300, 872.29998779297, 1728.0999755859, 30.10000038147) moveObject (c1, 2500, 890.5, 1764.1999511719, 31.799999237061) setTimer(moveObject,12000,1,a1,7000,907.19921875, 1841.5, 15.699999809265) setTimer(moveObject,12000,1,a1,7000,868.29998779297, 1728.4000244141, 30.10000038147) setTimer(moveObject,12000,1,a1,7000,892, 1764.1999511719, 31.799999237061) end end ) [lua] a1 = createObject ( 2938, 907.19921875, 1841.5, 15.699999809265, 0, 0, 265.99548339844) b1 = createObject ( 3095, 868.29998779297, 1728.4000244141, 30.10000038147, 0, 0, 2) c1 = createObject ( 2959, 892, 1764.1999511719, 31.799999237061, 0, 0, 269.5) local Marker = createMarker ( 1876.2318115234, 243.9450378418, 225.65536499023, "cylinder", 2, 255, 255, 0, 150 ) addEventHandler('onMarkerHit', Marker, function ( hitPlayer ) local accName = getAccountName ( getPlayerAccount ( hitPlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then moveObject (a1, 300, 907.19921875, 1841.5, 19.699998855591) moveObject (b1, 300, 872.29998779297, 1728.0999755859, 30.10000038147) moveObject (c1, 2500, 890.5, 1764.1999511719, 31.799999237061) setTimer(moveObject,12000,1,a1,7000,907.19921875, 1841.5, 15.699999809265) setTimer(moveObject,12000,1,b1,7000,868.29998779297, 1728.4000244141, 30.10000038147) setTimer(moveObject,12000,1,c1,7000,892, 1764.1999511719, 31.799999237061) end end ) Link to comment
3NAD Posted August 13, 2012 Share Posted August 13, 2012 [lua] a1 = createObject ( 2938, 907.19921875, 1841.5, 15.699999809265, 0, 0, 265.99548339844) b1 = createObject ( 3095, 868.29998779297, 1728.4000244141, 30.10000038147, 0, 0, 2) c1 = createObject ( 2959, 892, 1764.1999511719, 31.799999237061, 0, 0, 269.5) local Marker = createMarker ( 1876.2318115234, 243.9450378418, 225.65536499023, "cylinder", 2, 255, 255, 0, 150 ) addEventHandler('onMarkerHit', Marker, function ( hitPlayer ) local accName = getAccountName ( getPlayerAccount ( hitPlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then moveObject (a1, 300, 907.19921875, 1841.5, 19.699998855591) moveObject (b1, 300, 872.29998779297, 1728.0999755859, 30.10000038147) moveObject (c1, 2500, 890.5, 1764.1999511719, 31.799999237061) setTimer(moveObject,12000,1,a1,7000,907.19921875, 1841.5, 15.699999809265) setTimer(moveObject,12000,1,b1,7000,868.29998779297, 1728.4000244141, 30.10000038147) setTimer(moveObject,12000,1,c1,7000,892, 1764.1999511719, 31.799999237061) end end ) وشش تغير ؟؟ Link to comment
hassan.k.s.a Posted August 13, 2012 Share Posted August 13, 2012 انت اول ماطرحت الكود كنت حاط a1 a1 a1 في الوقت Link to comment
./BlackBird# Posted August 13, 2012 Author Share Posted August 13, 2012 ظبط بس مو عاجبني الماركر ابي بدون ماركر يعني لما يقرب يتحرك ولما يبعد يرجع زي ما كان تكفون مع شرح ابي اتعلم Link to comment
TAPL Posted August 13, 2012 Share Posted August 13, 2012 ذا لأول بوابة كمل الباقي بنفسك a1 = createObject (2938, 907.19921875, 1841.5, 15.699999809265, 0, 0, 265.99548339844) Cola1 = createColCircle(907.19921875, 1848, 10) function Open(pla) if getElementType(pla) == "player" then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(pla)), aclGetGroup("Admin" )) then moveObject (a1, 300, 907.19921875, 1841.5, 19.699998855591) end end end addEventHandler("onColShapeHit", Cola1, Open) function Close (pla) if getElementType(pla) == "player" then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(pla)), aclGetGroup("Admin" )) then moveObject (a1, 300, 907.19921875, 1841.5, 15.699999809265) end end end addEventHandler("onColShapeLeave", Cola1, Close) Link to comment
./BlackBird# Posted August 13, 2012 Author Share Posted August 13, 2012 (edited) مشكور بس ي ريت تشرح لي هذا Cola1 = createColCircle(907.19921875, 1848, 10) يعني احطه قريب من المتحرك ولا ايش؟ + ظبط و اشتغل Edited August 13, 2012 by Guest Link to comment
3NAD Posted August 13, 2012 Share Posted August 13, 2012 Cola1 = createColCircle(907.19921875, 1848, 10) Cola1 = createColCircle(x , y , z) Cola1 = الإختصار ححق الكود كامل x , y , z = الإحداثيات Link to comment
./BlackBird# Posted August 13, 2012 Author Share Posted August 13, 2012 يعني بس اخلي في واحد ؟ ولا على كل متحرك 1 و الاحديثيات احطها اي مكان ولا لازم ماكن معين؟ Link to comment
Tete omar Posted August 13, 2012 Share Posted August 13, 2012 Cola1 = createColCircle(907.19921875, 1848, 10) Cola1 = createColCircle(x , y , z) Cola1 = الإختصار ححق الكود كامل x , y , z = الإحداثيات خطأ الصح createColCircle ( float fX, float fY, float radius ) Link to comment
./BlackBird# Posted August 13, 2012 Author Share Posted August 13, 2012 هو ظبط بس ي اخوي ابيك تفهمني وين احط الاحداثيات ؟ 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