Jump to content

طلب كود بسيط


Recommended Posts

السلام عليكم ورحمة الله وبركاته

يا شباب انا اطلب منكم كود لكيفية اظهار كل الاعبين في لسته

لكن

لكن

لكن

ابيه يتحدث لان في السيرفر الاعبين داخلين خارجين

انا لقيت كود في الويكي

لكن ما يتحدث

وجربت

setTimer 

و

onClientRender

بس ما اشتغل

المساعدة لو سمحتوا :(

Link to comment

جرب

 setTimer( 
    function() 
        playerList = guiCreateGridList(6, 6, 140, 460, false, tab4) 
            guiGridListSetSelectionMode(playerList, 2) 
            local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) 
                if ( cl and guiGetVisible(GUIEditor_Window[1] ) == true ) then 
                    for _,name in ipairs(getElementsByType("player")) do 
                     local rw = guiGridListAddRow(playerList) 
                     guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) 
                    end 
                end 
    end 
,4000,0) 
  

Edited by Guest
Link to comment
الكود مو لي الكود لك لاكن انا شلت الوضيفه لو يبي يسوي وضيفه ثانيه يسوي هو قال لسته بدون وضائف

لي ؟؟ من أي مود ششلحته ؟

انت مساعد شخص هنا بذا الكود وانا افدت هاذا ومازرفة الكود وحطيته بأسمي جاي أفيد به اخوي

Edited by Guest
Link to comment

مشكورين شباب كفيتوا ووافيتوا

طيب يشتغل كذا

function playerlist() 
        playerList = guiCreateGridList(6, 6, 140, 460, false, tab4) 
            guiGridListSetSelectionMode(playerList, 2) 
            local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) 
                if ( cl and guiGetVisible(GUIEditor_Window[1] ) == true ) then 
                    for _,name in ipairs(getElementsByType("player")) do 
                     local rw = guiGridListAddRow(playerList) 
                     guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) 
                    end 
                end 
    end 
setTimer(playerlist,4000,0) 

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

الله يخليكم لي

امكم على غفله

Link to comment
مشكورين شباب كفيتوا ووافيتوا

طيب يشتغل كذا

function playerlist() 
        playerList = guiCreateGridList(6, 6, 140, 460, false, tab4) 
            guiGridListSetSelectionMode(playerList, 2) 
            local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) 
                if ( cl and guiGetVisible(GUIEditor_Window[1] ) == true ) then 
                    for _,name in ipairs(getElementsByType("player")) do 
                     local rw = guiGridListAddRow(playerList) 
                     guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) 
                    end 
                end 
    end 
setTimer(playerlist,4000,0) 

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

الله يخليكم لي

امكم على غفله

جرب

Link to comment

طلطول

استخدم هالكود

local col = guiGridListAddColumn(GUIEditor_Grid[1],"Players",0.85) -- القريد لست الي بتظهر فيها الاعبين GUIEditor_Grid[1] 
  
function LetsBeClear() 
for id, player in ipairs ( getElementsByType ( "player" ) ) do  
local row = guiGridListAddRow ( GUIEditor_Grid[1] ) -- القريد لست الي بتظهر فيها الاعبين 
guiGridListSetItemText ( GUIEditor_Grid[1], row, col, getPlayerName ( player ), false, false ) end 
end 
addEventHandler("onClientResourceStart", getResourceRootElement( getThisResource() ), LetsBeClear) -- عند بدأ الريسورس 

بالمناسبة

seTimer

تكرر دخولك في الجريد لست يعني تضيفك في الجريد لست مليار مرة ثم اكثر.

Link to comment
مشكورين شباب كفيتوا ووافيتوا

طيب يشتغل كذا

function playerlist() 
        playerList = guiCreateGridList(6, 6, 140, 460, false, tab4) 
            guiGridListSetSelectionMode(playerList, 2) 
            local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) 
                if ( cl and guiGetVisible(GUIEditor_Window[1] ) == true ) then 
                    for _,name in ipairs(getElementsByType("player")) do 
                     local rw = guiGridListAddRow(playerList) 
                     guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) 
                    end 
                end 
    end 
setTimer(playerlist,4000,0) 

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

الله يخليكم لي

امكم على غفله

خلاص اشتغل

مشكورين

Link to comment

الكود اللي اعطوك اياه الشباب .. ما انصحك تستعمله ابد ..

لانه كل 4 ثواني بيعمل واحد جديد فوق السابق

اما هذا بس بيحدث

  
function playerlist() 
        playerList = guiCreateGridList(6, 6, 140, 460, false, tab4) 
        guiGridListSetSelectionMode(playerList, 2) 
        guiGridListClear(playerList) 
        cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) 
                if ( cl and guiGetVisible(GUIEditor_Window[1] ) == true ) then 
                    for _,name in ipairs(getElementsByType("player")) do 
                     local rw = guiGridListAddRow(playerList) 
                     guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) 
                    end 
                end 
    end 
  
  
setTimer(function() 
            guiGridListClear(playerList) 
            guiGridListSetSelectionMode(playerList, 2) 
                if ( cl and guiGetVisible(GUIEditor_Window[1] ) == true ) then 
                    for _,name in ipairs(getElementsByType("player")) do 
                     local rw = guiGridListAddRow(playerList) 
                     guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) 
                    end 
                end 
    end 
,4000,0) 
  

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