Jump to content

اكواد جماعيه


taha201100

Recommended Posts

Posted

السلام عليكم

ابي كود يعطي دم ودرع للجميع الي بالسيرفر مثلن

health 150 police

health يعني كلمة اعطاء الدم

150 النسبة

police اسم التيم

ابي كود مثل كذا ويا ريت شرح ويكون واضح

Posted

addCommandHandler -- أضافة أمر جديد 
getPlayersInTeam -- أحضار اللاعبين الي بالتيم 
getTeamFromName -- أحضاء التيم من أسمه 
setElementHealth -- أعطاء دم 
Posted
صديقي سفاح احب الامثله حب :) لاهنت اعطيني مثال

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

هذا مثال من فنكشن 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 ) 

Posted

مثآل لـجميع اللاعبين .. :P ..

addCommandHandler ("setHealth", function (thePlayer,cmd,Health) 
if ( Health ) then 
for key,player in ipairs (getElementsByType ("player")) do 
setElementHealth (player,Health) 
             end 
         end 
    end 
 ) 
Posted

اخوي تابل فاهم عليك بس مثلن ابي يقول لي كل سطر وش اغير فيه اتمنى فهمتني سفاح ما بقصر ان شاء الله

Posted
الحين سفاح ذا كذا جاهز يعني للتركيب؟

مجرد مثآل تطبق عليه أنا نا مسويه لكل اللاعبين أنت سويه لتيم معين

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