diff --git a/README.md b/README.md
index 0721537..f822c0f 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,41 @@
-# CSGO2 Server Preview Paint Demo Plugins
+## cs2服务器皮肤预览插件
+### 更新内容
+### 修复原始皮肤损坏,添加修改刀具(有bug), 添加皮肤修改页面 [web](http://skin.ymos.top/)
-this demo plugin,Please use with caution
-No support provided for this plugin
+### 使用方法
+#### 下载 metamod dev版:
+[metamod](http://www.metamodsource.net/downloads.php/?branch=master)
+
+#### 安装 metamod
+1、解压文件将 addons 文件夹移动到 game/csgo 目录
+2、修改 game/csgo/gameinfo.gi 文件 找到 “Game csgo” 在前面添加 "Game csgo/addons/metamod"
+示例:
+
+ "GameInfo"
+ {
+ game "Counter-Strike 2"
+ title "Counter-Strike 2"
+ title_pw "E58F8DE68190E7B2BEE88BB1EFBC9AE585A8E79083E694BBE58ABF"
+
+ LayeredOnMod csgo_imported // Inherits the gameinfo.gi data from csgo_imported (which itself inherits from csgo_core)
+
+ FileSystem
+ {
+ SearchPaths
+ {
+ Game_LowViolence csgo_lv // Perfect World content override
+
+ Game csgo/addons/metamod
+ Game csgo
+ Game csgo_imported
+ Game csgo_core
+ Game core
+
+
+#### 安装插件
+1、下载发布版的 Windows.zip 或者 linux.zip
+2、解压文件将 addons 文件夹移动到 game/csgo 目录
+3、安装完成
+
+#### 如何预览皮肤
+打开控制台输入 “skin 编号 模板 磨损” 示例: "skin 38 0 0.00001"
\ No newline at end of file
diff --git a/Skin.cpp b/Skin.cpp
index b8c47d7..6fd1acc 100644
--- a/Skin.cpp
+++ b/Skin.cpp
@@ -185,7 +185,7 @@ void Skin::StartupServer(const GameSessionConfiguration_t& config, ISource2World
FnUTIL_ClientPrintAll = libserver.FindPatternSIMD("55 48 89 E5 41 57 49 89 D7 41 56 49 89 F6 41 55 41 89 FD").RCast< decltype(FnUTIL_ClientPrintAll) >();
FnGiveNamedItem = libserver.FindPatternSIMD("55 48 89 E5 41 57 41 56 49 89 CE 41 55 49 89 F5 41 54 49 89 D4 53 48 89").RCast();
FnEntityRemove = libserver.FindPatternSIMD("48 85 F6 74 0B 48 8B 76 10 E9 B2 FE FF FF").RCast();
- FnSubClassChange = libserver.FindPatternSIMD("55 48 89 E5 41 57 41 56 41 55 41 54 53 48 81 EC C8").RCast();
+ FnSubClassChange = libserver.FindPatternSIMD("55 48 89 E5 41 57 41 56 41 55 41 54 53 48 81 EC C8 00 00 00 83 BE 38 04 00 00 01 0F 8E 47 02").RCast();
#endif
g_pGameRules = nullptr;
@@ -271,6 +271,7 @@ void CEntityListener::OnEntitySpawned(CEntityInstance* pEntity)
sprintf(buf,"i_subclass_change %d %d",knife_idx->second,index);
engine->ServerCommand(buf);
}
+
META_CONPRINTF( "class: %s\n", static_cast(pBasePlayerWeapon)->m_pEntity->m_designerName.String());
META_CONPRINTF( "steamId: %lld itemId: %d\n", steamid, weaponId);
});
diff --git a/index.html b/index.html
index 1420fad..d5e911a 100644
--- a/index.html
+++ b/index.html
@@ -20,9 +20,9 @@
-
+