Garry's Mod

Garry's Mod

评价数不足
[ULX] BuildMode - Extremely fast and flexible!
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑, 快乐, 角色扮演
文件大小
发表于
更新日期
8.750 KB
2023 年 7 月 27 日 下午 1:08
2023 年 10 月 30 日 上午 10:42
7 项改动说明 ( 查看 )

订阅以下载
[ULX] BuildMode - Extremely fast and flexible!

在 тройка 的 2 个合集中
Space collection
101 件物品
Space Re:New
95 件物品
描述
The addon adds the ability for players to toggle buildmode and adds basic features for it to work, supports customization. Basically prevents players with buildmod from dealing damage to other players, as well as other players cannot deal damage to players in buildmode. Players with builmode can use noclip by default.

Features
  1. Universal and easy Developer API.
  2. Multilanguage ( By default supports: en, uk, ru ).
  3. Lightweight, very little code, maximum code performance.

Server-side ConVars
  • ulx_buildmode_timeout <5> - Delay in seconds between switch buildmode or pvp.
  • ulx_buildmode_respawn <1> [0/1] - Respawns player if he leaves buildmode.

Developer API
  • PLAYER:InBuildMode() - A shared player meta function, returns true if the player is in build mode and false if not.
  • PLAYER:SetBuildMode( requestedState, hideNotification, force ) - A server-side player meta function, returns true if the buildmode switch is successful, force forced buildmode switch on player ignoring CanPlayerBuildMode hook, hideNotification hides notifications about buildmode switch.
  • GM:CanPlayerBuildMode( ply, currentState, requestedState ) - A server-side hook, called when a player tries to change the buildmode state, return here true allows the player to change the buildmode state to requested state.
  • GM:PlayerToggledBuildMode( ply, oldState, newState ) - A server-side hook called after a player changes build mode.

Source Code (GitHub): https://github.com/Pika-Software/ulx-buildmode

Tags: pvp/build, build, ulx build, godmode, noclip, no blood, kill, pvp, ulx, fun, safe, free, developer, api
4 条留言
Virgiliu314 8 月 15 日 下午 12:43 
Okay then, thanks!
тройка  [作者] 8 月 15 日 下午 12:42 
forcebuild command was fixed in github version, i recommend use that
https://github.com/Pika-Software/ulx-buildmode
тройка  [作者] 8 月 14 日 上午 5:17 
I'm comeback from 2-3 years and got it problem. I'll try to fix it soon
Virgiliu314 2024 年 4 月 26 日 上午 7:58 
the force buildmode command seems to not work, i have tried several times to force people into pvp after they've killed people while in build