Dev Cmds 提供了一堆非常有趣的命令给管理员或者开发者使用 管理员命令 趣味内容

我不当学长 管理员组 2023-4-13 761

插件介绍:

  • 此插件提供了非常多的有趣命令,可以供管理员或者插件开发者使用。个人觉得完全可以拿来设计一些差异化体验功能。

使用方法:

  • 此插件提供的命令,需要root权限才能执行,"z" root admin flag

插件依赖:

  • SourceMod 1.11+

可选的头文件:

  1. sm_box 命令需要使用 SMLib when the <smlib> include is detected on compiling the plugin.
  2. Download SMLib here: for new syntax or old syntax

命令介绍:

  • Plugins相关命令:
PHP Code:
sm_refresh // 刷新服务器插件(same as "sm plugins refresh").
sm_renew // 卸载后重载插件 (same as "sm plugins unload_all; sm plugins refresh").
sm_unload // 卸载所有插件 (same as "sm plugins unload_all"). 
  • General通用命令:
PHP Code:
sm_round // 等价于 'mp_restartgame 1' 来重新开始回合
sm_cheats // 开启、关闭 sv_cheats.
sm_logit <text// 生成log文件 "sourcemod/logs/sm_logit.txt".
sm_gametime // 显示 GetGameTime() 函数返回的游戏内部时间信息(float 浮点型).
sm_uptime // 显示服务器运行了多长时间。如果服务器休眠处于活动状态,则可能不准确D.
sm_playtime // 显示玩家在服务器上玩了多长时间.
sm_changes // 显示发生了多少次地图更改.
sm_createent <classname// 创建和删除实体类名,报告成功。
  • Cvars / Commands / Fake Client Command:
PHP Code:
sm_cv <cvar> [value// 在没有通知标志的情况下获取/设置 cvar 值.
cv <cvar> [value// 获取/设置不带通知标志的 cvar 值。.
sm_e <command> [args// 执行作弊命令.
<command> [args// 执行作弊命令.
sm_ccmd <#userid|name> <command> [args] // 针对你所指向的目标执行一个client命令.
sm_fcmd <#userid|name> <command> [args] // 针对你所指向的目标执行一个虚假的client命令.
sm_scmd // 执行一个服务器命令.
sm_rngc <0-100> <command string// chance out of 100 to execute the command string, client command.
sm_rngf <0-100> <command string// chance out of 100 to execute the command string, fake client command.
sm_rngs <0-100> <command string// chance out of 100 to execute the command string, server command. 
  • In-game View/Position stuff 游戏内视觉、方位有关的命令:
PHP Code:
sm_views // 保存您当前的位置和视角。
sm_viewr // 将您传送到保存的位置和视角.
sm_pos // 显示您的位置矢量.
sm_aimpos // 显示您的十字准线瞄准的位置矢量.
sm_setang <#userid|name> <vector ang> // 将某人传送到指定的 x y z 角矢量.
sm_setpos <#userid|name> <vector ang> // 将某人传送到指定的 x y z 角矢量.
sm_bringents <classname> [distance: (default 50)] // 按类名将指定的实体传送到玩家周围。例如。 sm_bringents weapon_rifle.
sm_tel <vector pos> [vector ang// 将自己传送到指定的 x y z 向量.
sm_tele <#userid|name> [x y z vecctor pos] // 将指定的目标传送到瞄准位置或指定的 x y z 原点矢量.
sm_range [entity// 显示您瞄准的物体有多远,或可选参数以指定实体索引.
sm_near // 列出指定范围内的所有附近实体. Usage sm_near: [range].
sm_dist // 输入两次以测量您站立的原点之间的距离.
sm_distdir // 获取您和您正在查看的方向终点之间的距离(考虑碰撞).
sm_distfloor // 获取您与下方地板之间的距离(考虑碰撞).
sm_distroof // 获取您与头顶上方屋顶之间的距离(考虑碰撞).
sm_size // 获取玩家的尺寸(宽度、长度、高度).
sm_sizee // 获取您正面对着的实体的尺寸(宽度、长度、高度). 
  • Entity Info / Delete / Entity and Model Lists etc 操控实体、删除、模型相关命令:
PHP Code:
sm_del // 删除你准心指向的实体
sm_dele <entity// 删除你制定的实体.
sm_ent // 显示你准心指向的实体的信息.
sm_ente <entity// 显示你所指定的实体的信息.
sm_vertex [entity// 显示你所指定的实体或准心指向的实体的 vMaxs 和 vMins 边界框.
sm_box [entity// 在指定实体周围或瞄准实体显示一个光束框 10 秒.
sm_find <classname> <maxdist// 列出给定类名中的实体索引.
sm_findname <targetname// List entity indexes from a partial targetname.
sm_count // 显示所有已生成的实体的classname以及个数. Optional sm_count <classname>
sm_modlist // 将当前地图上使用的所有模型信息存放到 "sourcemod/logs/models_<MAPNAME>.txt".
sm_collision [entity// 改变你所指定的,或者准星指向的实体的碰撞体积.
sm_anim [sequence// Show aimed entities animation sequence number until toggled again or your own if not aimed at entity. Optionally, it can set sequence. Checks every frame and reports changes.
sm_weapons [client index// 显示玩家的 weapons and indexes. 可以通过输入外加参数来区分是你自己还是别的你准星指向的对象.
sm_wearables [client index// Lists players cosmetics indexes and definitions. Either yourself, or aim target or optional index via cmd args.
sm_attachments [#userid|name] or [entity index] // Displays a list of attachments on the specified clients. No args = self.
sm_viewmodel [#userid|name] // 返回一个客户端的 viewmodel 的 entity index, or no args = self.
sm_delweps <#userid|name> // 删除你所指向的目标玩家手中的武器, or no args = self.
sm_getspeed <#userid|name> // 获取你所指定的玩家的速度信息.
sm_clients // 显示所有客户端的 indexes/userids and some other data.");s client indexes/userids and some other data.
sm_users // 输出已连接到服务器的机器人和客户端的总数以及最后连接的用户 ID.
sm_ice [entity// 冰冻、解冻你做所指向,或者是准星指向的实体.
sm_damage <client index// 追踪你所指定的目标造成的击杀伤害,或者是被攻击所受伤害数值信息. Use -1 or empty to track everybody.
sm_solid <flags// Returns the SolidType_t flags from a flag value.
sm_solidf <flags// Returns the SolidFlags_t flags from a flag value.
sm_dmg <flags// Returns the SDKHooks DamageType from a flag value.
sm_val <bit value// E.g: sm_val 1<<20. Returns: 1048576
sm_bit <bit value// E.g: sm_bit 1048577. Returns: (1<<0); (1<<20)
sm_adm // Toggles between ROOT and BAN admin flags, for testing stuff without ROOT access. Or specified flags e.g. Usage: sm_adm BAN KICK
sm_hexcols // 输出聊天框文字支持的所有颜色(16禁止颜色代码). 
  • Entity Properties - Prop_Data (sm_dump_datamaps) and Prop_Send (sm_dump_netprops):
PHP Code:
// You can also use "m_iAmmo.004" for example to get the 4th member index of "m_iAmmo".
sm_gamerules <prop> [value// Affects the gamerules proxy.
sm_prop <prop> [value// Affects the entity you aim at.
sm_propent <entity> or <#userid|name> <prop> // Affects the specified entity.
sm_propself <prop> [value// Affects yourself.
sm_propi <prop> [value// Affects yourself. 
  • Entity Inputs and Outputs:
PHP Code:
sm_input <input> [param] [activator] [caller// Makes the entity you're aiming at accept an Input. Optionally give a param, e.g. sm_input color "255 0 0".
sm_inputent <entity|targetname> <input> [param] [activator] [caller// Makes the specified entity accept an Input. Optionally give a param, e.g. sm_inputent 5 color "255 0 0".
sm_inputme <input> [param] [activator] [caller// Makes you accept an entity Input. Optionally give a param, e.g. sm_inputme color "255 0 0".
sm_output <output// Watches the specified output on the entity aimed at.
sm_outputent <entity> <output// Watches the specified entity and specified output.
sm_outputme <output// Watches the specified output on yourself.
sm_outputstop // Stops watching all entity outputs.
sm_emit // <sound path and filename> Plays a sound from your client. For testing sounds.
sm_listens // Toggle to start/stop listening to sounds being played. Displays messages in chat to everyone.
sm_newbot // Create new bot client. 
  • Particles 粒子特效相关:
PHP Code:
sm_part <name// Displays a particle you specify. Automatically removed after 5 seconds.
sm_parti <name// Displays a particle where you are pointing. Automatically removed after 5 seconds. 
  • L4D / L4D2 Specific:
PHP Code:
sm_lobby // Calls a vote (public command access).
sm_ledge // Enables/Disables ledge hanging.
sm_spit [#userid|name] // Toggles spitter goo dribble on self (with no args) or specified targets.

sm_alloff // Toggles - AI director on/off, z_common_limit, sb_hold.
sm_director // Toggles - AI director on/off.
sm_hold // Toggles sb_hold - Stop the survivor bots moving but allows them to shoot.
sm_halt // Toggles sb_stop - Stops the survivor bots from moving and shooting.
sm_nb // Toggles nb_stop - Stops all survivors/specifial infected from moving.

sm_nospawn // Prevents all types of infected from spawning
sm_zspawnv // SSpawn infected and special infected specifying pos and ang. Usage sm_zspawnv <boomer|hunter|smoker|spitter|jockey|charger|tank|witch|infected> <pos X> <pos Y> <pos Z>  ( [modelname] [skin] || [ang X] [ang Y] [ang Z] [modelname] [skin] ).
sm_bots // Creates a new Survivor bot
sm_slayall // Slays all common and special infected and witches
sm_slaycommon // Slays all common infected.
sm_slaywitches // Slays all witches.
sm_stopang // Freeze current angle of all survivor bot players.

sm_c // Sets the game mode to Coop.
sm_r // Sets the game mode to Realism.
sm_s // Sets the game mode to Survival.
sm_v // Sets the game mode to Versus. 
  • CSS / L4D / L4D2 Specific:
PHP Code:
sm_nv [#userid|name] // Toggles nightvision. 
  • CSS Specific:
PHP Code:
sm_bots // Opens a menu to spawn bots.
sm_money // Opens a menu of players, sets 16000 money. 

参考:

上传的附件:

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