Jump to content

!! توضيح للخطأ


PaiN^

Recommended Posts

السلآمـ عليكمـ

:D ممكن توضحوا لي الغلط وين

marker1 = createMarker( 96.475898742676, 1920.5272216797, 18.138929367065, "cylinder", 4.5, 255, 255, 255, 255 ) 
markerb1 = createMarker( 1726.9323730469, -1638.7202148438, 20.223373413086, "arrow", 1, 255, 255, 255, 255 ) 
  
addEventHandler("onMarkerHit", root, 
    function (player) 
        if ( getElementType( player ) == "player" ) then 
            if ( player == marker1 ) then 
                if hasObjectPermissionTo( player, "command.kick", true ) then 
                    setElementPosition( player, 1726.5913085938, -1642.021484375, 20.224987030029 ) 
                    setElementInterior( player, 18 ) 
                    setElementDimension( player, 0 ) 
                    outputChatBox( "مرحبا في مقر الأدمن", player, 0, 210, 0, true ) 
                else 
                    killPed( player ) 
                    outputChatBox( "!! للأدمن فقط", player, 210, 0, 0, true ) 
                end 
            elseif ( player == markerb1 ) then 
                setElementPosition( player, 92.078323364258, 1921.2082519531, 17.99840927124 )  
                setElementInterior( player, 0 ) 
                setElementDimension( player, 0 ) 
                outputChatBox( "لقد غادرت مقر الأدمن", player, 210, 0, 0, true ) 
            end 
        end 
    end 
) 

Link to comment

marker1 = createMarker( 96.475898742676, 1920.5272216797, 18.138929367065, "cylinder", 4.5, 255, 255, 255, 255 ) 
markerb1 = createMarker( 1726.9323730469, -1638.7202148438, 20.223373413086, "arrow", 1, 255, 255, 255, 255 ) 
setElementInterior(markerb1, 18 ) 
  
addEventHandler("onMarkerHit", root, 
    function (player) 
      if ( getElementType( player ) == "player" ) and ( source == marker1 ) then 
                if hasObjectPermissionTo( player, "command.kick", true ) then 
                    setElementPosition( player, 1726.5913085938, -1642.021484375, 20.224987030029 ) 
                    setElementInterior( player, 18 ) 
                    setElementDimension( player, 0 ) 
                    outputChatBox( "مرحبا في مقر الأدمن", player, 0, 210, 0, true ) 
                else 
                    killPed( player ) 
                    outputChatBox( "!! للأدمن فقط", player, 210, 0, 0, true ) 
                end 
            elseif ( source == markerb1 ) then 
                setElementPosition( player, 92.078323364258, 1921.2082519531, 17.99840927124 )  
                setElementInterior(player, 0 ) 
                setElementDimension( player, 0 ) 
                outputChatBox( "لقد غادرت مقر الأدمن", player, 210, 0, 0, true ) 
            end 
        end 
) 

والماركر الثاني مسوية داخل المقر صحيح ؟ يعني المفترض تسوي انتيرور للماركر!! ذذ

setElementInterior

* سويتها لك للمعلومية ذذ

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...