Maksoud Posted June 22, 2016 Share Posted June 22, 2016 السلام عليكم و رحمة الله و بركاته سويت لوحة فيها قريد ليست و بدى يجيب بالقريد ليست اسماء الادمن فقط الرجاء الرد السريع شكرا مقدما Link to comment
' A F . Posted June 22, 2016 Share Posted June 22, 2016 guiGridListClear getElementsByType guiGridListAddRow getPlayerName guiGridListSetItemText Link to comment
Adham Posted June 22, 2016 Share Posted June 22, 2016 function update () guiGridListClear(grid) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (grid) guiGridListSetItemText (grid,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
' A F . Posted June 22, 2016 Share Posted June 22, 2016 function update () guiGridListClear(grid) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (grid) guiGridListSetItemText (grid,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
Maksoud Posted June 22, 2016 Author Share Posted June 22, 2016 function update () guiGridListClear(grid) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (grid) guiGridListSetItemText (grid,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
Me[Z]oO Posted June 22, 2016 Share Posted June 22, 2016 function update () guiGridListClear(grid) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (grid) guiGridListSetItemText (grid,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
Maksoud Posted June 22, 2016 Author Share Posted June 22, 2016 function update () guiGridListClear(grid) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (grid) guiGridListSetItemText (grid,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
SycroX Posted June 22, 2016 Share Posted June 22, 2016 --#ServerSide addEventHandler("onResourceStart", root, function() for i,player in ipairs (getElementsByType("player")) do local Account = getPlayerAccount(player) if not (isGuestAccount(Account)) then local AccountName = getAccountName(Account) if ( hasObjectPermissionTo ( player, "general.adminpanel", true ) ) then setElementData(player,"Admin",true) else setElementData(player,"Admin",false) end end end end ) --#ClientSide function Cheak() guiGridListClear ( GridList) for i,v in ipairs(getElementsByType("player")) do if getElementData(v, "Admin") == true then local row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, row, 1, getPlayerName(v), false, true ) guiGridListSetItemColor ( GridList, row, 1, 0, 255, 0) end end end addEventHandler ("onClientResourceStart",resourceRoot,Cheak) addEventHandler ("onClientPlayerJoin",root,Cheak) addEventHandler ("onClientPlayerChangeNick",root,Cheak) addEventHandler ("onClientPlayerQuit",root,Cheak) Link to comment
Maksoud Posted June 22, 2016 Author Share Posted June 22, 2016 --#ServerSide addEventHandler("onResourceStart", root, function() for i,player in ipairs (getElementsByType("player")) do local Account = getPlayerAccount(player) if not (isGuestAccount(Account)) then local AccountName = getAccountName(Account) if ( hasObjectPermissionTo ( player, "general.adminpanel", true ) ) then setElementData(player,"Admin",true) else setElementData(player,"Admin",false) end end end end ) --#ClientSide function Cheak() guiGridListClear ( GridList) for i,v in ipairs(getElementsByType("player")) do if getElementData(v, "Admin") == true then local row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, row, 1, getPlayerName(v), false, true ) guiGridListSetItemColor ( GridList, row, 1, 0, 255, 0) end end end addEventHandler ("onClientResourceStart",resourceRoot,Cheak) addEventHandler ("onClientPlayerJoin",root,Cheak) addEventHandler ("onClientPlayerChangeNick",root,Cheak) addEventHandler ("onClientPlayerQuit",root,Cheak) مشكووووور Link to comment
!#NssoR_) Posted June 22, 2016 Share Posted June 22, 2016 --#ServerSide addEventHandler("onResourceStart", root, function() for i,player in ipairs (getElementsByType("player")) do local Account = getPlayerAccount(player) if not (isGuestAccount(Account)) then local AccountName = getAccountName(Account) if ( hasObjectPermissionTo ( player, "general.adminpanel", true ) ) then setElementData(player,"Admin",true) else setElementData(player,"Admin",false) end end end end ) --#ClientSide function Cheak() guiGridListClear ( GridList) for i,v in ipairs(getElementsByType("player")) do if getElementData(v, "Admin") == true then local row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, row, 1, getPlayerName(v), false, true ) guiGridListSetItemColor ( GridList, row, 1, 0, 255, 0) end end end addEventHandler ("onClientResourceStart",resourceRoot,Cheak) addEventHandler ("onClientPlayerJoin",root,Cheak) addEventHandler ("onClientPlayerChangeNick",root,Cheak) addEventHandler ("onClientPlayerQuit",root,Cheak) كودك في حال خروج الادمن من السيرفر ورجع دخل للسيرفر مره اخري ماراح يسجل اسمه باللوحة + استبدل السطر هذا addEventHandler("onResourceStart", root, بهذا addEventHandler("onResourceStart", resourceRoot, Link to comment
Maksoud Posted June 22, 2016 Author Share Posted June 22, 2016 --#ServerSide addEventHandler("onResourceStart", root, function() for i,player in ipairs (getElementsByType("player")) do local Account = getPlayerAccount(player) if not (isGuestAccount(Account)) then local AccountName = getAccountName(Account) if ( hasObjectPermissionTo ( player, "general.adminpanel", true ) ) then setElementData(player,"Admin",true) else setElementData(player,"Admin",false) end end end end ) --#ClientSide function Cheak() guiGridListClear ( GridList) for i,v in ipairs(getElementsByType("player")) do if getElementData(v, "Admin") == true then local row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, row, 1, getPlayerName(v), false, true ) guiGridListSetItemColor ( GridList, row, 1, 0, 255, 0) end end end addEventHandler ("onClientResourceStart",resourceRoot,Cheak) addEventHandler ("onClientPlayerJoin",root,Cheak) addEventHandler ("onClientPlayerChangeNick",root,Cheak) addEventHandler ("onClientPlayerQuit",root,Cheak) كودك في حال خروج الادمن من السيرفر ورجع دخل للسيرفر مره اخري ماراح يسجل اسمه باللوحة + استبدل السطر هذا addEventHandler("onResourceStart", root, بهذا addEventHandler("onResourceStart", resourceRoot, صح مشكور اخوى Link to comment
Mr.CoR Posted June 22, 2016 Share Posted June 22, 2016 في هذا اليوزفل فانكشن يسهل عليك getOnlineAdmins هذا اليوزفل فانكشن تحطه بجانب السيرفر ثم تسوي ترايقر للكلاينت وتضيف الاسماء للقريد ليست عن طريق الفانكشنات الي عطوها لك الشباب فوق موفق Link to comment
SycroX Posted June 22, 2016 Share Posted June 22, 2016 في هذا اليوزفل فانكشن يسهل عليكgetOnlineAdmins هذا اليوزفل فانكشن تحطه بجانب السيرفر ثم تسوي ترايقر للكلاينت وتضيف الاسماء للقريد ليست عن طريق الفانكشنات الي عطوها لك الشباب فوق موفق هذا يجبلك الي معهم رتبت Admin هو يبي كل الأدمنية اليوسفول فانكشن بعد التعديل function getOnlineAdmins() local t = {} for k,v in ipairs ( getElementsByType("player") ) do local acc = getPlayerAccount(v) if acc and not isGuestAccount(acc) then local accName = getAccountName(acc) if ( hasObjectPermissionTo (v, "general.adminpanel", true)) then table.insert(t,v) end end end return t end Link to comment
Maksoud Posted June 24, 2016 Author Share Posted June 24, 2016 شباب , فى خطأ لو ادمن مب مسجل و سجل ما يظهر بالقريد ليست ! لازم اسوى ريسترت للمود عشان يظهر ! Link to comment
Mr.CoR Posted June 26, 2016 Share Posted June 26, 2016 سوي يوم يفتح اللوحه سواء بكوماند او عن طريق زر بالكيبورد يمسح القريد ليست عن طريق فانكشن guiGridListClear وحط الفانكشن حق الي يضيف الادامن للقريد ليست وبكذا كل م تفتح اللوحه تتحدث 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