Nickelz Posted August 14, 2013 Share Posted August 14, 2013 (edited) السلآآم عليكم واجهتني مشكلة فـ صناعة ماركر بـ كوماند ,ومسووي كوماند يخفي الماركر, بس اذا طلعت ماركرين, وكتبت الامر, يخفي الماركر الثاني بسس, انا ابيه يخفي كلل الماركرات اللي من هـ الكوماند الكود function CreateMarker ( playerSource ) if ( playerSource ) then local x, y, z = getElementPosition ( playerSource ) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then test = createMarker ( x, y, z, "checkpoint", 2, 255, 0, 0, 255 ) addEventHandler("onMarkerHit", test, vehicles) --لآآحد يسألني عننه, الوظيفة حقته موجودة outputChatBox ( "You got a red marker", playerSource ) end end end addCommandHandler ( "createmarker", CreateMarker ) function CreateMarkersz ( playerSource ) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then destroyElement( test ) end end addCommandHandler ( "dmarker", cCreateMarkersz ) اتمنى انككم تفهمون, لآآني ماعرف اشرحح حالتي ض1 شكرا Edited August 14, 2013 by Guest Link to comment
AboShanab Posted August 14, 2013 Share Posted August 14, 2013 اقول لك افضل ادمجه مع الصنع .. function CreateMarker ( playerSource ) if ( playerSource ) then local x, y, z = getElementPosition ( playerSource ) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then if (isElement(test)) then destroyElement(test) test = nil end test = createMarker ( x, y, z, "checkpoint", 2, 255, 0, 0, 255 ) addEventHandler("onMarkerHit", test, vehicles) outputChatBox ( "You got a red marker", playerSource ) end end end addCommandHandler ( "createmarker", CreateMarker ) سويته لك لو كتبت createmarker والماركر موجود من قبل يحذفه ويسوي ماركر Link to comment
Nickelz Posted August 14, 2013 Author Share Posted August 14, 2013 لببى شنببك, ماتقدر تصير لحية؟ هههه آمزحح تسسلم, تمت الافادة Link to comment
AboShanab Posted August 14, 2013 Share Posted August 14, 2013 ولبى .. هههههههههههههههههههههههههههههههههههههههههههههه المهم ان تمت الافادة حط اسم الموضوع : صناعة ماركر بـ كوماند | تمت الافادة العفو .. حياك الله .. Link to comment
فاّرس Posted August 14, 2013 Share Posted August 14, 2013 السلآآم عليكمواجهتني مشكلة فـ صناعة ماركر بـ كوماند ,ومسووي كوماند يخفي الماركر, بس اذا طلعت ماركرين, وكتبت الامر, يخفي الماركر الثاني بسس, انا ابيه يخفي كلل الماركرات اللي من هـ الكوماند الكود function CreateMarker ( playerSource ) if ( playerSource ) then local x, y, z = getElementPosition ( playerSource ) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then test = createMarker ( x, y, z, "checkpoint", 2, 255, 0, 0, 255 ) addEventHandler("onMarkerHit", test, vehicles) --لآآحد يسألني عننه, الوظيفة حقته موجودة outputChatBox ( "You got a red marker", playerSource ) end end end addCommandHandler ( "createmarker", CreateMarker ) function CreateMarkersz ( playerSource ) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then destroyElement( test ) end end addCommandHandler ( "dmarker", cCreateMarkersz ) اتمنى انككم تفهمون, لآآني ماعرف اشرحح حالتي ض1 شكرا حزر فزر ما اشوف الا ماركر واحد ؟ + ابو شنب اظن قال يبي الكود الثاني يحذف الماركر ما اشوفك حطيته ؟ 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