mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-10-18 04:47:04 +02:00
Moved css_who command to ManagePlayersMenu.cs
This commit is contained in:
parent
4fd268b235
commit
65b33c17ea
3 changed files with 60 additions and 83 deletions
|
|
@ -14,7 +14,7 @@ namespace CS2_SimpleAdmin.Menus
|
|||
foreach (CCSPlayerController player in players)
|
||||
{
|
||||
string optionName = player.PlayerName;
|
||||
menu.AddMenuOption(optionName, (_, _) => { onSelectAction?.Invoke(admin, player); });
|
||||
menu.AddMenuOption(optionName, (_, _) => { onSelectAction?.Invoke(admin, player); }, admin.CanTarget(player) == false);
|
||||
}
|
||||
|
||||
MenuManager.OpenCenterHtmlMenu(CS2_SimpleAdmin.Instance, admin, menu);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue