3tibe511 Posted March 24, 2013 Share Posted March 24, 2013 (edited) ذذ ابي اعرف طريقة عشان يضهر لتيم معين للي اقصد فيه بالمناطق هو هاذا createRadarArea وسلامتكم Edited March 24, 2013 by Guest Link to comment
iPrestege Posted March 24, 2013 Share Posted March 24, 2013 setElementVisibleTo أخوي تقدر تستخدم هذا الفنكشن Link to comment
3tibe511 Posted March 24, 2013 Author Share Posted March 24, 2013 ما اشتغل ويش الغلط function (source) local team = getPlayerTeam(source) if (team and getTeamName(team) == ("Wanted")) then SS= createRadarArea( 2130, 630, 200, 100, 0, 255, 0, 175 ) setElementVisibleTo (SS) end Link to comment
iPrestege Posted March 24, 2013 Share Posted March 24, 2013 اقرأ الويكي كويس عن الـ : setElementVisibleTo وانت اخفية بـ الاول ثم اظهره للتيم! Link to comment
3tibe511 Posted March 24, 2013 Author Share Posted March 24, 2013 نفس المشكلة ماتغير شي Link to comment
iPrestege Posted March 24, 2013 Share Posted March 24, 2013 هذا بـ كوماند سوية باللي تبية انت ي الغالي local SS = createRadarArea( 2130, 630, 200, 100, 0, 255, 0, 175 ); setElementVisibleTo(SS,root,false); addCommandHandler("Show", function ( thePlayer ) local team = getPlayerTeam ( thePlayer ); local team = ( team and getTeamName ( team ) ); if ( team == "Wanted" ) then setElementVisibleTo(SS,thePlayer,true); outputChatBox("* You Can See The Radar Area Now!",thePlayer,0,255,0,true); else outputChatBox("* You Can't For Wanted Team only!",thePlayer,255,0,0,true); end end ); Link to comment
3tibe511 Posted March 24, 2013 Author Share Posted March 24, 2013 يعطيك العافية ماقصرت والله Link to comment
iPrestege Posted March 24, 2013 Share Posted March 24, 2013 حياك الله واذا حاب تسوية مثلا بدون كوماند تقدر كذا : local SS = createRadarArea( 2130, 630, 200, 100, 0, 255, 0, 175 ); setElementVisibleTo(SS,root,false); addEventHandler("onResourceStart",resourceRoot, function ( ) for i, player in pairs(getElementsByType("player")) do local team = getPlayerTeam ( player ); local team = ( team and getTeamName ( team ) ); if ( team == "Wanted" ) then setElementVisibleTo(SS,player,true); outputChatBox("* You Can See The Radar Area Now!",player,0,255,0,true); else outputChatBox("* You Can't For Wanted Team only!",player,255,0,0,true); end end end ); في خدمتكم ي الغالي Link to comment
3tibe511 Posted March 24, 2013 Author Share Posted March 24, 2013 يالطيب اذا ماعليك امر ابي المناطق في جدول انا مالي بالجداول شي وصعبة شوي Link to comment
iPrestege Posted March 24, 2013 Share Posted March 24, 2013 ورني احداثياتك اللي تبيها Link to comment
3tibe511 Posted March 25, 2013 Author Share Posted March 25, 2013 اي احداثيات انا اعدل عليها بعدين عشان انا ابي احط اكثر من منطقة وابي اختصر الوقت والحجم Link to comment
iPrestege Posted March 25, 2013 Share Posted March 25, 2013 local RadarArea = { [1] = {leftX,bottomY,sizeX,sizeY,r,g,b,a}, [2] = {leftX,bottomY,sizeX,sizeY,r,g,b,a}, [3] = {leftX,bottomY,sizeX,sizeY,r,g,b,a}, [4] = {leftX,bottomY,sizeX,sizeY,r,g,b,a}, [5] = {leftX,bottomY,sizeX,sizeY,r,g,b,a}, [6] = {leftX,bottomY,sizeX,sizeY,r,g,b,a}, [7] = {leftX,bottomY,sizeX,sizeY,r,g,b,a}, [8] = {leftX,bottomY,sizeX,sizeY,r,g,b,a}, [9] = {leftX,bottomY,sizeX,sizeY,r,g,b,a}, [10] = {leftX,bottomY,sizeX,sizeY,r,g,b,a}, } addEventHandler("onResourceStart",resourceRoot, function ( ) for k,v in ipairs ( RadarArea ) do local area = createRadarArea(v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8]); setElementVisibleTo (area,root,false); for i, player in pairs(getElementsByType("player")) do local team = getPlayerTeam ( player ); local team = ( team and getTeamName ( team ) ); if ( team == "Wanted" ) then setElementVisibleTo(area,player,true); outputChatBox("* You Can See The Radar Area Now!",player,0,255,0,true); else outputChatBox("* You Can't For Wanted Team only!",player,255,0,0,true); end end end end ); اظن انك فاهم الارقمنت حق الترتيب حق الرادار طبعا كل شيء تقدر تحط لة لون وكذا يعني [1] = {leftX,bottomY,sizeX,sizeY,r,g,b,a}, حطيت لك 10 رادارات غيرها للي تبي 8 او اللي تبية ذذ الزبدهـ اللي عليك تسوي الارقمنت الالوان واللي كذا وبالتوفيق ان شاء الله Link to comment
3tibe511 Posted March 25, 2013 Author Share Posted March 25, 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