本脚本只在L4D1下成功测试
#include <sourcemod> #define GP_VERSION "1.0.0.0" public Plugin:myinfo = { name = "服务器中文名称", author = "作者:maxjo.汉化:紫冰", description = "服务器可以以中文命名", version = GP_VERSION, url = "http://blog.youkuaiyun.com/zbzibing" } public OnPluginStart() { RegAdminCmd("sm_sn", Command_Namehost, ADMFLAG_RCON,"激活服务器中文名称") } public Action:Command_Namehost(client, args) { ServerCommand("hostname \"【紫冰支持】中文服务器\"") }
#include <sourcemod> #define GP_VERSION "1.0.0.0" public Plugin:myinfo = { name = "服务器中文名称", author = "作者:maxjo.汉化:紫冰", description = "服务器可以以中文命名", version = GP_VERSION, url = "http://blog.youkuaiyun.com/zbzibing" } public OnPluginStart() { RegAdminCmd("sm_sn", Command_Namehost, ADMFLAG_RCON,"激活服务器中文名称") } public Action:Command_Namehost(client, args) { ServerCommand("hostname \"【紫冰支持】中文服务器\"") }