Jump to content

مشكلة , في مآركر


Recommended Posts

سويته سيرفر وللحين على نفس آلمشكله

myMarker2 = createMarker ( 1299.6129150391, -796.72637939453, 1084.2080078125, "cylinder", 1.5, 0, 144, 255 ) 
setElementInterior ( player , 5 ) 
setElementDimension ( player , 12345  ) 
  
function MarkerHit2( player, matchingDimension ) 
setElementPosition ( player, 1330.3448486328, -1066.1788330078, 29.288482666016 )  
setElementInterior ( player , 0 ) 
setElementDimension ( player , 0  ) 
end 
  
addEventHandler( "onClientMarkerHit", myMarker2, MarkerHit2 ) 
  

Link to comment

myMarker2 = createMarker ( 1299.6129150391, -796.72637939453, 1084.2080078125, "cylinder", 1.5, 0, 144, 255 ) 
addEventHandler( "onMarkerHit", myMarker2,  
function ( element ) 
   if ( getElementType ( element ) == "player" ) then 
    if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then 
     if ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( element ) ), aclGetGroup ( "Class" ) ) ) then 
           setElementInterior ( element, 5, 1302.2878417969, -789.06280517578, 1083.9079589844 ) 
           setElementDimension ( element, 12345  ) 
   else 
           outputChatBox( "* Classic & Prince House", element )   
        end 
      end 
    end 
  end 
) 

-- سيرفر

Link to comment
myMarker2 = createMarker ( 1299.6129150391, -796.72637939453, 1084.2080078125, "cylinder", 1.5, 0, 144, 255 ) 
addEventHandler( "onMarkerHit", myMarker2,  
function ( element ) 
   if ( getElementType ( element ) == "player" ) then 
    if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then 
     if ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( element ) ), aclGetGroup ( "Class" ) ) ) then 
           setElementInterior ( element, 5, 1302.2878417969, -789.06280517578, 1083.9079589844 ) 
           setElementDimension ( element, 12345  ) 
   else 
           outputChatBox( "* Classic & Prince House", element )   
        end 
      end 
    end 
  end 
) 

-- سيرفر

معد يشتغل , خلآص كنسلو آلسآلفه ويعطيكم آلعافيه تعبتكم معي

Link to comment

يعطيك آلعافيه ضبط لكن آلكود آلي داخل آلبيت م ضبط

  
  
myMarker2 = createMarker ( 1299.0317382813 , -796.89575195313 , 1083.6079101563 , "cylinder", 1.5, 0, 204, 255 ) 
            setElementInterior ( element, 5 ) 
            setElementDimension ( element, 12345 )       
             
addEventHandler( "onMarkerHit", myMarker2, 
function ( element ) 
                setElementInterior ( element, 0, 1330.3448486328, -1066.1788330078, 29.288482666016 ) 
                setElementDimension ( element, 0 ) 
                end) 
  

مع إني لما آحطه في برنامج MTA Script Editor مآيطلع لي أخطاء !!

Link to comment

استبدله الى .. :

myMarker2 = createMarker ( 1299.0317382813 , -796.89575195313 , 1083.6079101563 , "cylinder", 1.5, 0, 204, 255 ) 
setElementInterior ( myMarker2, 5 ) 
setElementDimension ( myMarker2, 12345 )       
            
addEventHandler( "onMarkerHit", myMarker2, function ( element ) 
   if ( getElementType ( element ) == "player" ) then 
        setElementInterior ( element, 0, 1330.3448486328, -1066.1788330078, 29.288482666016 ) 
        setElementDimension ( element, 0 ) 
    end 
end ) 
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...