Jump to content

[HELP] BASE


1LoL1

Recommended Posts

This is what I saw there .. but I know that I have seen such a script without this. And the admin panel to unrelated.

accountname = getAccountName (getPlayerAccount(tPlayer)) 
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( stringData ) ) 

Link to comment

acceptedGroups = { 
"Admin", 
"Console", 
"Skillers", 
"Skillers2", 
} 
  
addEventHandler(' onResourceStart', resourceRoot, 
function ( ) 
myGate1 = createObject ( ID, x, y, z, 0, 0, 0 ) --- add the id and x, y , z 
myGate2 = createObject ( ID, x, y, z, 0, 0, 0 ) --- add the id and x, y , z 
    end 
) 
  
addCommandHandler('open', 
function ( ) 
local isAllowed = false 
for placeNumber, stringData in ipairs(acceptedGroups) do 
    accountname = getAccountName (getPlayerAccount(source)) 
    if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( stringData ) ) then 
     isAllowed = true 
    end 
end 
if (isAllowed == true) then 
   moveObject ( myGate1, 4000, x, y, z ) --- add the id and x, y , z  / move gate 1 
   moveObject ( myGate2, 4000, x, y, z ) --- add the id and x, y , z / move gate 2 
   else 
   outputChatBox ("You Are not in accepted Groups !",source, 255, 0, 0 ) --- if not in the groups 
   end 
end 
) 
  
  
addCommandHandler('close', 
function ( ) 
local isAllowed = false 
for placeNumber, stringData in ipairs(acceptedGroups) do 
    accountname = getAccountName (getPlayerAccount(source)) 
    if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( stringData ) ) then 
    isAllowed = false 
    end 
end 
if (isAllowed == false) then 
 moveObject ( myGate1, 4000, x, y, z )--- add the id and x, y , z  / move gate 1 
 moveObject ( myGate2, 4000, x, y, z )--- add the id and x, y , z  / move gate 2 
       else 
       outputChatBox ("You Are not in accepted Groups ! !",source, 255, 0, 0 ) 
   end 
end 
) 
Link to comment
acceptedGroups = { 
"Admin", 
"Console", 
"Skillers", 
"Skillers2", 
} 
  
addEventHandler(' onResourceStart', resourceRoot, 
function ( ) 
myGate1 = createObject ( ID, x, y, z, 0, 0, 0 ) --- add the id and x, y , z 
myGate2 = createObject ( ID, x, y, z, 0, 0, 0 ) --- add the id and x, y , z 
    end 
) 
  
addCommandHandler('open', 
function ( ) 
local isAllowed = false 
for placeNumber, stringData in ipairs(acceptedGroups) do 
    accountname = getAccountName (getPlayerAccount(source)) 
    if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( stringData ) ) then 
     isAllowed = true 
    end 
end 
if (isAllowed == true) then 
   moveObject ( myGate1, 4000, x, y, z ) --- add the id and x, y , z  / move gate 1 
   moveObject ( myGate2, 4000, x, y, z ) --- add the id and x, y , z / move gate 2 
   else 
   outputChatBox ("You Are not in accepted Groups !",source, 255, 0, 0 ) --- if not in the groups 
   end 
end 
) 
  
  
addCommandHandler('close', 
function ( ) 
local isAllowed = false 
for placeNumber, stringData in ipairs(acceptedGroups) do 
    accountname = getAccountName (getPlayerAccount(source)) 
    if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( stringData ) ) then 
    isAllowed = false 
    end 
end 
if (isAllowed == false) then 
 moveObject ( myGate1, 4000, x, y, z )--- add the id and x, y , z  / move gate 1 
 moveObject ( myGate2, 4000, x, y, z )--- add the id and x, y , z  / move gate 2 
       else 
       outputChatBox ("You Are not in accepted Groups ! !",source, 255, 0, 0 ) 
   end 
end 
) 

It has something to do with admin panel?

Link to comment
But these groups are not in the admin panel?
acceptedGroups = { 
"Admin", 
"Console", 
"Skillers", 
"Skillers2", 
} 

You can add your own groups to it. Add those who you want to be able to open it. Or do you mean you want to work without these groups but with accounts?

Link to comment
But these groups are not in the admin panel?
acceptedGroups = { 
"Admin", 
"Console", 
"Skillers", 
"Skillers2", 
} 

You can add your own groups to it. Add those who you want to be able to open it. Or do you mean you want to work without these groups but with accounts?

I think also the group that has, for example, Castillo .. and there I create as "Skillers" Just you and people who are in Skillers will be able to open / close BASE. and this with admin panel has nothing to do ..

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