Jump to content

طلب


Recommended Posts

شباب معي كود

و ابي يكون فيه اللاعبين ؟؟

ذا كودي حق اللوحة

انا مسوي

النافذاة و القريد لست وحدههم

و الازرار وحدههم المهم

ذا الكود

ابي تصحيح الكود لا هنتم

wnd = guiCreateWindow(218,93,360,422,"player list",false) 
  
grid = guiCreateGridList(9,25,183,375,false,wnd) 
guiGridListSetSelectionMode(grid,1) 
guiGridListAddColumn(grid,"الاعبين",0.-- s8) -->
  
function putAllPlayersInList() 
    guiGridListClear(grid) 
    for i,v in ipairs(getElementsByType("player")) do 
        local row = guiGridListAddRow(grid) 
        guiGridListSetItemText(grid,row,1,getPlayerName(v),false,false) 
        guiGridListSetItemColor(grid,row,1,0,255,0) 
    end 
end 
  
  
  
  
------------------------------------------------------------------------- 
function kbcha() 
if guiGetVisible(wnd) == false then 
guiSetVisible(wnd,true) 
showCursor(true) 
else 
guiSetVisible(wnd,false) 
showCursor(false) 
    end 
end 
bindKey("F5", "down", kbcha) 
------------------------------------------------------------------------- 
  

Link to comment

جرب ذاا الكود

و تعلم منه

wnd = guiCreateWindow(218,93,360,422,"player list",false) 
  
grid = guiCreateGridList(9,25,183,375,false,wnd) 
guiGridListSetSelectionMode(grid,1) 
guiGridListAddColumn(grid,"Players",0.-- s8) -->
  
function putAllPlayersInList() 
    guiGridListClear(grid) 
    for i,v in ipairs(getElementsByType("player")) do 
        local row = guiGridListAddRow(grid) 
        guiGridListSetItemText(grid,row,1,getPlayerName(v),false,false) 
        guiGridListSetItemColor(grid,row,1,0,255,0) 
    end 
end 
  
bindKey("f5","down", 
    function () 
        if guiGetVisible(wnd) then 
            guiSetVisible(wnd,false) 
            showCursor(false) 
        else 
            guiSetVisible(wnd,true) 
            showCursor(true) 
            putAllPlayersInList() 
        end 
    end 
) 
  

Link to comment

جرب كذا :

wnd = guiCreateWindow(218,93,360,422,"player list",false) 
  
grid = guiCreateGridList(9,25,183,375,false,wnd) 
guiGridListSetSelectionMode(grid,1) 
guiGridListAddColumn(grid,"Players",0.6) 
  
function putAllPlayersInList() 
    guiGridListClear(grid) 
    for i,v in ipairs(getElementsByType("player")) do 
        local row = guiGridListAddRow(grid) 
        guiGridListSetItemText(grid,row,1,getPlayerName(v),false,false) 
        guiGridListSetItemColor(grid,row,1,0,255,0) 
    end 
end 
  
bindKey("f5","down", 
    function () 
        if guiGetVisible(wnd) then 
            guiSetVisible(wnd,false) 
            showCursor(false) 
        else 
            guiSetVisible(wnd,true) 
            showCursor(true) 
            putAllPlayersInList() 
        end 
    end 
) 
  
Link to comment

ذا لما انخسه ما يصلح في لوحة ثانيه

function putAllPlayersInList() 
    guiGridListClear(grid) 
    for i,v in ipairs(getElementsByType("player")) do 
        local row = guiGridListAddRow(grid) 
        guiGridListSetItemText(grid,row,1,getPlayerName(v),false,false) 
        guiGridListSetItemColor(grid,row,1,0,255,0) 
    end 
end 

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