Jump to content

Recommended Posts

Witam, czy jest możliwość przerobienia tego skyptu tak, aby pokazywał graczy online, a także offline z danej grupy? Mam coś takiego ale tylko pokazuje ludzi online. Prosiłbym o pomoc. Z góry dziękuje

  
--Server 
function getgroup (player) 
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 ( "BazaAdminow" ) ) then 
         if (admins == "") then 
            admins = getAccountName (getPlayerAccount(v)) 
         else 
            admins = admins .. ", " .. getAccountName (getPlayerAccount(v)) 
         end 
      end 
   end 
end 
outputChatBox( "Base Own:", player, 255, 255, 0) 
outputChatBox( " " .. tostring ( admins ), player, 255, 255, 0) 
end 
addCommandHandler ("gettest", getgroup) 

Link to comment
  • 4 months later...

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...