EH10 Posted April 12, 2014 Share Posted April 12, 2014 السلام عليكم طلب فنكشات قريد ليست فية اسماء اعضاء القروب مثال اسم قروبيarmy كل واحد عنده قروب يجي اسماء الي في قروبة يعني انا سويت قروب واي واحد يدخل قروبي يجي قريد ليست حق قروبي Link to comment
ahmed1010 Posted April 12, 2014 Share Posted April 12, 2014 يمكنك الاستفادة من مود العقرب Link to comment
™!>VàLéNTiNô<!™ Posted April 13, 2014 Share Posted April 13, 2014 احس انك تجيب طلباتك من المريخ والله فكرك غريبة جدا مو ها الفكرة كل فكرك محظوظ Link to comment
EH10 Posted April 14, 2014 Author Share Posted April 14, 2014 الفنكشات * صـح ؟ getElementsByType -- loop getElementData getPlayerName guiGridListAddRow guiGridListSetItemText guiGridListSetItemText Link to comment
</Mr.Tn6eL> Posted April 14, 2014 Share Posted April 14, 2014 الفنكشات * صـح ؟ getElementsByType -- loop getElementData getPlayerName guiGridListAddRow guiGridListSetItemText guiGridListSetItemText اخر سطر الكود مكرر Link to comment
فاّرس Posted April 14, 2014 Share Posted April 14, 2014 مع احترامي لك , المفروض ما نعطيك وجه. لأن انت عارف الاكواد خير شر , بس تحاول تستدرج احد لين يعطيك لأنك ببساطه ما تعرف شيء بالبرمجه . Link to comment
EH10 Posted April 18, 2014 Author Share Posted April 18, 2014 ممكن تصحيح * function(player) for _,v in ipairs( getPlayerName(player) ) do if getElementData(player, "Group") then Row = guiGridListAddRow(Grid) guiGridListSetItemText(Grid, Row, 1, v, false, false) end end end ) Link to comment
#Rmad~> Posted April 19, 2014 Share Posted April 19, 2014 (edited) function group() guiGridListClear(Grid) for i,player in ipairs (getElementsByType ("player")) do local PlayerName = getPlayerName(player) local PlayerGroup = getElementData(player,"Group") Row = guiGridListAddRow(Grid) guiGridListSetItemText(Grid, Row, 1, PlayerName, false, false) guiGridListSetItemText(Grid, Row, 2, PlayerGroup, false, false) end end addEventHandler ( "onClientResourceStart", resougrceRoot,group) Edited April 19, 2014 by Guest Link to comment
KaduRo Posted April 19, 2014 Share Posted April 19, 2014 function group() guiGridListClear(Grid) for i,player in ipairs (getElementsByType ("player")) do local PlayerName = getPlayerName(player) local PlayerGroup = getElementData(player,"Group") Row = guiGridListAddRow(Grid) guiGridListSetItemText(Grid, Row, 1, PlayerName, false, false) guiGridListSetItemText(Grid, Row, 1, PlayerGroup, false, false) end end addEventHandler ( "onClientResourceStart", resougrceRoot,group) guiGridListSetItemText(Grid, Row, 1, PlayerName, false, false) guiGridListSetItemText(Grid, Row, 2, PlayerGroup, false, false) -- column 2 -- إن كانوا كلهم كولمن 1 , راح يطلع اسم اللاعب وقروبه متلصقين بعض ويمكن يشوهه Link to comment
#Rmad~> Posted April 19, 2014 Share Posted April 19, 2014 function group() guiGridListClear(Grid) for i,player in ipairs (getElementsByType ("player")) do local PlayerName = getPlayerName(player) local PlayerGroup = getElementData(player,"Group") Row = guiGridListAddRow(Grid) guiGridListSetItemText(Grid, Row, 1, PlayerName, false, false) guiGridListSetItemText(Grid, Row, 1, PlayerGroup, false, false) end end addEventHandler ( "onClientResourceStart", resougrceRoot,group) guiGridListSetItemText(Grid, Row, 1, PlayerName, false, false) guiGridListSetItemText(Grid, Row, 2, PlayerGroup, false, false) -- column 2 -- إن كانوا كلهم كولمن 1 , راح يطلع اسم اللاعب وقروبه متلصقين بعض ويمكن يشوهه مشكور على التذكير كنت مسطل وانا اكتب الكود Link to comment
#Rmad~> Posted April 19, 2014 Share Posted April 19, 2014 (edited) function group ( ) guiGridListClear(Grid) for i,player in ipairs (getElementsByType ("player")) do local PlayerName = getPlayerName(player) local PlayerGroup = getElementData(player,"Group") or 'N/A' Row = guiGridListAddRow(Grid) guiGridListSetItemText(Grid, Row, 1, PlayerName, false, false) guiGridListSetItemText(Grid, Row, 2, PlayerGroup, false, false) end end addEventHandler("onClientResourceStart", resourceRoot, group) addEventHandler("onClientPlayerJoin", root, group) addEventHandler("onClientPlayerQuit", root, group) addEventHandler("onClientPlayerChangedNick", root, group) Edited April 19, 2014 by Guest Link to comment
فاّرس Posted April 19, 2014 Share Posted April 19, 2014 آخر سطر localPlayer > root من غير انك المفروض تتحقق من الداتا يمكن موب موجوده من الاساس . تقدر تسوي كذا, data = getElementData(...) or 'N/A' Link to comment
</Mr.Tn6eL> Posted April 20, 2014 Share Posted April 20, 2014 مثال يجيب كل الاعبين بقروب ارمي addEventHandler("onClientResourceStart", resourceRoot, function() grid = guiCreateGridList(215, 168, 345, 342, false) guiGridListAddColumn(grid, "Player", 0.5) guiSetAlpha(grid, 0.72) end ) addEventHandler("onClientRender", root, function() guiGridListClear(grid) for k,v in ipairs (getElementsByType("player")) do if getElementData(v,"Group") == 'ARMY' then row = guiGridListAddRow(grid) guiGridListSetItemText(grid, row, 1, getPlayerName(v), false, false) end end end ) Link to comment
xFace[B]ook Posted April 20, 2014 Share Posted April 20, 2014 مثال يجيب كل الاعبين بقروب ارمي addEventHandler("onClientResourceStart", resourceRoot, function() grid = guiCreateGridList(215, 168, 345, 342, false) guiGridListAddColumn(grid, "Player", 0.5) guiSetAlpha(grid, 0.72) end ) addEventHandler("onClientRender", root, function() guiGridListClear(grid) for k,v in ipairs (getElementsByType("player")) do if getElementData(v,"Group") == 'ARMY' then row = guiGridListAddRow(grid) guiGridListSetItemText(grid, row, 1, getPlayerName(v), false, false) end end end ) رندر مع لوب !!!!!!!!!!!!!! Link to comment
</Mr.Tn6eL> Posted April 20, 2014 Share Posted April 20, 2014 (edited) مثال يجيب كل الاعبين بقروب ارمي addEventHandler("onClientResourceStart", resourceRoot, function() grid = guiCreateGridList(215, 168, 345, 342, false) guiGridListAddColumn(grid, "Player", 0.5) guiSetAlpha(grid, 0.72) end ) addEventHandler("onClientRender", root, function() guiGridListClear(grid) for k,v in ipairs (getElementsByType("player")) do if getElementData(v,"Group") == 'ARMY' then row = guiGridListAddRow(grid) guiGridListSetItemText(grid, row, 1, getPlayerName(v), false, false) end end end ) رندر مع لوب !!!!!!!!!!!!!! حبيبي انا حاط الرندر عشان يشيك كل ملي متر من الثانيه على الاعبين وشوف نكاتهم والاعبين اللي دخله واللي خرجو الخ .... ومديني استخدم تايمر لكن الرندر افضل وكمان مديني استخدمة بطرق كثيرة Edited April 21, 2014 by Guest Link to comment
xFace[B]ook Posted April 20, 2014 Share Posted April 20, 2014 مثال يجيب كل الاعبين بقروب ارمي addEventHandler("onClientResourceStart", resourceRoot, function() grid = guiCreateGridList(215, 168, 345, 342, false) guiGridListAddColumn(grid, "Player", 0.5) guiSetAlpha(grid, 0.72) end ) addEventHandler("onClientRender", root, function() guiGridListClear(grid) for k,v in ipairs (getElementsByType("player")) do if getElementData(v,"Group") == 'ARMY' then row = guiGridListAddRow(grid) guiGridListSetItemText(grid, row, 1, getPlayerName(v), false, false) end end end ) رندر مع لوب !!!!!!!!!!!!!! عشان يسوي رفرش للستة مثلا انا غيرت نكي راح يحط النك الجديد بالعبة +< الكود مافيه اي خطا طيب رح جربه وشوف وش يطلع لك 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