如何在 roblox 上使用 Adonis Admin 对人员进行排名

问题描述 投票:0回答:1

我正在创建 Roblox 工作游戏,并且正在使用 Davey_Bones 的 Adonis Admin。据我所知,有两种方法可以通过该管理系统对某人进行排名:您可以在游戏中使用命令,或者可以将他们的用户放入脚本中。然而,这两种方式都是对球员进行单独排名。我想要的是将我的组链接到管理系统,这样如果用户在组中具有一定的级别,那么他们就可以访问命令。

我知道如何编写个人排名脚本,并且我尝试以 Davey_Bones 提供的格式输入脚本。这是行不通的。以下是我如何使用脚本对人员进行排名:

settings.Moderators(“用户名”,“用户名2”,“用户名3”)

这是我尝试将组与该脚本链接起来的方法:

settings.Moderators(“群组名称:群组ID:群组排名”)

lua admin roblox
1个回答
0
投票

Adonis 的配置设置基于 ModuleScript,因此如果您想修改设置条件,则必须编辑脚本中的变量和表格,以根据您的特定要求定制管理系统。

-- Let's say you want to add a new moderator to the system
-- You would go to the "settings.Ranks" table and find the "Moderators" section
-- Add the new moderator's information to the "Users" list:

settings.Ranks["Moderators"].Users = {
    "ExistingModerator",
    "NewModerator:1234567",
    7654321, -- User ID
    "Group:RobloxDevelopers:3", -- Group ID and rank
    "Item:9876543", -- Item ID
}

-- Now, "NewModerator" with User ID 1234567, User ID 7654321, and those in group "RobloxDevelopers" with rank 3, or owning the item with ID 9876543 will be moderators.

-- You can similarly modify other settings as needed to suit your requirements.
© www.soinside.com 2019 - 2024. All rights reserved.