PaiN^ Posted February 10, 2013 Share Posted February 10, 2013 السلآمـ عليكمـ ممكن توضحوا لي الغلط وين 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
iPrestege Posted February 10, 2013 Share Posted February 10, 2013 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
PaiN^ Posted February 10, 2013 Author Share Posted February 10, 2013 مشكور برستيج ما قصرت + ما شاء الله عليكـ دايمـ تساعد المفروض يخلوك مشرف ذذ 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