Ac[T]ioN Posted June 16, 2014 Share Posted June 16, 2014 السلام عليكم ورحمة الله وبركاته اريد تصحيح علي كود البوابة واذا كان في خطأ تعرفوني وش هو لكم الكود Object = createObject(980,2464.6000976563,-1658.9000244141,15.10000038147,0,0,270 ) marker = createMarker( 2464.3999023438,-1658.8000488281,13.300000190735 ,"cylinder",9,0,0,0,0) addEventHandler("onMarkerHit", marker, function (thePlayer) if ( hitPlayer == localPlayer ) and getPlayerTeam( hitPlayer ) and getTeamName( getPlayerTeam( hitPlayer ) ) == 'player' and getElementData( hitPlayer, 'Group' ) == '[Zx]' then moveObject( Object, 1000, 2464.6000976563,-1658.9000244141,19.89999961853 ) end end ) addEventHandler("onMarkerLeave", marker, function (thePlayer) if ( hitPlayer == localPlayer ) and getPlayerTeam( hitPlayer ) and getTeamName( getPlayerTeam( hitPlayer ) ) == 'player' and getElementData( hitPlayer, 'Group' ) == '[Zx]' then moveObject( Object, 5000, 2464.6000976563,-1658.9000244141,15.10000038147 ) end end ) والسلام عليكم ورحمة الله وبركاته Link to comment
Max+ Posted June 16, 2014 Share Posted June 16, 2014 في الاكواد معرف hitPlayer , وفي الفنكشن , function (thePlayer) Link to comment
Ac[T]ioN Posted June 16, 2014 Author Share Posted June 16, 2014 اخوي مو فاهم يعني الحين الكود تمام ولا لا؟ واذا مو تمام ظبطه لي لاهنت Link to comment
Simba Posted June 16, 2014 Share Posted June 16, 2014 وعليكم السلام . كودك يصير كذا ما جربته Object = createObject(980,2464.6000976563,-1658.9000244141,15.10000038147,0,0,270 ) marker = createMarker( 2464.3999023438,-1658.8000488281,13.300000190735 ,"cylinder",9,0,0,0,0) addEventHandler("onMarkerHit", marker, function ( thePlayer ) if getElementType(thePlayer) == "player" and getPlayerTeam( thePlayer ) and getTeamName( getPlayerTeam( thePlayer ) ) == 'player' and getElementData( thePlayer, 'Group' ) == '[Zx]' then moveObject( Object, 1000, 2464.6000976563,-1658.9000244141,19.89999961853 ) end end ) addEventHandler("onMarkerLeave", marker, function (thePlayer) if getElementType(thePlayer) == "player" and getPlayerTeam( thePlayer ) and getTeamName( getPlayerTeam( thePlayer ) ) == 'player' and getElementData( thePlayer, 'Group' ) == '[Zx]' then moveObject( Object, 5000, 2464.6000976563,-1658.9000244141,15.10000038147 ) end end ) بالسطر 7 انت كاتب يتححق من التيم وكاتب اسم التيم player هل اسم التيم الي انت مسويه player ?? Link to comment
Ac[T]ioN Posted June 16, 2014 Author Share Posted June 16, 2014 وعليكم السلام . كودك يصير كذا ما جربته Object = createObject(980,2464.6000976563,-1658.9000244141,15.10000038147,0,0,270 ) marker = createMarker( 2464.3999023438,-1658.8000488281,13.300000190735 ,"cylinder",9,0,0,0,0) addEventHandler("onMarkerHit", marker, function ( thePlayer ) if getElementType(thePlayer) == "player" and getPlayerTeam( thePlayer ) and getTeamName( getPlayerTeam( thePlayer ) ) == 'player' and getElementData( thePlayer, 'Group' ) == '[Zx]' then moveObject( Object, 1000, 2464.6000976563,-1658.9000244141,19.89999961853 ) end end ) addEventHandler("onMarkerLeave", marker, function (thePlayer) if getElementType(thePlayer) == "player" and getPlayerTeam( thePlayer ) and getTeamName( getPlayerTeam( thePlayer ) ) == 'player' and getElementData( thePlayer, 'Group' ) == '[Zx]' then moveObject( Object, 5000, 2464.6000976563,-1658.9000244141,15.10000038147 ) end end ) بالسطر 7 انت كاتب يتححق من التيم وكاتب اسم التيم player هل اسم التيم الي انت مسويه player ?? نعم اخوي 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