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

How to rank people with Adonis Admin on roblox

提问人:rxqtzc 提问时间:10/25/2023 更新时间:10/27/2023 访问量:67

问:

我正在创建一个 Roblox 工作游戏,我正在使用 Davey_Bones 的 Adonis Admin。据我所知,有两种方法可以对具有该管理系统的人进行排名:您可以在游戏中使用命令,也可以将他们的用户放入脚本中。但是,这两种方式都对玩家进行单独排名。我想要的是将我的组链接到管理系统,以便如果用户在组中具有特定级别,那么他们可以访问命令。

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

设置。版主(“用户名”, “用户名2”, “用户名3”)

以下是我尝试将该组与该脚本链接的方式:

设置。版主(“groupname:groupid:grouprank”)

Lua 管理员 Roblox

评论


答:

0赞 shawnjb 10/27/2023 #1

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.