//check if it is in the client mode public static bool IsClient() { if (!MPManager.IsMultiPlayer() || MPManager.IsServer()) { return(false); } return(true); }
//check if it is in the server mode && they are players && not allow autoswitch public static bool NoAutoSwitch() { if (!MPManager.IsMultiPlayer() || MPManager.IsServer()) { return(false); } //if (MPManager.IsClient()) return true; return(!MPManager.AllowedManualSwitch); //aloow manual switch or not }