Jump to content

اريد تصحيح علي كود البوابه


Recommended Posts

السلام عليكم ورحمة الله وبركاته

اريد تصحيح علي كود البوابة واذا كان في خطأ تعرفوني وش هو

لكم الكود

    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

وعليكم السلام .

كودك يصير كذا

ما جربته

   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
وعليكم السلام .

كودك يصير كذا

ما جربته

   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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...