Jump to content

استفسار


Recommended Posts

Posted

وضح طلبك؟

لو قصدك تسوي تحقق ان اللوحة مفتوحة استخدم

guiGetVisible 

Chillin' with some demons, satans and vamps

Posted

ماشتغل رغم محاولات كثيره

الكود : :roll:

    bindKey ( "F5", "down",function() 
                 for index, player in ipairs (getElementsByType("player")) do 
        if getElementData(player, "WantLvl") > 2 then  
        if ( guiGetVisible ( S2 ) == true ) then 
if getPlayerTeam(source) == getTeamFromName("Soon") then 
        local row = guiGridListAddRow(StatsPlayers) 
                guiGridListSetItemText(StatsPlayers, row, 1, getPlayerName(player), false, false) 
                guiGridListSetItemText(StatsPlayers, row, 2, getElementData(player, "WantLvl"), false, false) 
                    guiSetVisible(S2,true) 
    showCursor(true) 
            end 
            end 
            end 
            end 
         end) 

Posted

جرب

function addAllPlayers () 
for index, player in ipairs (getElementsByType("player")) do 
if getElementData(player, "WantLvl") > 2 then 
local row = guiGridListAddRow(StatsPlayers) 
guiGridListSetItemText(StatsPlayers, row, 1, getPlayerName(player), false, false) 
guiGridListSetItemText(StatsPlayers, row, 2, getElementData(player, "WantLvl"), false, false) 
end 
end 
end 
  
bindKey ( "F5", "down",function() 
if getPlayerTeam(localPlayer) == getTeamFromName("Soon") then 
if ( guiGetVisible ( S2 ) == false ) then 
guiSetVisible(S2,true) 
showCursor(true) 
addAllPlayers () 
else 
guiSetVisible(S2,false) 
showCursor(false) 
guiGridListClear(StatsPlayers) 
end 
end 
end) 

Skype: ahmed.ronaldo2122

اعتزال لبعض الوقت

Posted
addAllPlayers () 
else 

else يعني ترجع ماتسوي شي

لاكن وش addAllPlayers

فهمني وش الاشياء الضفتها وصلحتها :)

Posted

اذا حطيت كود وضح وش الكود المفروض يسوي

+ حاول ترتب الاكواد عشان تكون مفهومه وتطلع الخطأ بسهوله

اذا انت تبي زر اف 5 يفتح نافذه ويحط لاعبين في قريد لست

المفروض ماتخلي فتح النافذة داخل اللوب

bindKey ( "F5", "down", 
function() 
    if getPlayerTeam(localPlayer) == getTeamFromName("Soon") then -- اذا ضغط الزر تتحقق اذا كان في التيم المطلوب 
        -- فتح النافذة للاعب الي ضغط الزر 
        if ( guiGetVisible ( S2 ) == true ) then -- نتحقق اذا كانت النافذة مفتوحة 
            -- اذا ما كانت مفتوحة 
             
            -- اضافة اللاعبين المطلوبين الى القريد لست 
            guiGridListClear(StatsPlayers) -- لو من قبل كان فاتح اللوحة بيكون فيه لاعبين في القريد نمسحهم 
            for index, player in ipairs (getElementsByType("player")) do -- نسوي لوب لجميع اللاعبين عشان 
                if getElementData(player, "WantLvl") > 2 then -- نتحقق من عدد نجوم اللاعبين 
                    local row = guiGridListAddRow(StatsPlayers) -- نضيف رو جديد في القريد 
                    guiGridListSetItemText(StatsPlayers, row, 1, getPlayerName(player), false, false) 
                    guiGridListSetItemText(StatsPlayers, row, 2, getElementData(player, "WantLvl"), false, false) 
                end 
            end 
             
            guiSetVisible(S2,true) 
            showCursor(true) 
        else -- لو صار عكس التحقق 
            -- اذا كانت مفتوحة 
            guiSetVisible(S2,false) 
            showCursor(false) 
        end 
    end 
end) 

في تحقق تيم اللاعب انت مستخدم سورس

والسورس ماهو معرف لانه السورس يكون موجود في الايفنتات

+ اذا جيت بتحط كود مايشتغل اكتب الأخطاء الي تجيك في الديبق

debugscript 3

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