tourra Posted March 14, 2013 Share Posted March 14, 2013 شباب معي كود و ابي يكون فيه اللاعبين ؟؟ ذا كودي حق اللوحة انا مسوي النافذاة و القريد لست وحدههم و الازرار وحدههم المهم ذا الكود ابي تصحيح الكود لا هنتم 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
|Mr|-Talal07-| Posted March 14, 2013 Share Posted March 14, 2013 جرب ذاا الكود و تعلم منه 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
iPrestege Posted March 14, 2013 Share Posted March 14, 2013 لاتستخدمون Lua استخدموا code|code فية تضارب في الابتسامات بق في المنتدى -_-" Link to comment
tourra Posted March 14, 2013 Author Share Posted March 14, 2013 يب علمني ؟ ابي الكود حقو ؟ Link to comment
iPrestege Posted March 14, 2013 Share Posted March 14, 2013 جرب كذا : 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
tourra Posted March 14, 2013 Author Share Posted March 14, 2013 اها يعني كل ما اعمل مود فيه قريد لست حق اللاعبين احط في كود البيند كاي putAllPlayersInList() ؟؟ شكرا لك اخوي Link to comment
iPrestege Posted March 14, 2013 Share Posted March 14, 2013 You're Welcome | العفو ----------------------------- هذي للتحديث للاعبين # Link to comment
tourra Posted March 14, 2013 Author Share Posted March 14, 2013 ااسمع طيب ممكن تعطيني الكود كامل جربت انسخ ما صلح ؟؟؟ تقدر تمدني الكود الي عطيطني اياه ؟؟ Link to comment
iPrestege Posted March 14, 2013 Share Posted March 14, 2013 الكود شغال انسخ اللي عطيتك عدلتةة ذذ حق طلال فية بق من المنتدى ذذ Link to comment
tourra Posted March 14, 2013 Author Share Posted March 14, 2013 ذا لما انخسه ما يصلح في لوحة ثانيه 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
tourra Posted March 14, 2013 Author Share Posted March 14, 2013 شوف يعني هل في مكان grid احط اسم القريد لست حقي ؟؟ اسم القريد لست حقي player يعني اغير صحيح ؟؟ Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now