Skip to content

Commit

Permalink
online players: added closing and refreshing of menu when a player is…
Browse files Browse the repository at this point in the history
… (getting) banned.
  • Loading branch information
TomGrobbe committed May 30, 2018
1 parent 4b588b9 commit b7926d0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions vMenu/menus/OnlinePlayers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,33 @@ public void UpdatePlayerlist()
}
else if (item2 == tempBanBtn)
{
// Close the menu.
PlayerMenu.GoBack();
// ban player
cf.BanPlayer(player: player, forever: false);
// Update the player list.
UpdatePlayerlist();
// Refresh the index & update scaleform.
menu.RefreshIndex();
menu.UpdateScaleform();
}
else if (item2 == permBanBtn)
{
// Close the menu.
PlayerMenu.GoBack();
// ban player
cf.BanPlayer(player: player, forever: true);
// Update the player list.
UpdatePlayerlist();
// Refresh the index & update scaleform.
menu.RefreshIndex();
menu.UpdateScaleform();
}
};
Expand Down

0 comments on commit b7926d0

Please sign in to comment.