Jump to content

اريد كود التيم


Recommended Posts

function balanceTeams ( thePlayer ) 
    local groveTeam = getTeamFromName ( "n" ) 
    local ballasTeam = getTeamFromName ( "a" ) 
    local groveCount = countPlayersInTeam ( 15 ) 
    local ballasCount = countPlayersInTeam ( 15 ) 
    if groveCount == ballasCount then  
        setPlayerTeam ( thePlayer , n )  
    elseif groveCount > ballasCount then  
        setPlayerTeam ( thePlayer , a )  
    elseif groveCount < ballasCount then  
        setPlayerTeam ( thePlayer , a )  
    end 
end 

انه صح

Link to comment
ههههه لقد فهمت اني غبي بالفعل

بس كلمة غبي ماهي لايقة عليك ...

انت اذكى شخص عرفته بالعالم

ياخي مافهم ض1

افهم بس ماقرى تصدق لما تقلي اول مشوف رابط ويكي

افتحه ولا اقرى كلامك

هههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه

Link to comment
function balanceTeams ( thePlayer ) 
    local groveTeam = getTeamFromName ( "n" ) 
    local ballasTeam = getTeamFromName ( "a" ) 
    local groveCount = countPlayersInTeam ( 15 ) 
    local ballasCount = countPlayersInTeam ( 15 ) 
    if groveCount == ballasCount then  
        setPlayerTeam ( thePlayer , n )  
    elseif groveCount > ballasCount then  
        setPlayerTeam ( thePlayer , a )  
    elseif groveCount < ballasCount then  
        setPlayerTeam ( thePlayer , a )  
    end 
end 

انه صح

[-X

لا مهب صح

Link to comment
function balanceTeams ( source ) 
    --get the team pointers from their names 
    local groveTeam = getTeamFromName ( "grove" ) 
    local ballasTeam = getTeamFromName ( "ballas" ) 
    --count the number of players in each team, and store them 
    local groveCount = countPlayersInTeam ( groveTeam ) 
    local ballasCount = countPlayersInTeam ( ballasTeam ) 
    if groveCount == ballasCount then --if the teams are equal 
        setPlayerTeam ( thePlayer , groveTeam ) --place the player in grove 
    elseif groveCount > ballasCount then --if there are more in grove 
        setPlayerTeam ( thePlayer , ballasTeam ) --place him in ballas 
    elseif groveCount < ballasCount then --if there are more in ballas 
        setPlayerTeam ( thePlayer , groveTeam ) --place him in grove. 
    end 
end 

هذا الويكي

مع التعديل

Link to comment

اتوقع انه قالك حط لما يدخل الاعب

و غير

thePlayer

الى

source

    function balanceTeams () 
        local groveTeam = getTeamFromName ( "grove" ) 
        local ballasTeam = getTeamFromName ( "ballas" ) 
        local groveCount = countPlayersInTeam ( groveTeam ) 
        local ballasCount = countPlayersInTeam ( ballasTeam ) 
        if groveCount == ballasCount then 
            setPlayerTeam ( source, groveTeam ) 
        elseif groveCount > ballasCount then  
            setPlayerTeam ( source, ballasTeam )  
        elseif groveCount < ballasCount then  
            setPlayerTeam ( source, groveTeam )  
        end 
    end 
addEventHandler("onPlayerJoin", root,balanceTeams ) 

Edited by Guest
Link to comment
function balanceTeams ( source ) 
    --get the team pointers from their names 
    local groveTeam = getTeamFromName ( "grove" ) 
    local ballasTeam = getTeamFromName ( "ballas" ) 
    --count the number of players in each team, and store them 
    local groveCount = countPlayersInTeam ( groveTeam ) 
    local ballasCount = countPlayersInTeam ( ballasTeam ) 
    if groveCount == ballasCount then --if the teams are equal 
        setPlayerTeam ( source , groveTeam ) --place the player in grove 
    elseif groveCount > ballasCount then --if there are more in grove 
        setPlayerTeam ( source , ballasTeam ) --place him in ballas 
    elseif groveCount < ballasCount then --if there are more in ballas 
        setPlayerTeam ( source , groveTeam ) --place him in grove. 
    end 
end 

صح

Link to comment
  
  
addEventHandler ( "onPlayerJoin", getRootElement(), 
function() 
    local groveTeam = getTeamFromName ( "grove" ) 
    local ballasTeam = getTeamFromName ( "ballas" ) 
    local groveCount = countPlayersInTeam ( groveTeam ) 
    local ballasCount = countPlayersInTeam ( ballasTeam ) 
    if groveCount == ballasCount then 
        setPlayerTeam ( source , groveTeam ) 
    elseif groveCount > ballasCount then 
        setPlayerTeam ( source , ballasTeam ) 
    elseif groveCount < ballasCount then  
        setPlayerTeam ( source , groveTeam ) 
    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...