TD[M]ER Posted January 2, 2013 Share Posted January 2, 2013 السلام عليكم ورحمةة اللهه وبركاتهه .. اخواني وش استعمل من وظايف لو بغيت اللاعب لو دخل ماركر يتعطل السسلاح مايطلق او انهه .. يختفي .. وشكرا وياليت تساعدوني بسرعه ذذ Link to comment
TD[M]ER Posted January 2, 2013 Author Share Posted January 2, 2013 Marker = createMarker(x,y,z,'type',size,255,r,b,g) addEventHandler('onClientMarkerHit',Marker, function(hitElement) if(getElementType(hitElement)=='player')then setPedControlState ( hitElement, false ) end end) كذا ؟ Link to comment
abu5lf Posted January 2, 2013 Share Posted January 2, 2013 toggleControl( 'fire', false ) -- تعطيل اطلاق النار toggleControl( 'fire', true ) -- تمكين اطلاق النار Link to comment
TD[M]ER Posted January 2, 2013 Author Share Posted January 2, 2013 Marker = createMarker(x,y,z,'type',size,255,r,b,g) addEventHandler('onClientMarkerHit',Marker, function(hitElement) if(getElementType(hitElement)=='player')then toggleControl( 'fire', false end end) ? Link to comment
abu5lf Posted January 2, 2013 Share Posted January 2, 2013 marker = createMarker( 0, 0, 0 ) function onMarker( player ) if player == localPlayer then if eventName == 'onClientMarkerHit' then toggleControl( 'fire', false ) elseif eventName == 'onClientMarkerLeave' then toggleControl( 'fire', true ) end end end addEventHandler( 'onClientMarkerHit', marker, onMarker ) addEventHandler( 'onClientMarkerLeave', marker, onMarker ) Link to comment
TD[M]ER Posted January 2, 2013 Author Share Posted January 2, 2013 marker = createMarker( 0, 0, 0 ) function onMarker( player ) if player == localPlayer then if eventName == 'onClientMarkerHit' then toggleControl( 'fire', false ) elseif eventName == 'onClientMarkerLeave' then toggleControl( 'fire', true ) end end end addEventHandler( 'onClientMarkerHit', marker, onMarker ) addEventHandler( 'onClientMarkerLeave', marker, onMarker ) تسسسسسسسسسسلم ي لبى قلبككـ وجاري التجربهه Link to comment
abu5lf Posted January 2, 2013 Share Posted January 2, 2013 شغال معي الكود كلنت تأكد من عندك Link to comment
TD[M]ER Posted January 2, 2013 Author Share Posted January 2, 2013 marker = createMarker( -4222.97949, -2997.52490 , 379.22849 "cylinder", 70, 0, 0, 0, 0 ) function onMarker( player ) if player == localPlayer then if eventName == 'onClientMarkerHit' then toggleControl( 'fire', false ) elseif eventName == 'onClientMarkerLeave' then toggleControl( 'fire', true ) end end end addEventHandler( 'onClientMarkerHit', marker, onMarker ) addEventHandler( 'onClientMarkerLeave', marker, onMarker ) Link to comment
abu5lf Posted January 2, 2013 Share Posted January 2, 2013 عندك فاصلة ناقصة في كود الماركر حط هذا بداله : marker = createMarker( -4222.97949, -2997.52490 , 379.22849, 'cylinder', 70, 0, 0, 0, 0 ) Link to comment
TD[M]ER Posted January 2, 2013 Author Share Posted January 2, 2013 عندك فاصلة ناقصة في كود الماركر حط هذا بداله : marker = createMarker( -4222.97949, -2997.52490 , 379.22849, 'cylinder', 70, 0, 0, 0, 0 ) تسسسسسسسسسسسسللم ي لبى قلبككـ ماقصرتت واللهه .. تعبتكـ معاي يالغلا .. ظبط الحين 100% ماقصرت تسلم عاشق , عناد 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