[PluginReference] Plugin PopupNotifications, Spawns, Vanish;
private void OnVanishDisappear(BasePlayer player)
{
if (player == null)
return;
EntityZones entityZones;
if (!zonedPlayers.TryGetValue(player.userID, out entityZones))
return;
for (int i = entityZones.Count - 1; i >= 0; i--)
{
Zone zone = entityZones.Zones.ElementAt(i);
OnPlayerExitZone(player, zone);
}
} Compatibility with VanishSuggestion
To add a few words... Current situation is that you keep the zone flags when vanishing while inside a zone. Only interesting for admins... But might be a nice addition.