Clan-Core【核心模块】军团系统 类似国内的工会系统 ¥模块化设计

MissYou 赞助用户组 2022-11-30 1291

插件介绍

将成熟的军团系统添加到您的服务器。玩家有机会在氏族中团结起来,展示谁更好!
为了激励玩家收集部落硬币(部落的货币),对部落中的玩家数量进行了限制。价格,最大参与者数量和部落首领一次购买的插槽数量 - 一切都根据您的意愿进行配置。
军团名称:1-10个字符

20210410215919_1.jpg

数据库(database.cfg)配置:

"clans"
{
    "driver"    "mysql"
    "host"        "ip"        // ip сервера, где находится mysql
    "database"    "clans"   //Имя базы данных
    "user"        "user"        // Имя пользователя базы данных
    "pass"        "password"    // Его пароль
}

插件依赖:

  • SourceMod 1.10+
  • MySQL 8.0

Convars

基本设置:

sm_clans_expansioncost "N" // the number of coins required for 1 clan expansion
sm_clans_expandvalue "N" // the number of slots that are credited to the clan for 1 purchase of the clan
sm_clans_maxclanmembers extension "N" // the maximum number of players in the clan
sm_clans_startslotsinclan "N" // the initial number of slots in the clan 
sm_clans_renameprice "N" // the price of renaming the clan
sm_clans_noclan_notag "N" // 2 - change clan tag always, 1 - change clan tag if player is in clan, 0 - change clan tag if player wants this
sm_clans_chatfilter "N" // Clan chat filter: 1 (d) - dead can write alive, 2 (t) - people from different teams see each other's messages, 3 (a) - 2+1, 0 (n) - not 1 and not 2
sm_clans_steamauth2 "N" // 1 - use auth2 (STEAM_) instead of auth3 (U:)
sm_clans_cclancd "N" // After how many minutes can you create a new clan

聊天框颜色:

sm_clans_ccleader "color" // color for leader in clan chat
sm_clans_cccoleader "color" // color for deputy leader in clan chat
sm_clans_ccelder "color" // color for elder in clan chat
sm_clans_ccmember "color" // color for participant in clan chat

Logs:

sm_clans_logs "N" //2 - log to file, 1 - log to database (sqlite), 0 - do not log
sm_clans_logflags "N" //Flags for logging
sm_clans_logexpire "N" //How many days to keep records in the database

clans团队全局的权限配置:

sm_clans_leaderchange "N" - Can a leader appoint a new leader in a clan (1 - yes, 0 - no)
sm_clans_coinstransfer "N" - Can a clan transfer coins to another clan (1 - yes, 0 - no)
sm_clans_leaderleave "N" - Can the leader leave the clan (1 - yes, 0 - no)

团队成员的权限:

sm_clans_inviteperm "N" // Role that allows you to invite players to the clan
sm_clans_kickperm "N" // Role that allows you to kick players from the clan
sm_clans_transfercoinsperm "N" // Role that allows you to transfer credits to other clans
sm_clans_expandperm "N" // Role that allows you to expand the clan
sm_clans_changeroleperm "N" // Role that allows you to change the roles of players in the clan
sm_clans_changetypeperm "N" // Role that allows you to change the type of clan

以下的config配置文件会被自动创建(cfg/clans/clans_settings.cfg):

  • 玩家可用的命令:
!chelp - show the window with commands
!cclan - create a clan
!dclan - disband the clan
!leaveclan - leave the clan
!myclan (!mcl, !clan) - open the clan menu
!invite - invite the player to the clan (only for the LEADER)
!caccept - accept the invitation to the clan
!ctop - open the top clans
!mystats - open your statistics in the clan
/ cct - clan chat
  • 管理员可用的命令:
!achelp - show the window with commands
!aclans - open the admin menu
!cdump - bring all clans to the console
!pdump - bring all clan players to the console
!ptoclan - add online player to the clan. The id is userid from status
!poutofclan - kick the player out of the clan
!adclan - remove the clan
!asetcoints - set the number of coins to the
clan!arclan - reset the clan
!arclient - reset the player

参考:

上传的附件:

CSGO插件分享-申明 1、本网站名称:CSGO插件分享-中文站  网址:https://bbs.csgocn.net
2、本站的宗旨在于为CSGO玩家提供一个插件分享的中文资源平台,多数插件来源于SourceMod论坛,并配以中文介绍和安装教程。
3、欢迎有能力的朋友共享有趣的CSGO插件资源。
4、本站资源大多为百度网盘,如发现链接失效,可以点: 这里进行反馈,我们会第一时间更新。
最新回复 (7)
返回