mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 21:43:22 +00:00
l4d2hud: Add IsHUDSetup and DeleteHUD
This commit is contained in:
parent
d05c8435f4
commit
fd5f1eee12
1 changed files with 6 additions and 1 deletions
|
@ -134,8 +134,13 @@ void SetHUDText(hudPosition position, const char[] format, any ...) {
|
|||
L4D2_RunScript(huds[view_as<int>(position)], sBuffer);
|
||||
}
|
||||
|
||||
void ClearHUD(hudPosition position) {
|
||||
bool IsHUDSetup(hudPosition position) {
|
||||
return huds[view_as<int>(position)][0] != '\0';
|
||||
}
|
||||
|
||||
void DeleteHUD(hudPosition position) {
|
||||
L4D2_RunVScript("SMHud%d <- { Fields = { } }; HUDSetLayout(SMHud%d); HUDPlace( g_ModeScript.HUD_%s, 0.0, 0.0, 0.0, 0.0 ); g_ModeScript", view_as<int>(position), view_as<int>(position), hudPositions[positions]);
|
||||
huds[view_as<int>(position)][0] = '\0';
|
||||
}
|
||||
|
||||
void GetHUDFormatString(hudPosition position, char[] buffer, int buffersize) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue