Jump to content

اكواد جماعيه


taha201100

Recommended Posts

صديقي سفاح احب الامثله حب :) لاهنت اعطيني مثال

كل فنكشن فيه امثله بالويكي

هذا مثال من فنكشن getPlayersInTeam

function killTeamFunction ( thePlayer, command, teamName ) 
    -- Find and kill all the players in the team that was specified with the console command 
    local theTeam = getTeamFromName ( teamName ) 
    if ( theTeam ) then 
        local players = getPlayersInTeam ( theTeam ) 
        -- Loop through the player table 
        for playerKey, playerValue in ipairs ( players ) do 
            -- kill the player 
            killPlayer ( playerValue ) 
        end 
    end 
end 
  
addCommandHandler ( "killTeam", killTeamFunction ) 

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