+Source|> Posted June 13, 2017 Share Posted June 13, 2017 (edited) addCommandHandler("ad", function(player) local admin = getAccountName ( getPlayerAccount(player) ) if isObjectInACLGroup("user."..admin, aclGetGroup("Console")) then outputChatBox( admin, true ) end end ) ابي لما لاعب يكتب في اف 8 كلمة يجيه كل الادامن اللي متصلين في الجروب المحدد + اعتقد الكودد خاطئ جداا Edited June 13, 2017 by A7MEDENO Link to comment
+Source|> Posted June 13, 2017 Author Share Posted June 13, 2017 ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ Link to comment
Wormen Posted June 13, 2017 Share Posted June 13, 2017 Just now, A7MEDENO said: addCommandHandler("ad", function(player) local admin = getAccountName ( getPlayerAccount(player) ) if isObjectInACLGroup("user."..admin, aclGetGroup("Console")) then outputChatBox( admin, true ) end end ) ابي لما لاعب يكتب في اف 8 كلمة يجيه كل الادامن اللي متصلين في الجروب المحدد + اعتقد الكودد خاطئ جداا players = getElementsByType ( "player" ) admins = "" for k,v in ipairs(players) do local accountname = "" if (isGuestAccount(getPlayerAccount(v)) == false) then accountname = getAccountName (getPlayerAccount(v)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then if (admins == "") then admins = getPlayerName(v) else admins = admins .. ", " .. getPlayerName(v) end end end end function ah() outputChatBox( "Admins : " .. tostring ( admins ), getRootElement(), 255, 255, 0) addCommandHandler("ad",ah) غير مجرب Link to comment
iMr.WiFi..! Posted June 13, 2017 Share Posted June 13, 2017 اتوقع في فنكشن بأسم getAdminsByGroup ^ شيك عليه ويمكن يفيدك 1 Link to comment
+Source|> Posted June 13, 2017 Author Share Posted June 13, 2017 11 minutes ago, iMr.WiFi..! said: اتوقع في فنكشن بأسم getAdminsByGroup ^ شيك عليه ويمكن يفيدك شكرا لك بشيك 23 minutes ago, Wormen said: players = getElementsByType ( "player" ) admins = "" for k,v in ipairs(players) do local accountname = "" if (isGuestAccount(getPlayerAccount(v)) == false) then accountname = getAccountName (getPlayerAccount(v)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then if (admins == "") then admins = getPlayerName(v) else admins = admins .. ", " .. getPlayerName(v) end end end end function ah() outputChatBox( "Admins : " .. tostring ( admins ), getRootElement(), 255, 255, 0) addCommandHandler("ad",ah) غير مجرب مشتغل كويس بس شكرا Link to comment
ElSHaWaF Posted June 13, 2017 Share Posted June 13, 2017 هلا اخي انا محمد الشواف الرجاله هيساعدوك زي ماقولتلك Link to comment
Rockyz Posted June 13, 2017 Share Posted June 13, 2017 15 minutes ago, ElSHaWaF said: هلا اخي انا محمد الشواف الرجاله هيساعدوك زي ماقولتلك Link to comment
Ahmed Ly Posted June 13, 2017 Share Posted June 13, 2017 function p (player,cmd) for k,v in ipairs(getElementsByType ( "player" )) do local account = getAccountName (getPlayerAccount(v)) if isObjectInACLGroup ( "user." ..account, aclGetGroup ( "admin" ) ) then outputChatBox( "Admins : "..getPlayerName(v).."",player, 255, 255, 0,true) end end end addCommandHandler("admins",p) Link to comment
Rockyz Posted June 13, 2017 Share Posted June 13, 2017 2 hours ago, Ahmed Ly said: function p (player,cmd) for k,v in ipairs(getElementsByType ( "player" )) do local account = getAccountName (getPlayerAccount(v)) if isObjectInACLGroup ( "user." ..account, aclGetGroup ( "admin" ) ) then outputChatBox( "Admins : "..getPlayerName(v).."",player, 255, 255, 0,true) end end end addCommandHandler("admins",p) 12 hours ago, iMr.WiFi..! said: اتوقع في فنكشن بأسم getAdminsByGroup ^ شيك عليه ويمكن يفيدك 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