void OnPlayerDisconnected(BasePlayer player) { ESPPlayer component = player.GetComponent <ESPPlayer>(); if (component != null) { component.OnDestroy(); } }
void AddEspPlayer(BasePlayer player) { ESPPlayer Component = player.GetComponent <ESPPlayer>(); if (Component == null) { player.gameObject.AddComponent <ESPPlayer>(); } }