Jump to content

تصحيح كود


Recommended Posts

السلام عليكم يا شباب وش المشكلة في هذا الكود :$ا

Team = createTeam ( "Admin", 255, 0, 0 ) 
  
Accountss = { 
    "Manster", 
    "fhooody", 
    "danger", 
    "sami" 
    "HasTra" 
}  
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
                for k,v in ipairs ( Accountss ) do 
            if getAccountName ( Account ) == v then 
            setPlayerTeam( source, Team ) 
            setTeamFriendlyFire(Team,false) 
        end 
    end 
) 

Link to comment
السلام عليكم يا شباب وش المشكلة في هذا الكود :$ا
Team = createTeam ( "Admin", 255, 0, 0 ) 
  
Accountss = { 
    "Manster", 
    "fhooody", 
    "danger", 
    "sami" 
    "HasTra" 
}  
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
                for k,v in ipairs ( Accountss ) do 
            if getAccountName ( Account ) == v then 
            setPlayerTeam( source, Team ) 
            setTeamFriendlyFire(Team,false) 
        end 
    end 
) 

  
Team = createTeam ( "Admin", 255, 0, 0 ) 
  
  
  
Accountss = { 
  
    "Manster", 
  
    "fhooody", 
  
    "danger", 
  
    "sami", 
  
    "HasTra" 
  
}  
  
  
  
addEventHandler ( "onPlayerLogin", root, 
  
    function ( _, Account ) 
  
                for k,v in ipairs ( Accountss ) do 
  
            if getAccountName ( Account ) == v then 
  
            setPlayerTeam( source, Team ) 
  
            setTeamFriendlyFire(Team,false) 
  
        end 
  
    end 
     
    end 
  
) 
Link to comment
السلام عليكم يا شباب وش المشكلة في هذا الكود :$ا
Team = createTeam ( "Admin", 255, 0, 0 ) 
  
Accountss = { 
    "Manster", 
    "fhooody", 
    "danger", 
    "sami" 
    "HasTra" 
}  
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
                for k,v in ipairs ( Accountss ) do 
            if getAccountName ( Account ) == v then 
            setPlayerTeam( source, Team ) 
            setTeamFriendlyFire(Team,false) 
        end 
    end 
) 

  
Team = createTeam ( "Admin", 255, 0, 0 ) 
  
  
  
Accountss = { 
  
    "Manster", 
  
    "fhooody", 
  
    "danger", 
  
    "sami", 
  
    "HasTra" 
  
}  
  
  
  
addEventHandler ( "onPlayerLogin", root, 
  
    function ( _, Account ) 
  
                for k,v in ipairs ( Accountss ) do 
  
            if getAccountName ( Account ) == v then 
  
            setPlayerTeam( source, Team ) 
  
            setTeamFriendlyFire(Team,false) 
  
        end 
  
    end 
     
    end 
  
) 

مشكور لبى قلبك

Link to comment
السلام عليكم يا شباب وش المشكلة في هذا الكود :$ا
Team = createTeam ( "Admin", 255, 0, 0 ) 
  
Accountss = { 
    "Manster", 
    "fhooody", 
    "danger", 
    "sami" 
    "HasTra" 
}  
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, Account ) 
                for k,v in ipairs ( Accountss ) do 
            if getAccountName ( Account ) == v then 
            setPlayerTeam( source, Team ) 
            setTeamFriendlyFire(Team,false) 
        end 
    end 
) 

  
Team = createTeam ( "Admin", 255, 0, 0 ) 
  
  
  
Accountss = { 
  
    "Manster", 
  
    "fhooody", 
  
    "danger", 
  
    "sami", 
  
    "HasTra" 
  
}  
  
  
  
addEventHandler ( "onPlayerLogin", root, 
  
    function ( _, Account ) 
  
                for k,v in ipairs ( Accountss ) do 
  
            if getAccountName ( Account ) == v then 
  
            setPlayerTeam( source, Team ) 
  
            setTeamFriendlyFire(Team,false) 
  
        end 
  
    end 
     
    end 
  
) 

مشكور لبى قلبك

العفو ...

Link to comment

  
Team = createTeam ( "Admin", 255, 0, 0 ) 
  
  
  
Accountss = { 
  
    "Manster", 
  
    "fhooody", 
  
    "danger", 
  
    "sami", 
  
    "HasTra" 
  
} 
  
  
  
addEventHandler ( "onPlayerLogin", root, 
  
    function ( _, Account ) 
  
                for k,v in ipairs ( Accountss ) do 
  
            if getAccountName ( Account ) == v then 
  
            setPlayerTeam( source, Team ) 
  
        end 
  
    end 
    
    end 
  
) 
addEventHandler("onResourceStart",resourceRoot, 
function () 
setTeamFriendlyFire(Team,false) 
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...