ايهاب Posted October 29, 2015 Share Posted October 29, 2015 سلام علكيم انا عندى فى اى ماركر الشرطة تقدر تقف علية اذا كان محل ملابس او سرقة بنك دة ماركر سرقة البنك function createRob() Marker = createMarker(346.895, 162.182, 1024.7,"cylinder",1.2,255,0,0,100) setElementInterior (Marker,3) setElementDimension (Marker,0) outputChatBox( "الان يمكن ان يسرق البنك Now possible theft Bank.", root, 000, 444, 110 ) end addEventHandler("onResourceStart", resourceRoot,createRob) وبقول مساعدة مهمة لان لو عرفت اذا اخلى تيم الشرطة مايستخدم الماركر هيساعدنى فى حاجات تانية متشابهة شرطى يسرق ويجيلوة نجوم Link to comment
SycroX Posted October 29, 2015 Share Posted October 29, 2015 'onMarkerHit' getTeamName getPlayerTeam cancelEvent حاول لو ما عرفت هعطيك الكود جاهز لانو سهل Link to comment
ايهاب Posted October 29, 2015 Author Share Posted October 29, 2015 مش هعرف اعملها الصراحة Link to comment
SycroX Posted October 29, 2015 Share Posted October 29, 2015 (edited) addEventHandler( "onMarkerHit", Marker, function( hit, dim ) if getElementType(hit) == "player" and getPlayerTeam(hit) then if getPlayerTeam(hit) == getTeamFromName("Police") then return end end end ); الكود من الأخ مدير MoDer2014 Edited October 29, 2015 by Guest Link to comment
Me[Z]oO Posted October 29, 2015 Share Posted October 29, 2015 cancelEvent بس اهم شي تحقق ان اللاعب الي دخل الماركر شرطي ولو ما فهمت تعا سكايبي اوضحلك اكثر Link to comment
SycroX Posted October 29, 2015 Share Posted October 29, 2015 الكود الي معطيه له صحيح :- مجربه علي ماركر لوحة عادي Link to comment
SycroX Posted October 29, 2015 Share Posted October 29, 2015 ده كودي و الي فوق حق مدير تقدر تستعمل الأثنين بس حق مدير افضل لاني ما جربت كودي addEventHandler( "onMarkerHit", Marker, function() if getTeamName(getPlayerTeam(source)) == "Police" then cancelEvent() end end ) Link to comment
Rockyz Posted October 29, 2015 Share Posted October 29, 2015 كذا مابيفهم المهم دور حدث اسمه onMarkerHit طيب خل هذا فيه اول سطر function ( plrs ) if ( getElementType ( plrs ) == "player" ) then local GtTeam = getPlayerTeam ( plrs ) local GtName = getTeamName ( GtTeam ) if ( GtTeam and GtName == "Police" ) then return outputChatBox ( "You Cant Do This Because You Are In Police Team !", plrs, 255, 255 , 0, true ) end end 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