Nuo 效果图
感觉这个应该是基于HookEvent("cs_win_panel_round")实现的。本站的MVP_WinPanel也是利用这个特性。
stock void PrintCenterTextHtml(int client, int iDuration, const char[] message, any ...) {
if(IsClientInGame(client) && !IsFakeClient(client))
{
char buffer[512];
SetGlobalTransTarget(client);
VFormat(buffer, sizeof(buffer), message, 4);
Event hEvent_html = CreateEvent("show_survival_respawn_status", true);
SetEventString(hEvent_html, "loc_token", buffer);
SetEventInt(hEvent_html, "duration", iDuration);
SetEventInt(hEvent_html, "userid", GetClientUserId(client));
hEvent_html.FireToClient(client);
CancelCreatedEvent(hEvent_html);
}
}
=========================================
有心的玩家朋友想要自己开发的话,可以参考这个:
https://forums.alliedmods.net/showthread.php?t=326935
https://forums.alliedmods.net/showthread.php?t=338150
https://github.com/Cruze03/Retakes-Display-Bombsite-in-New-HUD
Countdown HTML HUD 高级版倒计时HUD-插件分享-CSGO插件分享-CSGO资料库 (csgocn.net)