Jump to content

العدد


Sfa7

Recommended Posts

Posted

سلام عليكم

شباب ابي الاكواد المطلوبه مشان اسوي مثلا

ابي اكتب كلمه في اف8

تجيبلي عدد الاعبين الي في العالم الوهمي الذي رقمه 501

وشكرا

Posted
سلام عليكم

شباب ابي الاكواد المطلوبه مشان اسوي مثلا

ابي اكتب كلمه في اف8

تجيبلي عدد الاعبين الي في العالم الوهمي الذي رقمه 501

وشكرا

getElementsByType 
getElementDimension 
addCommandHandler 

Posted
addCommandHandler("km",function(player) 
    if getElementType(player) == "player" then  
        if count = getElementDimension ( player ) == "501" then 
            outputChatBox ( ""..count.." this is player In Dimension ",player,255,0,0,true) 
        end 
    end 
end) 

سويت كذا وماضبط

Posted
addCommandHandler("km", 
function(player) 
 local count = 0 
 for i,v in ipairs (getElementsByType("player")) do 
  if getElementDimension ( v) == 501 then 
   count = count  + 1  
 end 
end 
  outputChatBox ( ""..count.." this is player In Dimension ",player,255,0,0,true) 
end 
) 

Posted

شككرا اخوي

بس ممكن سوال

ليه ماسويت كذا ؟

addCommandHandler("km", 
function(player) 
    local count = 0 
    for i,v in ipairs (getElementsByType("player")) 
        if getElementDimension ( v) == "501" then 
            count = count  + 1 
            outputChatBox ( ""..count.." this is player In Dimension ",player,255,0,0,true) 
        end 
    end 
end) 

وش الفرق بين كذا وطريقتك ؟

Posted

اها يعطيك العافيه ي شنب

بس ممكن طلب بسيط :)

ابي لو واحد داخل تيم اسمه

ولمس ماركر

admin

وواحد لمس نفس الماركر وداخل تيم اسمه

pepol

اكتب كلمه يجيبلي عدد

تيم

admin

الي متواجد داخل الماركر حاليا

واكتب كلمه ويجيب عدد الي بـ تيم

pepol

الي داخل الماركر

وسلامتك :)

Posted

يب عارفهم

بس حقت التيم ماعرفلهم

ممكن تكملي ربع الكود وانا اكمله ؟ لاهنت

Posted
marker = createMarker(0, 0, 1, 'cylinder', 2, 255, 0, 0, 150) 
  
count = 0 
  
  
addCommandHandler("teamadmin", 
function (player) 
    if isElementWithinMarker(marker, player) then 
        if ( getTeamName(getPlayerTeam(player)) == "Admin" ) then 
            coun = count +1 
        end 
    end 
    outputChatBox ( ""..count.." this is team in marker ",player,255,0,0,true) 
end) 

صح ولا خطا ؟

Posted
اها يعطيك العافيه ي شنب

بس ممكن طلب بسيط :)

ابي لو واحد داخل تيم اسمه

ولمس ماركر

admin

وواحد لمس نفس الماركر وداخل تيم اسمه

pepol

اكتب كلمه يجيبلي عدد

تيم

admin

الي متواجد داخل الماركر حاليا

واكتب كلمه ويجيب عدد الي بـ تيم

pepol

الي داخل الماركر

وسلامتك :)

# خخخ لحست مخي

# يا ريت توضح شوية >

Posted
marker = createMarker(0, 0, 1, 'cylinder', 2, 255, 0, 0, 150)     
addCommandHandler("teamadmin", 
    function(player) 
        local count = 0 
        for i,v in ipairs (getElementsByType("player")) 
           if isElementWithinMarker(marker, v) then 
            if ( getTeamName(getPlayerTeam(v)) == "Admin" ) then 
                count = count  + 1 
            end 
          end 
        end 
 outputChatBox ( ""..count.." this is team in marker ",player,255,0,0,true) 
    end) 

Posted

^ نآسي do

marker = createMarker(0, 0, 1, 'cylinder', 2, 255, 0, 0, 150)     
addCommandHandler("teamadmin",function(player) 
    local count = 0 
    for _,v in ipairs (getElementsByType("player")) do 
        if ( isElementWithinMarker(marker,v) ) then 
            local PlrTeam = getPlayerTeam(v) 
            if ( PlrTeam ) then 
                if ( getTeamName(PlrTeam) == "Admin" ) then 
                    count = count  + 1 
                end 
            end 
        end 
    end 
    outputChatBox ( ""..count.." this is team in marker ",player,255,0,0,true) 
end) 

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