Skip to content

Commit

Permalink
remove admin requirement for debug targetname
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg committed Jul 22, 2022
1 parent 1c82605 commit 68a57b9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions addons/sourcemod/scripting/shavit-hud.sp
Original file line number Diff line number Diff line change
Expand Up @@ -740,12 +740,9 @@ Action ShowHUDMenu(int client, int item)
menu.AddItem(sInfo, sHudItem);
}

if (CheckCommandAccess(client, "shavit_admin", ADMFLAG_BAN))
{
FormatEx(sInfo, 16, "!%d", HUD_DEBUGTARGETNAME);
FormatEx(sHudItem, 64, "%T", "HudDebugTargetname", client);
menu.AddItem(sInfo, sHudItem);
}
FormatEx(sInfo, 16, "!%d", HUD_DEBUGTARGETNAME);
FormatEx(sHudItem, 64, "%T", "HudDebugTargetname", client);
menu.AddItem(sInfo, sHudItem);

// HUD2 - disables selected elements
FormatEx(sInfo, 16, "@%d", HUD2_TIME);
Expand Down

0 comments on commit 68a57b9

Please sign in to comment.