Jump to content

مساعده


Recommended Posts

addCommandHandler("ad", 
	function(player)
	local admin = getAccountName ( getPlayerAccount(player) )
		if isObjectInACLGroup("user."..admin, aclGetGroup("Console")) then
			outputChatBox( admin, true )
	end
end
)

ابي لما لاعب يكتب في اف 8 كلمة

يجيه كل الادامن اللي متصلين في الجروب المحدد

+

اعتقد الكودد خاطئ جداا

Edited by A7MEDENO
Link to comment
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
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
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...