Jw8. Posted January 5, 2017 Share Posted January 5, 2017 سلام عليكم ورحمة الله وبراكته في مشكلة انا سويت جريد ليست طبعا ابي كل السيرفر الي خشينه طبعا حطيت aTab1.PlayerList = guiCreateGridList ( 9, 21, 384, 299, false, GUIEditor.window[1] ) guiGridListAddColumn( aTab1.PlayerList, "Player Name", 0.85 ) for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemPlayerName ( aTab1.PlayerList, guiGridListAddRow ( aTab1.PlayerList ), 1, getPlayerName ( player ), false, false ) end والوحة ما اجت كاملة ؟ وش الحل Link to comment
^iiEcoo'x_) Posted January 5, 2017 Share Posted January 5, 2017 Not Me function players ( ) guiGridListClear (GUIEditor.gridlist[1] ) for _,v in ipairs ( getElementsByType ( "player" ) ) do local Row = guiGridListAddRow ( GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1], Row,cow1, getPlayerName ( v ), false, false ) end end addEventHandler ( "onClientPlayerJoin", root, players ) addEventHandler ( "onClientPlayerQuit", root, players ) addEventHandler ( "onClientPlayerChangeNick", root, players ) addEventHandler ( "onClientResourceStart", root, players ) Link to comment
Jw8. Posted January 5, 2017 Author Share Posted January 5, 2017 4 minutes ago, #_iMr,[E]coo said: Not Me function players ( ) guiGridListClear (GUIEditor.gridlist[1] ) for _,v in ipairs ( getElementsByType ( "player" ) ) do local Row = guiGridListAddRow ( GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1], Row,cow1, getPlayerName ( v ), false, false ) end end addEventHandler ( "onClientPlayerJoin", root, players ) addEventHandler ( "onClientPlayerQuit", root, players ) addEventHandler ( "onClientPlayerChangeNick", root, players ) addEventHandler ( "onClientResourceStart", root, players ) -- ما جا اسمي ؟ Link to comment
^iiEcoo'x_) Posted January 5, 2017 Share Posted January 5, 2017 GUIEditor.gridlist[1] اسم قريد ليست cow1 اسم الكوليومن Link to comment
Jw8. Posted January 5, 2017 Author Share Posted January 5, 2017 9 minutes ago, #_iMr,[E]coo said: GUIEditor.gridlist[1] اسم قريد ليست cow1 اسم الكوليومن سويت كل شيء بس ما بين شيء صوره Link to comment
Jw8. Posted January 5, 2017 Author Share Posted January 5, 2017 Just now, #_iMr,[E]coo said: اطرح لوحتك GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(222, 161, 403, 414, "[ تحدي الاعبين By DmAr ]", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1]= guiCreateGridList ( 9, 21, 384, 299, false, GUIEditor.window[1] ) guiGridListAddColumn(GUIEditor.gridlist[1], "الاعب", 0.9) GUIEditor.edit[1] = guiCreateEdit(9, 324, 295, 29, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(305, 327, 92, 26, "العالم الرجاء", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 254, 1, 1) GUIEditor.button[1] = guiCreateButton(9, 356, 174, 48, "ارسال", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(206, 356, 174, 48, "اغلاق", false, GUIEditor.window[1]) end ) function OpenWin() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end addCommandHandler("Player",OpenWin) function players ( ) guiGridListClear (GUIEditor.gridlist[1] ) for _,v in ipairs ( getElementsByType ( "player" ) ) do local Row = guiGridListAddRow ( GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1], Row,cow1, getPlayerName ( v ), false, false ) end end addEventHandler ( "onClientPlayerJoin", root, players ) addEventHandler ( "onClientPlayerQuit", root, players ) addEventHandler ( "onClientPlayerChangeNick", root, players ) addEventHandler ( "onClientResourceStart", root, players ) Link to comment
^iiEcoo'x_) Posted January 5, 2017 Share Posted January 5, 2017 local cow1 = guiGridListAddColumn(GUIEditor.gridlist[1], "الاعب", 0.9) عدله ؟ Link to comment
Jw8. Posted January 5, 2017 Author Share Posted January 5, 2017 15 minutes ago, #_iMr,[E]coo said: local cow1 = guiGridListAddColumn(GUIEditor.gridlist[1], "الاعب", 0.9) عدله ؟ عدلته م صار شي Link to comment
Jw8. Posted January 5, 2017 Author Share Posted January 5, 2017 45 minutes ago, #_iMr,[E]coo said: local cow1 = guiGridListAddColumn(GUIEditor.gridlist[1], "الاعب", 0.9) عدله ؟ خلاص مشكور الكود Spoiler function update () guiGridListClear(GUIEditor.gridlist[1]) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) 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