Jump to content

اش الغلط في كود setTeamFriendlyFire


Recommended Posts

الموضوع باين من عنوانه احط ذا الكود ما يشتغل

local allTeams = getElementsByType ( "team" ) 
  
for index, theTeam in ipairs(allTeams) do 
    if ( getTeamFriendlyFire ( Police ) == true ) then 
        setTeamFriendlyFire ( Police, false ) 
    end 
end 

Link to comment
    local allTeams = getElementsByType ( "team" ) 
      
    for index, theTeam in ipairs(allTeams) do 
        if ( getTeamFriendlyFire ( theTeam ) == true ) then 
            -- switch it on 
            setTeamFriendlyFire ( theTeam, false ) 
        end 
    end 

Link to comment
للمعلومية ! الكود بيسوي تيم فرندلي لكل التيمات بالروم!

يب

إذا تبيه لفريق واحد :

local allTeams = getElementsByType ( 'team' ); 
  
for index, theTeam in ipairs ( allTeams ) do 
    if getTeamName ( theTeam ) == 'Police' then 
        if getTeamFriendlyFire ( theTeam ) == true then 
            -- switch it on 
            setTeamFriendlyFire ( theTeam, false ); 
        end 
    end 
end 

لإسم الفريق Police غير

Link to comment
للمعلومية ! الكود بيسوي تيم فرندلي لكل التيمات بالروم!

يب

إذا تبيه لفريق واحد :

local allTeams = getElementsByType ( 'team' ); 
  
for index, theTeam in ipairs ( allTeams ) do 
    if getTeamName ( theTeam ) == 'Police' then 
        if getTeamFriendlyFire ( theTeam ) == true then 
            -- switch it on 
            setTeamFriendlyFire ( theTeam, false ); 
        end 
    end 
end 

لإسم الفريق Police غير

واذا كان التيم مو من نفس المود

local allTeams = getElementsByType ( 'team' ) 
  
for index, theTeam in ipairs ( allTeams ) do 
    if getTeamFromName ( theTeam ) == 'Police' then 
            setTeamFriendlyFire ( theTeam, false ) 
        end 
end 

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...