z24d Posted July 27, 2015 Share Posted July 27, 2015 سلام عليكم بغيت اسوي ماركر عند بيت سيجي ويوديني للInterior حق سيجي وماضبط addEventHandler( "onMarkerHit", themarker, function () local themarker = createMarker( 2495.46216, -1691.12207, 14.76563, 'cylinder', 1.5, 255, 0, 0, 150) setElementDimension ( source, 20 ) setElementInterior ( source, 3 , 2495.46216 , -1691.12207 , 14.76563 ) outputChatBox( source, " Welcome To home Console " , 255, 255, 0 , false) end ) Link to comment
H25 Posted July 27, 2015 Share Posted July 27, 2015 شلون حاط حدث دخول الماركر والماركر مو موجود ؟ حط كود انشاء الماركر خارج الحدث واذا كان كودك كلنت استخدم onClientMarkerHit Link to comment
z24d Posted July 27, 2015 Author Share Posted July 27, 2015 شلون حاط حدث دخول الماركروالماركر مو موجود ؟ حط كود انشاء الماركر خارج الحدث واذا كان كودك كلنت استخدم onClientMarkerHit اخوي انا ابي الكود سيرفر \ انا مافهمت الي قلته بأول سطر Link to comment
Mr.R Posted July 27, 2015 Share Posted July 27, 2015 (edited) .. جرب كذا + ماتقدر تنتقل وانت راكب سيارهـ local TheMarker = createMarker ( 2495.46216, -1691.12207, 14.76563, "cylinder", 1.5, 255, 0, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( hitMarker ) if ( getElementType ( hitMarker) == "player" ) and ( source == TheMarker ) then if ( isPedInVehicle ( hitMarker ) ) then return end setElementDimension ( hitMarker, 20 ) setElementInterior ( hitMarker, 3, 2495.46216, -1691.12207, 14.76563 ) outputChatBox ( "* Welcome To Home Console", hitMarker, 255, 0, 0, true ) end end ) Edited July 27, 2015 by Guest Link to comment
#CroSs Posted July 27, 2015 Share Posted July 27, 2015 جرب كذا .. م جربته+ ماتقدر تنتقل وانت راكب سيارهـ local TheMarker = createMarker ( 2495.46216, -1691.12207, 14.76563, "cylinder", 1.5, 255, 0, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( isPedInVehicle ( player ) ) then return end if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then setElementDimension ( player, 20 ) setElementInterior ( player, 3, 2495.46216, -1691.12207, 14.76563 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) end end ) if ( isPedInVehicle ( player ) ) then return end if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then متحقق انه مو في سيارة قبل لا تتحقق انه لاعب Link to comment
#CroSs Posted July 27, 2015 Share Posted July 27, 2015 (edited) local Marker = createMarker( 2495.46216, -1691.12207, 14.76563, "cylinder", 1.5, 255, 0, 0, 150) addEventHandler ( "onMarkerHit", root, function(hitElement) if ( source == Marker ) and ( getElementType ( hitElement ) == "player" ) and not ( isPedInVehicle ( hitElement ) ) then setElementDimension ( hitElement, 20 ) setElementInterior ( hitElement, 3, 2495.46216, -1691.12207, 14.76563 ) outputChatBox ( "* Welcome To Home Console", hitElement, 255, 0, 0, true ) end end) Edited July 27, 2015 by Guest Link to comment
Mr.R Posted July 27, 2015 Share Posted July 27, 2015 if ( isPedInVehicle ( player ) ) then return end if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then متحقق انه مو في سيارة قبل لا تتحقق انه لاعب اهم شيء الكود صحيح , خخخ اختلاف اسطر , صلحته , مشكور ع التنبيه , والكود الحين تمام : ) 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