public static void DispatchReset(string handle) { Player p = GetPlayerByHandle(handle); if (GetCivilian(p.Handle) != null) { #if DEBUG SendMessage(p, "", new [] { 0, 0, 0 }, "Removing Civilian Profile..."); #endif Civs.Remove(GetCivilian(p.Handle)); // removing instance of civilian } if (GetCivilianVeh(p.Handle) != null) { #if DEBUG SendMessage(p, "", new[] { 0, 0, 0 }, "Removing Civilian Vehicle Profile..."); #endif CivVehs.Remove(GetCivilianVeh(p.Handle)); // removing instance of vehicle } if (GetOfficer(p.Handle) != null) { #if DEBUG SendMessage(p, "", new[] { 0, 0, 0 }, "Removing Officer Profile..."); #endif Officers.Remove(GetOfficer(p.Handle)); // removing instance of officer } SendMessage(p, "DispatchSystem", new[] { 0, 0, 0 }, "All profiles reset"); // displaying the reset message }