Jump to content

ضهور المناطق فقط للتيم [تمت الافادة]


Recommended Posts

ما اشتغل ويش الغلط

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

هذا بـ كوماند سوية باللي تبية انت ي الغالي

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

حياك الله واذا حاب تسوية مثلا بدون كوماند تقدر كذا :

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...